[vtkusers] vtkPoints size limit

Mathieu P mtp.vtk at gmail.com
Thu Feb 25 11:49:52 EST 2010


Hi there,

I am new using vtk.
I try to show a 3D Mesh, with several points, with lines (2 points linked).
I have create a vtkPoints object. The problem come when i try to allocate
this array size.
I use :

vtkPoints* myPoints = vtkpoints::New();
myPoints->SetDataTypeToFloat()
; // float 3D coordinates
myPoints->SetNumberOfPoints(myNumber);

with myNumber = 24200000; (24,200,000 points !)

Its crash with "unable to allocate xxxxx elements of size 4 bits", or
something like that...

I dont know how to allocate more points in my vtkPoints array !

Thanks for help,

Cordialement,

Mathieu PICCIN
-----------------------
09.80.00.30.57
mathieu.piccin at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100225/172dc31a/attachment.htm>


More information about the vtkusers mailing list