[Paraview] How to color by Cell Data
Michael Jackson
mike.jackson at bluequartz.net
Sat Feb 27 11:09:25 EST 2010
I have a triangle surface mesh that contains Cell based RGB attribute
array. I would like to color by that array, ie, not using a Lookup
table or interpolation. When I load my data set the cell data is
listed, but in the "color by" drop down list the scalar array is not
listed as a choice.
On a "whim" I then ran the "Cell Data to Point Data" filter on the
data. At that point I was able to select the scalar array to "Color
By" and the surface mesh now has the correct colors.
I know if I were to code this up in straight VTk I can set the
rendering to be by Cells:
vtkPolyDataMapper *cubeMapper = vtkPolyDataMapper::New();
cubeMapper->SetInput(filter->GetOutput());
cubeMapper->SetScalarVisibility(1);
cubeMapper->SetScalarModeToUseCellData();
How do I get the same effect in ParaView?
Thanks
_________________________________________________________
Mike Jackson mike.jackson at bluequartz.net
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio
More information about the ParaView
mailing list