<br>Hi Sara,<br><br><br>If you want to iterate through the points of a mesh,<br>you may want to look at the code in<br><br>Insight/<br>  Examples/<br>     DataRepresentation/<br>        Mesh/<br>            PointSet2.cxx<br>
<br>
<br>This examples is described in the ITK Software Guide<br><br>          <a href="http://www.itk.org/ItkSoftwareGuide.pdf" target="_blank">http://www.itk.org/ItkSoftwareGuide.pdf</a><br><br>in Section 4.2.2. &quot;Getting Access to Points&quot; <br>

in pdf-page 83.<br><br>Essentially:<br><br>  PointsIterator  pointIterator = points-&gt;Begin();  <br>  PointsIterator pend = points-&gt;End();<br>  while( pointIterator != pend ) <br>    {<br>    PointType p = pointIterator.Value();   // access the point<br>

    std::cout &lt;&lt; p &lt;&lt; std::endl;           // print the point<br>    ++pointIterator;                       // advance to next point<br>    }<br><br><br><br><br><br>     Regards,<br><br><br>             Luis<br>

<br><br>-----------------------------------------------------------------<br><div class="gmail_quote">On Wed, Oct 13, 2010 at 5:45 PM, Sara Rolfe <span dir="ltr">&lt;<a href="mailto:smrolfe@u.washington.edu">smrolfe@u.washington.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello,<br>
<br>
I have a 3D mesh and I want to iterate through it&#39;s vertices.  Is there a easy and fast way to do this?  Like iterating through the cells?<br>
<br>
Thanks,<br>
Sara Rolfe<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<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br>