<div dir="ltr"><div>A vtkPoint is a geometric location. You need cells to visualize your data. in your case, you need Vert's, one for each Point. An easy way to create the verts is to use vtkVertexGlyphFilter.<br><br></div>
See for example:<br><a href="http://vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadTextFile">http://vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadTextFile</a><br><a href="http://vtk.org/Wiki/VTK/Examples/Cxx/Filtering/VertexGlyphFilter">http://vtk.org/Wiki/VTK/Examples/Cxx/Filtering/VertexGlyphFilter</a><br>
<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 9, 2013 at 11:46 AM, Ruff <span dir="ltr"><<a href="mailto:albin.nilsson@gmail.com" target="_blank">albin.nilsson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">All i get is an empty renderWindow. I get no errors, but no data is rendered<br>
either. What am I doing wrong?<br>
<br>
What I do is pretty much this:<br>
<br>
AtomGrid=vtk.vtkUnstructuredGrid()<br>
AtomGrid.SetPoints( vtkPoints with [index,x,y,z] )<br>
AtomGrid.GetPointData().SetScalars( vtkFloatArray with [index, scalar]<br>
)<br>
<br>
volMapper = vtk.vtkUnstructuredGridVolumeRayCastMapper()<br>
volMapper.SetBlendModeToComposite()<br>
volMapper.SetInput(AtomGrid)<br>
<br>
<br>
I tried volMapper.SetScalarModeToUsePointFieldData(), but then it claims<br>
that I have no scalar values to use(!!)<br>
<br>
(I cheated before, and was satisfied using ImageData for this, but now I<br>
really need to get this to work with UnstructuredGrid)<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html" target="_blank">http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<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/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_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/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>