[vtkusers] Display faces and cells of a vtkStructuredGrid

Werner Joergensen wjoergensen at yahoo.com
Thu Jun 11 06:34:32 EDT 2009


Dear VTK users,
I have created a vtkStructuredGrid using this example:
http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Examples/DataManipulation/Cxx/SGrid.cxx?root=VTK&content-type=text/plain

I was able to display the grid edges with vtkExtractEdges() and vtkTubeFilter().

But how do I display cells or faces with filled polygons? I tried to apply vtkExtractGrid or vtkGeometryFilter or vtkStructuredGridGeometryFilter without success. I believe the face and cell topologies already exist in the vtkStructuredGrid, or do I have to add each and every cell explicitly?

Thanks
Werner



      



More information about the vtkusers mailing list