[vtkusers] Specify color of a vtkPolyData object
Xiaofeng Z
xf10036 at hotmail.com
Wed Apr 21 11:49:51 EDT 2010
Thanks for your response. But I creates poly data in a class other than the class that creates actors. I would like to let poly data object to carry the color information. Is it possible to specify one color for the entire poly data? I don't need to specify color for each point or cell, etc.
Thanks!
Xiaofeng Z
> Date: Wed, 21 Apr 2010 15:06:16 +0100
> From: jballesteros at motivando.me
> To: xf10036 at hotmail.com
> CC: vtkusers at vtk.org
> Subject: Re: [vtkusers] Specify color of a vtkPolyData object
>
> 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
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100421/e38f1aee/attachment.htm>
More information about the vtkusers
mailing list