<div class="gmail_quote">On 5 January 2012 17:19, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div><div class="h5">On Thu, Jan 5, 2012 at 12:14 PM, Bill Cheatham <span dir="ltr">&lt;<a href="mailto:cheathambill@gmail.com" target="_blank">cheathambill@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>Hi All,</div><div><br></div><div>This may be a very obvious question, but I&#39;m having some trouble creating a 3D scatter plot of coloured points.</div><div><br></div><div>So far, I have been using the directions hinted at in this thread:</div>


<div><a href="http://public.kitware.com/pipermail/vtkusers/2004-June/074696.html" target="_blank">http://public.kitware.com/pipermail/vtkusers/2004-June/074696.html</a></div><div><br></div><div>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 &#39;unseen&#39; polygons connecting them.</div>


<div><br></div><div>Any help or tips would be much appreciated.</div><div><br></div><div>Thanks,</div><div><br></div><div>Bill</div></blockquote><div><br></div></div></div><div>Is this what you&#39;re trying to do?</div>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColoredPoints" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColoredPoints</a><br clear="all">
<br>You may also want to read this:</div><div class="gmail_quote"><a href="http://www.vtk.org/Wiki/VTK/Tutorials/GeometryTopology" target="_blank">http://www.vtk.org/Wiki/VTK/Tutorials/GeometryTopology</a><span class="HOEnZb"><font color="#888888"><br>
<br><div>David </div></font></span></div>
</blockquote></div><br><div><br></div><div>Perfect thanks, this is exactly what I was looking for. For some reason I couldn&#39;t find it (or anything similar) via Google.</div><div><br></div><div>Cheers,</div><div><br></div>
<div>Bill</div>