<div>The range of integers (signed) is 2147483647 which is much bigger than my numbers (e.g. 60983688).</div>
<div>That's why i can't understand the error...<br><br></div>
<div class="gmail_quote">2010/3/12 Rakesh Patil <span dir="ltr"><<a href="mailto:rakeshthp@in.com">rakeshthp@in.com</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><br>Hi,<br><br>According to me, InsertPoint()'s first parameter is of type vtkIdType which is in turn typedef of integer..<br>
<br>Being an integer variable, of 4 bytes, it has a limit of range... See this<br><br><a href="http://msdn.microsoft.com/en-us/library/s3f49ktz%28VS.80%29.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/s3f49ktz%28VS.80%29.aspx</a><br>
<br>Thus, 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..<br><br>Thanks<br><br>Regards<br><font color="#888888">Rakesh Patil</font>
<div>
<div></div>
<div class="h5"><br>
<blockquote><br>---------- Original message ----------<br>From:Bill Chivas< <a href="mailto:noo134@googlemail.com" target="_blank">noo134@googlemail.com</a> ><br>Date: 12 Mar 10 15:53:19<br>Subject: [vtkusers] vtkPoints + InsertPoint<br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br><br>
<div>Hi all,</div>
<div></div>
<div>i use </div>
<div></div>
<div>vtkPoints *points = vtkPoints::New();</div>
<div>points->InsertPoint(60983688, x, y, z);</div>
<div>points->InsertPoint(60984688, x, y, z);</div>
<div>points->InsertPoint(60985688, x, y, z);</div>
<div>points->InsertPoint(60986688, x, y, z);</div>
<div>and so on (10 points)</div>
<div></div>
<div>and i get the error: "ERROR: In c:\vtk\common\vtkDataArrayTemplate.txx, line 358<br>vtkFloatArray (03A17E38): Unable to allocate 366022158 elements of size 4 bytes."</div>
<div></div>
<div>I think it has to do with the fact i set as id a big number (NOT out of range, though).</div>
<div>When i set small numbers as ids, i get no errors.</div>
<div></div>
<div>Can anyone help?</div>
<div></div>
<div>Thanks,</div>
<div>Bill</div></blockquote></div></div></blockquote></div><br>