vtkPolyDataReader produces wrong InsertLocation for vtkCellArray
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
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.