<!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> </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> </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. 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> </DIV>
<DIV><FONT face=Arial size=2>vtkPoints *points = vtkPoints::New();<BR>
points->SetNumberOfPoints(Pset->size()); </FONT></DIV>
<DIV><FONT face=Arial size=2>vtkCellArray *polys =
vtkCellArray::New();</FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2>points->InsertPoint(i,x);<BR>
</FONT></DIV>
<DIV><FONT face=Arial size=2>polys->InsertNextCell(3,tri);<BR>
</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> </DIV>
<DIV><FONT face=Arial size=2>polys->Allocate(2000, 1000 ); </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>beforehand doesn't help.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Has anyone come across this or are there any
ideas?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2>Markus</FONT></DIV></BODY></HTML>