[vtkusers] 3D coloured scatter plot

Bill Cheatham cheathambill at gmail.com
Thu Jan 5 12:14:16 EST 2012


Hi All,

This may be a very obvious question, but I'm having some trouble creating a
3D scatter plot of coloured points.

So far, I have been using the directions hinted at in this thread:
http://public.kitware.com/pipermail/vtkusers/2004-June/074696.html

i.e. I have used the cube.cxx example, and changed setPolys to setVerts.
However, this just gives me gray points in 3D space, while I want each
point to have its own RGB colour. In addition, it seems like using the
points/polygons paradigm is not best suited to what I am trying to achieve;
all I really want to do is plot the points themselves, without the added
complication of 'unseen' polygons connecting them.

Any help or tips would be much appreciated.

Thanks,

Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120105/ee6ae1c6/attachment.htm>


More information about the vtkusers mailing list