[vtkusers] vtkPoints array
Divya Rathore
divyaksr at iitk.ac.in
Sun Oct 9 19:08:38 EDT 2005
Dear Users,
Could anybody suggest as to why is the following code regarding an array of pointers-to-vtkPoints giving RUNTIME assertion in 1st line of the loop (where vtkPoints::New() is being called)?
vtkPoints **newPts = NULL;
for(int i=0; i<10; i++)
{
newPts[i] = vtkPoints::New();
newPts[i]->InsertPoint(i, (double)i, (double)(i+1), (double)(i+2));
}
A similar dynamica allocation of vtkActors works perfectly fine!
(as suggested once by David Cole from Kitware, http://public.kitware.com/pipermail/vtkusers/2005-March/078807.html).
warm regards,
D. Rathore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20051010/28712090/attachment.htm>
More information about the vtkusers
mailing list