MantisBT - VTK
View Issue Details
0012628VTK(No Category)public2011-10-04 12:452016-07-06 12:20
Karl R. 
Dave DeMarle 
normalminorhave not tried
closedfixed 
5.6.1 
 
Kitware
crash
0012628: PolyData::Reset() does not reset cell-ids
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
No tags attached.
Issue History
2011-10-04 12:45Karl R.New Issue
2013-06-25 10:54Dave DeMarleNote Added: 0031040
2013-07-22 12:46Dave DeMarleNote Added: 0031156
2013-07-22 12:46Dave DeMarleStatusbacklog => expired
2013-07-22 12:46Dave DeMarleResolutionopen => fixed
2013-07-22 12:46Dave DeMarleAssigned To => Dave DeMarle
2014-10-04 20:32Berk GeveciStatusexpired => backlog
2014-10-04 20:32Berk GeveciResolutionfixed => reopened
2016-07-06 12:17Dave DeMarleNote Added: 0036196
2016-07-06 12:17Dave DeMarleStatusbacklog => closed
2016-07-06 12:17Dave DeMarleResolutionreopened => fixed
2016-07-06 12:20Dave DeMarleNote Added: 0036197

Notes
(0031040)
Dave DeMarle   
2013-06-25 10:54   
Karl would you be ale to see if the issue still exists in 5.10 and 6.0?
thanks,
(0031156)
Dave DeMarle   
2013-07-22 12:46   
Please feel free to reopen if you find this is not working in 6.0.0
(0036196)
Dave DeMarle   
2016-07-06 12:17   
fix by commit 1e31faf4
(0036197)
Dave DeMarle   
2016-07-06 12:20   
Fixed by Sujin in 1e31faf4