[vtkusers] Specify color of a vtkPolyData object
Xiaofeng Z
xf10036 at hotmail.com
Wed Apr 21 10:54:16 EDT 2010
I like to have an effect of coloring the actor, except I don't want to carry the color information seperately (to the class that creates the actor). I'd rather let the polydata to carry the color information to the rendering class. On the other hand, I don't want to specify each point or cell in the poly data. That would be an overkill. I just want to specify one place in the polydata a color and it will be rendering accordingly. Is that possible?
Many thank!
Xiaofeng Z
> Date: Wed, 21 Apr 2010 10:05:35 -0400
> Subject: Re: [vtkusers] Specify color of a vtkPolyData object
> From: daviddoria+vtk at gmail.com
> To: xf10036 at hotmail.com
> CC: vtkusers at vtk.org
>
> On Wed, Apr 21, 2010 at 10:02 AM, Xiaofeng Z <xf10036 at hotmail.com> wrote:
> > Hello,
> >
> > I'd like to know what's an easy way to specify the color of a vtkPolyData.
> >
> > Thanks!
> >
> > Xiaofeng Z
>
> Do you want to color all of the cells? All of the points? The actor?
>
> Search for "color" on this page:
> http://www.vtk.org/Wiki/VTK/Examples
>
> and you will mind many examples of how to color things.
>
> Thanks,
>
> David
_________________________________________________________________
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/c18c25e2/attachment.htm>
More information about the vtkusers
mailing list