[vtkusers] Question about vtkPolyData

John Norris jnorris at mcs.anl.gov
Tue Nov 15 15:29:20 EST 2005


Hi,

The documentation for vtkPolyData has the following warning:

"To preserve the consistency of cell ids, and to insure that cells with 
cell data are rendered properly, users must insert mixed cells in the 
order of vertices (vtkVertex and vtkPolyVertex), lines (vtkLine and 
vtkPolyLine), polygons (vtkTriangle, vtkQuad, vtkPolygon), and triangle 
strips (vtkTriangleStrip)."

Is this still valid for VTK 5.1?  I ask because I've been looking at the 
code for vtkDepthSortPolyData and it doesn't seem to take cell type into 
account when sorting.  Should it be sorting the vertices, lines, 
polygons and strips separately?

Thanks,
John
-- 
John Norris
Research Programmer
Center for Simulation of Advanced Rockets
http://www.uiuc.edu/ph/www/jnorris



More information about the vtkusers mailing list