[vtkusers] How to change the color of a single polydata cell?

David Doria daviddoria at gmail.com
Mon Dec 5 09:04:34 EST 2016


>
> Hi,
>
> i have the cell ID of the closest cell to a specific point. Now I want to
> change the color of this cell in my polydata.
> How can I do this?
>
> Thank you!
>
You have to set the color of *all* of the cells, like this:

http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColorCellsWithRGB
<http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColorCellsWithRGB>

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161205/20e4f689/attachment.html>


More information about the vtkusers mailing list