[vtkusers] vtkPoints + InsertPoint

Bill Chivas noo134 at googlemail.com
Fri Mar 12 05:23:19 EST 2010


Hi all,

i use

vtkPoints *points  = vtkPoints::New();
points->InsertPoint(60983688, x, y, z);
points->InsertPoint(60984688, x, y, z);
points->InsertPoint(60985688, x, y, z);
points->InsertPoint(60986688, x, y, z);
and so on (10 points)

and i get the error: "ERROR: In c:\vtk\common\vtkDataArrayTemplate.txx, line
358
vtkFloatArray (03A17E38): Unable to allocate 366022158 elements of size 4
bytes."

I think it has to do with the fact i set as id a big number (NOT out
of range, though).
When i set small numbers as ids, i get no errors.

Can anyone help?

Thanks,
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100312/a640a0f7/attachment.htm>


More information about the vtkusers mailing list