[vtkusers] Color a vtkcell

Darshan Pai darshanpai at gmail.com
Tue Jan 12 17:05:32 EST 2010


Yes you can

Add Attributes as follows PolyData->GetCellData()->SetScalars()
and put a lookupTable with the required colors

On Tue, Jan 12, 2010 at 5:03 PM, awabi <aw.ndaw at gmail.com> wrote:

>
> Hello,
>
> I'd like to know if it is possible with vtk to color the faces of a
> vtkpolydata as I want. For example I have a cube and I'd like to color the
> faces differently.
>
> Thank you,
>
> Awa
> --
> View this message in context:
> http://old.nabble.com/Color-a-vtkcell-tp27135594p27135594.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100112/dac3a4d6/attachment.htm>


More information about the vtkusers mailing list