<div dir="ltr">Why do you need a vtkPoints? In the example it is only used to create the points. For a uniform grid (or image data) the points are not stored but infered from origin and spacing so you should not need them at least for making something similar with the example work.<div><br></div><div>Dan</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 14, 2017 at 4:49 PM, Müller, Jan <span dir="ltr"><<a href="mailto:J.Mueller@vr.rwth-aachen.de" target="_blank">J.Mueller@vr.rwth-aachen.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;margin:0px;padding:0px">
<font face="Arial,Helvetica,sans-serif" size="1"><span style="font-size:13.32px"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size:10pt">This:</span></font></span></font></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;margin:0px;padding:0px">
<font face="Arial,Helvetica,sans-serif" size="1"><span style="font-size:13.32px"><a href="https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/ColoredPoints/" target="_blank"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size:10pt">https://lorensen.github.io/<wbr>VTKExamples/site/Cxx/PolyData/<wbr>ColoredPoints/</span></font></a><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size:10pt"> </span></font><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size:10pt"><br>
</span></font><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size:10pt">Plus:</span></font></span></font></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
 vtkSmartPointer<<wbr>vtkUniformGrid> grid = vtkSmartPointer<<wbr>vtkUniformGrid>::New();</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
  grid->SetDimensions(xsize, ysize, zsize);</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">
<div>  vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::<wbr>New();</div>
<div>  for (int i = 0; i < grid->GetNumberOfPoints(); ++i) {</div>
<div>    points->InsertNextPoint(grid-><wbr>GetPoint(i));</div>
<div>  }</div>
<div><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size:10pt">i</span></font><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size:10pt">s pretty much what i do at the moment, I wonder if there is a way to get the
 Points out of a grid without iterating through the whole grid and copying every single point it contains.</span></font><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size:10pt"><br>
</span></font>Thanks for your help​<br>
</div>
</div>
<p><br>
</p>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div id="m_2936931388068564761divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>><br>
<b>Gesendet:</b> Montag, 14. August 2017 19:34<br>
<b>An:</b> Dan Lipsa; Müller, Jan<br>
<b>Cc:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Betreff:</b> Re: [vtkusers] Represent Grid as Points</font>
<div> </div>
</div><div><div class="h5">
<div>
<div>
<div dir="auto">Or <a href="https://lorensen.github.io/VTKExamples/site/Cxx/Visualization/Glyph3DMapper" target="_blank">
https://lorensen.github.io/<wbr>VTKExamples/site/Cxx/<wbr>Visualization/Glyph3DMapper</a></div>
<br>
<div class="gmail_quote">
<div>On Mon, Aug 14, 2017 at 11:57 AM Dan Lipsa <<a href="mailto:dan.lipsa@kitware.com" target="_blank">dan.lipsa@kitware.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Does this help?
<div><a href="https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/ColoredPoints/" target="_blank">https://lorensen.github.io/<wbr>VTKExamples/site/Cxx/PolyData/<wbr>ColoredPoints/</a><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Aug 14, 2017 at 9:57 AM, Müller, Jan <span><<a href="mailto:J.Mueller@vr.rwth-aachen.de" target="_blank">J.Mueller@vr.rwth-aachen.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi All,<br>
<br>
I am new to VTK and I have trouble visualising just the points of a "vtkUniformGrid". I create a grid and attach Scalars to its points. So far so good but when it comes to visualising the points of the grid im having problems.<br>
</p>
<p><br>
</p>
<p>I found "SetRepresentationToPoints"<wbr>sadly  this only visualises the surface of my Grid but i want ALL points of the grid.</p>
<p>The next promising thing I found is "vtkVertexGlyphFilter" but I didnt manage to find a comfortable way of connecting my Grid to it , without creating "vtkPolyData" by iterating through all points of the grid one by one.</p>
<p><br>
</p>
I am pretty sure there must be an easy way to visualise a Grid as Points but im unable to find it.<br>
Any help is very much appreciated!<br>
<br>
Greetings<span class="m_2936931388068564761m_7048434725104759329HOEnZb"><font color="#888888"><br>
Jan
<p><br>
</p>
</font></span></div>
<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">
http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">
http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
<br>
</blockquote>
</div>
<br>
</div>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">
http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">
http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</blockquote>
</div>
</div>
<div dir="ltr">-- <br>
</div>
<div class="m_2936931388068564761gmail_signature">Unpaid intern in BillsBasement at noware dot com<br>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>