[vtkusers] Cell Data for Colors

Kent Eschenberg kee at wes.hpc.mil
Thu Nov 30 17:36:05 EST 2000


Using VTK 3.1 (11/22/2000) on an SGI Onyx (IRIX 6.5.9m), a C++ program
produces a drawing with no colors (only gray) using unstructured cells
with scalar integer cell data and no point data:

   vtkUnstructuredGrid
   ->vtkGeometryFilter
   ->vtkTriangleFilter
   ->vtkPolyDataNormals
   ->vtkPolyDataMapper
   ->vtkActor
   ->vtkRenderer
   ->vtkRenderWindow

The data object seems correct since I see a drawing with colors after
inserting a conversion from cell to point data:

   vtkUnstructuredGrid
   ->vtkGeometryFilter
   ->vtkCellDataToPointData  NEW
   ->vtkTriangleFilter
   ->vtkPolyDataNormals
   ->vtkPolyDataMapper
   ->vtkActor
   ->vtkRenderer
   ->vtkRenderWindow


Am I doing something wrong or is the use of cell data for setting colors
not yet available? Thanks in advance for any advice!

Kent Eschenberg
ERDC MSRC (DoD supercomputer center), Vicksburg, MS
kee at athena.wes.army.mil




More information about the vtkusers mailing list