[vtkusers] Bug in Polydata Reset-Method

Karthik Krishnan karthik.krishnan at kitware.com
Fri Sep 30 13:25:27 EDT 2011


Thanks for pointing it out. please log a bug report :  vtk.org/Bug

--
karthik

On Fri, Sep 30, 2011 at 7:28 PM, Rackwitz, Karl <
Karl.Rackwitz at medizin.uni-leipzig.de> wrote:

> Hello all,
>
> I'm triangulating Pointclouds of a Surfacescanner near realtime. 3D-Video
> perhaps.
> I allocate memory for Points and Polydata once and call Reset() for each
> new Cloud.
> in the method responsible for the display exist following lines of code:
>
>    poly->Reset(); //make Object look empty without deleting memory
>    poly->DeleteCells(); // <-- !!
>    ...
>    for()
>        poly->InsertNextCell();
>    ...
>    poly->modified();
>
> Commenting the marked line out results in an Error:
>    vtkIntArray cannot allocate 150000000 Objects of size 4Bytes.
>
> The Problem:
>    int MaxId of the Cells isn't reseted as one would expect.
>
> Solution:
>    Call deleteCells.
>
> I think its a bug. Excuse me if the form of this Post does not conform.
>
> Greetings,
> Karl
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110930/f8d6b791/attachment.htm>


More information about the vtkusers mailing list