[vtkusers] vtkPoints + InsertPoint
Rakesh Patil
rakeshthp at in.com
Fri Mar 12 06:11:09 EST 2010
Hi,According to me, InsertPoint()'s first parameter is of type vtkIdType which is in turn typedef of integer..Being an integer variable, of 4 bytes, it has a limit of range...See thishttp://msdn.microsoft.com/enus/library/s3f49ktz%28VS.80%29.aspxThus, i guess, it goes out of the range and it produces this error.. As you said, for small numbers it works fine, That should be the cause..ThanksRegardsRakesh Patil Original message From:Bill Chivas< noo134 at googlemail.com >Date: 12 Mar 10 15:53:19Subject:[vtkusers] vtkPoints + InsertPointTo: vtkusers at vtk.orgHi all, i usevtkPoints *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 358vtkFloatArray (03A17E38): Unable to allocate 366022158 elements of size 4 bytes." I think it has to do with the fact i set a
s 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/a16baf7b/attachment.htm>
More information about the vtkusers
mailing list