<div dir="ltr">I don't know how to set different colors to different parts of the contour, but you could set the edge color like this<br><br><span style="color:#c0c0c0"> </span><font size="4">Actor<span style="color:rgb(0,0,0)">-></span>GetProperty<span style="color:rgb(0,0,0)">()-></span>EdgeVisibilityOn<span style="color:rgb(0,0,0)">();</span></font>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"></span><b><font size="4">Actor<span style="color:rgb(0,0,0)">-></span>GetProperty<span style="color:rgb(0,0,0)">()-></span>SetEdgeColor<span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,128)">1</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(0,0,128)">0</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(0,0,128)">1</span><span style="color:rgb(0,0,0)">);<br>
<br>Jothy<br></span></font></b></pre><br><br><div class="gmail_quote">On Thu, Feb 16, 2012 at 8:47 AM, Vladimir Dudnik <span dir="ltr"><<a href="mailto:vladimir.dudnik@gmail.com">vladimir.dudnik@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello VTK users,<br>
<br>
I'd like to set different colors for some contour edges. Let's consider a<br>
closed rectangular contour, represented by vtkPolyData object.<br>
<br>
Could you please provide an advice of what is the right way to set for<br>
example red color for the contour right edge and green color for the left<br>
edge?<br>
<br>
I've attached a simple example of how contour rendering is currently done in<br>
my program<br>
<a href="http://vtk.1045678.n5.nabble.com/file/n5488892/vtk_polyline_colors.cxx" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5488892/vtk_polyline_colors.cxx</a><br>
vtk_polyline_colors.cxx<br>
<a href="http://vtk.1045678.n5.nabble.com/file/n5488892/CMakeLists.txt" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5488892/CMakeLists.txt</a> CMakeLists.txt<br>
<br>
Thanks,<br>
Vladimir<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/How-to-set-colors-for-contour-edges-tp5488892p5488892.html" target="_blank">http://vtk.1045678.n5.nabble.com/How-to-set-colors-for-contour-edges-tp5488892p5488892.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</div>