<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3502.5390" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi All</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I think there is some kind of a memory allocation 
problem with</FONT></DIV>
<DIV><FONT face=Arial size=2>int vtkCellTypes::InsertNextCell(unsigned char 
type, int loc)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Using 4 differerent PolyData objects, I load the 
cells into each one by building up a </FONT></DIV>
<DIV><FONT face=Arial size=2>vtkCellArray.&nbsp;&nbsp; After inserting about 250 
cells into the vtkCellArray for the 3rd vtkPolyData object, I get an error which 
says that the memory could not be written to. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>vtkPoints *points = vtkPoints::New();<BR>&nbsp; 
points-&gt;SetNumberOfPoints(Pset-&gt;size());&nbsp;&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2>vtkCellArray *polys = 
vtkCellArray::New();</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2>points-&gt;InsertPoint(i,x);<BR>&nbsp; 
</FONT></DIV>
<DIV><FONT face=Arial size=2>polys-&gt;InsertNextCell(3,tri);<BR>&nbsp; 
</FONT></DIV>
<DIV><FONT face=Arial size=2>I used to get a similar error for inserting points, 
which was fixed by setting the number of points beforehand, but </FONT></DIV>
<DIV><FONT face=Arial size=2>using</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>polys-&gt;Allocate(2000, 1000 );&nbsp;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>beforehand doesn't help.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Has anyone come across this or are there any 
ideas?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2>Markus</FONT></DIV></BODY></HTML>