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

Bill Lorensen bill.lorensen at gmail.com
Sun Nov 26 17:17:16 EST 2017


I think they want to color each cell, not the entire actor?


On Sun, Nov 26, 2017 at 4:54 PM, Andras Lasso <lasso at queensu.ca> wrote:
> You can set different properties for front and back face of the mesh. See
> https://www.vtk.org/doc/nightly/html/classvtkActor.html#a67e6053de538c91fd20a496b24172dbd
>
> Andras
> ________________________________
> From: Andrew Maclean <andrew.amaclean at gmail.com>
> Sent: Nov 26, 2017 3:44 PM
> To: vtk
> Cc: alican
> Subject: Re: [vtkusers] How to color 2 sides of a plane by different colors?
> (alican)
>
> 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
>
> ___________________________________________
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list