[vtkusers] Cloud of colored points
George Laskowsky
georgelaskowsky at gmail.com
Mon Aug 16 16:00:03 EDT 2010
Hi, I am a new user to vtk, be nice :)
What I am trying to do is to visualize the output of a raytracing program,
specially the output of an algorithm, Irradiance Caching. What I have is a
list of lots of points, each with it's own rgb value.
I tried using vtkVertex.
The way I have do it is to create both a vtkPoints and a
vtkUnsignedCharArray, for position and colors respectively. I assign the
color vector with polydata.GetPointData().SetVectors(self.colors) method.
The only color I see is the default one (white) or the one I assign through
actor.GetProperty().SetColor(color).
I am working with Python in Linux, if that info is relevant.
I know I can do other things like using voxels, or one actor ¡per point!,
but it don't think that is very efficient.
The number of points its in the order of hundred of thousands.
Thanks for your help, if you need any more info, please, just tell me.
P.S: I have read some docs and a lot of past posts. There have been similar
inquiries, but no solution has work for me (like coloring with scalars
values and a look up table, I need a different rgb value per point, and
there are lots).
--
George Laskowsky Ziguilinsky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100816/37dd449c/attachment.htm>
More information about the vtkusers
mailing list