I would like retrieve the x, y, and z coordinates of nodes of the isosurface mesh generated by the BinaryMask3DMeshSource in the example located in Insight/Examples/Filtering/SurfaceExtraction.cxx.&nbsp; <br><br>In answer to the question located at 
<a href="http://public.kitware.com/pipermail/insight-users/2003-September/004932.html">http://public.kitware.com/pipermail/insight-users/2003-September/004932.html</a>, it was suggested that one could retrieve data points from a PointSet by using an iterator like that in Insight/Examples/DataRepresentation/Mesh/PointSet2.cxx.&nbsp; The relevant part of that code is shown below:
<br><br>&nbsp; PointsIterator&nbsp; pointIterator = points-&gt;Begin(); <br>&nbsp; PointsIterator end = points-&gt;End();<br>&nbsp; while( pointIterator != end ) <br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; PointType p = pointIterator.Value();&nbsp;&nbsp; // access the point<br>
&nbsp;&nbsp;&nbsp; std::cout &lt;&lt; p &lt;&lt; std::endl;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // print the point<br>&nbsp;&nbsp;&nbsp; ++pointIterator;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // advance to next point<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; std::cout&lt;&lt; &quot;End of points iterator&quot; &lt;&lt; std::endl;
<br><br>My question is how do I modify this to retrieve points located in the mesh?&nbsp; It seems like pointIterator and end can remain as they are, but points was set by insterting values and I cannot figure out what the corresponding variable would be for the mesh.
<br><br>Thank you for you assistance,<br>Catherine<br>