View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012660VTK(No Category)public2011-10-15 18:212016-08-12 09:55
ReporterBryn Lloyd 
Assigned ToDave DeMarle 
PriorityhighSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version5.8.0 
Target VersionFixed in Version 
Summary0012660: InsertNextCell does not work on various dataset types, if directly from reader
DescriptionIf 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.

TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Filescxx file icon test-InsertNextCellBug.cxx [^] (4,045 bytes) 2011-10-15 18:22

 Relationships

  Notes
(0031182)
Dave DeMarle (administrator)
2013-07-22 17:21

If this bug is still present in 6.0.0, please reopen the bug report.
(0036252)
Berk Geveci (administrator)
2016-07-06 16:48

Setting to status of bugs that have not been updated in the last year to expired. Please re-open if still important.
(0037251)
Kitware Robot (administrator)
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.

 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


Copyright © 2000 - 2018 MantisBT Team