[vtk-developers] [VTK 0012628]: PolyData::Reset() does not reset	cell-ids
    Mantis Bug Tracker 
    mantis at public.kitware.com
       
    Tue Oct  4 12:45:21 EDT 2011
    
    
  
The following issue has been SUBMITTED. 
====================================================================== 
http://vtk.org/Bug/view.php?id=12628 
====================================================================== 
Reported By:                Karl R.
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   12628
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     backlog
Project:                    Kitware 
Type:                       crash 
====================================================================== 
Date Submitted:             2011-10-04 12:45 EDT
Last Modified:              2011-10-04 12:45 EDT
====================================================================== 
Summary:                    PolyData::Reset() does not reset cell-ids
Description: 
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/Workaround:
    Call DeleteCells() manually.
I think its a bug. Excuse me if the form of this Post does not conform.
Greetings,
Karl
====================================================================== 
Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-10-04 12:45 Karl R.        New Issue                                    
======================================================================
    
    
More information about the vtk-developers
mailing list