MantisBT - VTK
View Issue Details
0008208VTK(No Category)public2008-12-02 08:552016-08-12 09:55
FSI 
Kitware Robot 
normalfeaturealways
closedmoved 
 
 
0008208: vtkPolyDataReader produces wrong InsertLocation for vtkCellArray
Hallo,

I am using vtkPolyData to manipulate Data, where for example I replace certain Cells and/or insert Cells at the end of the List. The manipulations work fine when I generate a grid from scratch.
A problem occurs when I want to read a Grid from a file and do the manipulations afterwards.

VTK-5.2.0

vtkPolyDataReader(), for example in line:
228: idArray = polys->WritePointer(ncells, size);

WritePointer initializes the InsertLocation to 0.
After the Data has been read the InsertLocation should be set to the end of the vtkCellArray.

I never used vtkUnstructureGrid before, but looking at the source code of the vtkUnstructuredGridReader all the signs are that the same problem will occur.

A python script with a testGrid is attached to demonstrate the issue of the InsertLocation in conjunction with the vtkPolyDataReader.

No tags attached.
? FailurePolyDataReader.py (852) 2008-12-02 08:55
https://www.vtk.org/Bug/file/6885/FailurePolyDataReader.py
? testGrid.vtk (1,119) 2008-12-02 08:55
https://www.vtk.org/Bug/file/6886/testGrid.vtk
Issue History
2008-12-02 08:55FSINew Issue
2008-12-02 08:55FSIFile Added: FailurePolyDataReader.py
2008-12-02 08:55FSIFile Added: testGrid.vtk
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:55Kitware RobotNote Added: 0037043
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0037043)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.