[vtk-developers] [VTK 0012687]: vtkGeometryFilter corrupts cell data when converting unstructured grid

Mantis Bug Tracker mantis at public.kitware.com
Mon Oct 31 05:25:04 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://vtk.org/Bug/view.php?id=12687 
====================================================================== 
Reported By:                Andreas Buykx
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   12687
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   high
Status:                     backlog
Project:                    TBD 
Type:                       incorrect functionality 
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2011-10-31 10:25 CET
Last Modified:              2011-10-31 10:25 CET
====================================================================== 
Summary:                    vtkGeometryFilter corrupts cell data when converting
unstructured grid
Description: 
During conversion of unstructured grid (UG) to polydata (PD) using
vtkGeometryFilter cell data gets lost if the UG contains combinations of
vertices/lines/polys.

The cell type switch in vtkGeometryFilter::UnstructuredGridExecute creates cells
in vtkCellArrays for vertices, lines, and polys. Each of these generates its own
ids, causing e.g. a subsequent UG vertex and UG line cell to map to the same PD
id. Consequently, the cell data of the UG vertex is overwritten by that of the
UG line.

In the attached archive is a small program that demonstrates the issue, and XML
files of the input UG and the output PD, and the program output reporting the
corrupted cell data array.

Note: SALOME GUI VTKViewer_GeometryFilter.cxx has probably addressed this issue
by using vtkPolyData::InsertNextCell instead of building verts, lines etc.
separately (http://docs.salome-platform.org/salome_6_3_1/gui/tui/GUI/index.html)

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-10-31 10:25 Andreas Buykx  New Issue                                    
2011-10-31 10:25 Andreas Buykx  File Added: vtkGeometryFilter_issue.tgz         
          
======================================================================




More information about the vtk-developers mailing list