I am trying to color some parts of a polydata set generated from vtkMarchingCubes
in certain colors; I know
the particular lattice points (of the structure points) and their colors.
Is there a way to specify that and then
let these colors to be used by the renderer to shade the generated
geometry? Ideally, the lattice
colors are interpolated
to the vertices of the generated geometry, which is then used in Gouraud
shading. Can this be done within the
classes of VTK, or should I retrieve the relevant triangles from vtk
and specify vertex colors before rendering?
Thanks.
-- krs
--
K.R.Subramanian Phone: (704) 547-4872
Department of Computer Science FAX: (704) 547-3516
UNC Charlotte Email: krs@cs.uncc.edu
9201 Univ. City Blvd. WWW: http://www.cs.uncc.edu/~krs
Charlotte, NC 28223-0001