[vtkusers] How to set colors for contour edges?

Jothybasu Selvaraj jothybasu at gmail.com
Thu Feb 16 04:23:56 EST 2012


I don't know how to set different colors to different parts of the contour,
but you could set the edge color like this

Actor->GetProperty()->EdgeVisibilityOn();

*Actor->GetProperty()->SetEdgeColor(1,0,1);

Jothy
*



On Thu, Feb 16, 2012 at 8:47 AM, Vladimir Dudnik
<vladimir.dudnik at gmail.com>wrote:

> Hello VTK users,
>
> I'd like to set different colors for some contour edges. Let's consider a
> closed rectangular contour, represented by vtkPolyData object.
>
> Could you please provide an advice of what is the right way to set for
> example red color for the contour right edge and green color for the left
> edge?
>
> I've attached a simple example of how contour rendering is currently done
> in
> my program
> http://vtk.1045678.n5.nabble.com/file/n5488892/vtk_polyline_colors.cxx
> vtk_polyline_colors.cxx
> http://vtk.1045678.n5.nabble.com/file/n5488892/CMakeLists.txtCMakeLists.txt
>
> Thanks,
>  Vladimir
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/How-to-set-colors-for-contour-edges-tp5488892p5488892.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120216/a16ee0dd/attachment.htm>


More information about the vtkusers mailing list