[Paraview] How to color by Cell Data

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Sun Feb 28 00:43:46 EST 2010


That's weird, your cell array should have been listed in the Color By
menu. Is it possible to share the data or a small sample to reproduce
the issue?

Utkarsh

On Sat, Feb 27, 2010 at 11:09 AM, Michael Jackson
<mike.jackson at bluequartz.net> wrote:
> 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
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list