<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta content="text/html; charset=utf-8">
</head>
<body>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12.0pt; line-height:1.3; color:#1F497D">
<div>You can set different properties for front and back face of the mesh. See https://www.vtk.org/doc/nightly/html/classvtkActor.html#a67e6053de538c91fd20a496b24172dbd<br>
</div>
<div><br>
</div>
<div id="signature-x" class="signature_editor" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12.0pt; color:#1F497D">
Andras<br>
</div>
</div>
<hr style="border:none; height:1px; color:#E1E1E1; background-color:#E1E1E1">
<div style="border:none; padding:3.0pt 0cm 0cm 0cm"><span style="font-size:11.0pt; font-family:Calibri,Arial,Helvetica,sans-serif"><b>From:</b> Andrew Maclean <andrew.amaclean@gmail.com><br>
<b>Sent:</b> Nov 26, 2017 3:44 PM<br>
<b>To:</b> vtk<br>
<b>Cc:</b> alican<br>
<b>Subject:</b> Re: [vtkusers] How to color 2 sides of a plane by different colors? (alican)<br>
</span></div>
<br type="attribution">
<div>
<div dir="ltr">
<div class="gmail_default" style="font-size:small">Think of a plane has having zero thickness so it can have only one colour. </div>
<div class="gmail_default" style="font-size:small">One approach is to:<br>
1) Create two planes.</div>
<div class="gmail_default" style="font-size:small">2) Offset one plane from the other by a small amount. You need to judge by how much.</div>
<div class="gmail_default" style="font-size:small">3) Colour each plane's actor a different colour.</div>
<div class="gmail_default">4) Render and interact.<br>
</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">This site has lots of examples that you may find useful: <a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Florensen.github.io%2FVTKExamples%2Fsite%2F&data=02%7C01%7Classo%40queensu.ca%7C4e4e1233eed14fb7582908d5350e830e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636473258804797130&sdata=3ze%2BxD6j6kvN%2B%2F8%2BxV6nyFxdMKDRzynN5ItlOzlJn3g%3D&reserved=0" target="_blank">https://lorensen.<wbr>github.io/VTKExamples/site/</a></div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<br>
---------- Forwarded message ----------<br>
From: alican <<a href="mailto:alican1812@hotmail.com" target="_blank">alican1812@hotmail.com</a>><br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Cc: <br>
Bcc: <br>
Date: Sat, 25 Nov 2017 14:37:18 -0700 (MST)<br>
Subject: [vtkusers] How to color 2 sides of a plane by different colors?<br>
I have seen these example : VTK/Examples/Cxx/PolyData/Colo<wbr>rCellsWithRGB<br>
<<a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK%2FExamples%2FCxx%2FPolyData%2FColorCellsWithRGB&data=02%7C01%7Classo%40queensu.ca%7C4e4e1233eed14fb7582908d5350e830e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636473258804797130&sdata=zV1gDfw%2BnadYhcDfyeEGzYQjZXS1em8zKq%2FL7ELYYu4%3D&reserved=0" rel="noreferrer" target="_blank">https://www.vtk.org/Wiki/VTK/<wbr>Examples/Cxx/PolyData/ColorCel<wbr>lsWithRGB</a>><br>
<br>
and I understand how to color different cells.<br>
But is it possible to color 2 sides of the plane in different colors?<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.1045678.n5.nabble.com%2FVTK-Users-f1224199.html&data=02%7C01%7Classo%40queensu.ca%7C4e4e1233eed14fb7582908d5350e830e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636473258804797130&sdata=yc4wwWrajiVf6AYufDW0RPtg21RVW1%2FDBzh51Uv8VMs%3D&reserved=0" rel="noreferrer" target="_blank">
http://vtk.1045678.n5.nabble.c<wbr>om/VTK-Users-f1224199.html</a><br>
<br>
<br>
<br>
</blockquote>
</div>
-- <br>
<div class="m_-993672570845024319gmail_signature">______________________________<wbr>_____________<br>
Andrew J. P. Maclean<br>
<br>
______________________________<wbr>_____________</div>
</div>
</div>
</div>
</body>
</html>