MantisBT - VTK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0012660 | VTK | (No Category) | public | 2011-10-15 18:21 | 2016-08-12 09:55 |
Reporter | Bryn Lloyd | ||||
Assigned To | Dave DeMarle | ||||
Priority | high | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | 5.8.0 | ||||
Target Version | Fixed in Version | ||||
Project | TBD | ||||
Type | incorrect functionality | ||||
Summary | 0012660: InsertNextCell does not work on various dataset types, if directly from reader | ||||
Description | If a dataset is directly from a reader (e.g. vtkPolyDataReader or vtkXMLPolyDataReader) then the InsertionLocation is not correctly set (it is set to zero, even if the data contains N>0 cells). If a user tries to insert a cell in this dataset, the result will be wrong, because the point ids of the cell will be set at the wrong location. Simply copying does not work, because the DeepCopy operation does not use the InsertNextCell to copy cells. Instead it copies also the InsertionLocation variable. The only way to fix such a dataset, is to create a new cell array, and insert the cells into this array. I am sure the bug is in the readers. I don't know if it happens in all readers, but have observed it for XML and legacy readers for polydata and unstructured grids. I will post a test, which illustrates the problem, and which can be added to verify that a fix actually resolved the issue. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://www.vtk.org/Bug/file/9047/test-InsertNextCellBug.cxx | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2011-10-15 18:21 | Bryn Lloyd | New Issue | |||
2011-10-15 18:22 | Bryn Lloyd | File Added: test-InsertNextCellBug.cxx | |||
2013-07-22 17:21 | Dave DeMarle | Note Added: 0031182 | |||
2013-07-22 17:21 | Dave DeMarle | Status | backlog => expired | ||
2013-07-22 17:21 | Dave DeMarle | Resolution | open => fixed | ||
2013-07-22 17:21 | Dave DeMarle | Assigned To | => Dave DeMarle | ||
2014-10-04 20:29 | Berk Geveci | Status | expired => backlog | ||
2014-10-04 20:29 | Berk Geveci | Resolution | fixed => reopened | ||
2016-07-06 16:48 | Berk Geveci | Status | backlog => expired | ||
2016-07-06 16:48 | Berk Geveci | Note Added: 0036252 | |||
2016-08-12 09:55 | Kitware Robot | Note Added: 0037251 | |||
2016-08-12 09:55 | Kitware Robot | Status | expired => closed | ||
2016-08-12 09:55 | Kitware Robot | Resolution | reopened => moved |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|