<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>You can use a vtkPointSet. Also create vtkPoints where you can insert the points from your own data structure. However, I don&#39;t know how to remove a point from vtkPoints, but maybe you can rebuild vtkPoints each time something changes. Call SetPoints(your vtkPoints) on the vtkPointSet to set the Points. Information like color should  go into an array in the vtkPointData (vtkPointSet.GetPointData.AddArray ...). Lastly use a vtkTrivialProducer to properly insert it as source in the rendering pipeline.<br>
<br></div>If you changed your vtkPoints and the Array holding the color information just call Modified() on the vtkPointSet and re-render. This should suffice.<br><br></div>I&#39;ve gone through a similar process as you, having to construct a dataset manually and visualize it. It was very frustrating at times because the best information is contained in the vtk reference where it is strewn across many different places. Other information sources (blogs, wikis) are often outdated or wrong. As I figured out everything for myself it is possible that there is a better solution to your problem.<br>
<br>N.B.: Unless you&#39;re stuck to C++ consider using python with vtk bindings to visualize your data. VTK is complex enough, maybe you needn&#39;t add the complexity of a language such as C++ to your work.<br><br></div>
Kind regards,<br></div>Johannes Strecha.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 8, 2013 at 1:08 AM, Eddy Ilg <span dir="ltr">&lt;<a href="mailto:me@eddy-ilg.net" target="_blank">me@eddy-ilg.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear VTK users,<br>
<br>
I am new to VTK and overwhelmed by the possibilities it offers. I would like to render a point cloud with colored points.<br>
<br>
The points are changing (insertions, deletions, modifications) all the time. My algorithm manages a list of points (C++ vector).<br>
<br>
How could I point VTK to display the points in my list?<br>
<br>
Do I have to recreate all VTK datastructures anew in each rendering iteration?<br>
<br>
<br>
Best regards,<br>
<br>
<br>
Eddy Ilg<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_<u></u>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/<u></u>listinfo/vtkusers</a><br>
</blockquote></div><br></div>