[vtkusers] How to color 2 sides of a plane by different colors? (alican)

Andrew Maclean andrew.amaclean at gmail.com
Sun Nov 26 15:43:54 EST 2017


Think of a plane has having zero thickness so it can have only one colour.
One approach is to:
1) Create two planes.
2) Offset one plane from the other by a small amount. You need to judge by
how much.
3) Colour each plane's actor a different colour.
4) Render and interact.

This site has lots of examples that you may find useful: https://lorensen.
github.io/VTKExamples/site/


> ---------- Forwarded message ----------
> From: alican <alican1812 at hotmail.com>
> To: vtkusers at vtk.org
> Cc:
> Bcc:
> Date: Sat, 25 Nov 2017 14:37:18 -0700 (MST)
> Subject: [vtkusers] How to color 2 sides of a plane by different colors?
> I have seen these example : VTK/Examples/Cxx/PolyData/ColorCellsWithRGB
> <https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColorCellsWithRGB>
>
> and I understand how to color different cells.
> But is it possible to color 2 sides of the plane in different colors?
>
>
>
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
>
>
>
> --
___________________________________________
Andrew J. P. Maclean

___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20171127/f8b8fdb9/attachment.html>


More information about the vtkusers mailing list