<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body 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/VTKExamples/site/Cxx/PolyData/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<vtkUniformGrid> grid = vtkSmartPointer<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>::New();</div>
<div> for (int i = 0; i < grid->GetNumberOfPoints(); ++i) {</div>
<div> points->InsertNextPoint(grid->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 tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Bill Lorensen <bill.lorensen@gmail.com><br>
<b>Gesendet:</b> Montag, 14. August 2017 19:34<br>
<b>An:</b> Dan Lipsa; Müller, Jan<br>
<b>Cc:</b> vtkusers@vtk.org<br>
<b>Betreff:</b> Re: [vtkusers] Represent Grid as Points</font>
<div> </div>
</div>
<div>
<div>
<div dir="auto">Or <a href="https://lorensen.github.io/VTKExamples/site/Cxx/Visualization/Glyph3DMapper">
https://lorensen.github.io/VTKExamples/site/Cxx/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">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/VTKExamples/site/Cxx/PolyData/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"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_7048434725104759329HOEnZb"><font color="#888888"><br>
Jan
<p><br>
</p>
</font></span></div>
<br>
_______________________________________________<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/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_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=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/mailman/listinfo/vtkusers</a><br>
<br>
</blockquote>
</div>
<br>
</div>
_______________________________________________<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/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_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=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/mailman/listinfo/vtkusers</a><br>
</blockquote>
</div>
</div>
<div dir="ltr">-- <br>
</div>
<div class="gmail_signature">Unpaid intern in BillsBasement at noware dot com<br>
</div>
</div>
</div>
</body>
</html>