[vtkusers] Re: directly specifying RGB values for polydata?

Goodwin Lawlor goodwin.lawlor at ucd.ie
Wed Mar 23 17:37:01 EST 2005


Hi Melissa,

You have to use a four component (RGBA) vtkUnsignedCharArray for the array
values to be used as colours, ie, not mapped through a LUT. 0 <= RGBA[i] <=
255

hth

Goodwin

"Melissa Suter" <suterm at dpi.radiology.uiowa.edu> wrote in message
news:4241E7F3.2040605 at dpi.radiology.uiowa.edu...
> I know this question has been asked before, but I haven't been able to
> find any answers.  I have 3D polydata that I want to add color to.  I
> don't want to do this by indexing or by texture maping, but instead want
> to be able to directly specify point RGB values.  Is this possible in vtk?
>
> Any help will be greatly appreciated.  Thanks in advance,
> Melissa
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the 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