[Paraview] How to color by Cell Data

Jérôme jerome.velut at gmail.com
Sun Feb 28 04:02:56 EST 2010


Hi,
I noted this problem a few days ago.
A *really* simple example:
- Add a SphereSource
- Connect to a "Generate Ids" filter
- Update: The information panel shows a 'Ids' array for points and for
cells, but
the "Color by" doesn't give the choice of cell array.

Jerome

2010/2/28 Utkarsh Ayachit <utkarsh.ayachit at kitware.com>

> 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
> >
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100228/9ad1696e/attachment-0001.htm>


More information about the ParaView mailing list