Thanks for pointing it out. please log a bug report :  <a href="http://vtk.org/Bug">vtk.org/Bug</a><div><br></div><div>--</div><div>karthik</div><div><br><div class="gmail_quote">On Fri, Sep 30, 2011 at 7:28 PM, Rackwitz, Karl <span dir="ltr">&lt;<a href="mailto:Karl.Rackwitz@medizin.uni-leipzig.de">Karl.Rackwitz@medizin.uni-leipzig.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello all,<br>
<br>
I&#39;m triangulating Pointclouds of a Surfacescanner near realtime. 3D-Video perhaps.<br>
I allocate memory for Points and Polydata once and call Reset() for each new Cloud.<br>
in the method responsible for the display exist following lines of code:<br>
<br>
    poly-&gt;Reset(); //make Object look empty without deleting memory<br>
    poly-&gt;DeleteCells(); // &lt;-- !!<br>
    ...<br>
    for()<br>
        poly-&gt;InsertNextCell();<br>
    ...<br>
    poly-&gt;modified();<br>
<br>
Commenting the marked line out results in an Error:<br>
    vtkIntArray cannot allocate 150000000 Objects of size 4Bytes.<br>
<br>
The Problem:<br>
    int MaxId of the Cells isn&#39;t reseted as one would expect.<br>
<br>
Solution:<br>
    Call deleteCells.<br>
<br>
I think its a bug. Excuse me if the form of this Post does not conform.<br>
<br>
Greetings,<br>
Karl<br>
<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>