[vtkusers] Specify color of a vtkPolyData object

Jorge Ballesteros jballesteros at motivando.me
Wed Apr 21 10:06:16 EDT 2010


Hi,

The easiest way is by setting the associated actor color, e.g. 
Actor->GetProperty()->SetColor(r,g,b);

Take a look in the doxygen doc:

http://www.vtk.org/doc/release/5.4/html/a01322.html



Xiaofeng Z wrote:
> Hello,
>  
> I'd like to know what's an easy way to specify the color of a vtkPolyData.
>  
> Thanks!
> 
> Xiaofeng Z
> 
> 
> 
> ------------------------------------------------------------------------
> The New Busy think 9 to 5 is a cute idea. Combine multiple calendars 
> with Hotmail. Get busy. 
> <http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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



More information about the vtkusers mailing list