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. <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. The relevant part of that code is shown below:
<br><br> PointsIterator pointIterator = points->Begin(); <br> PointsIterator end = points->End();<br> while( pointIterator != end ) <br> {<br> PointType p = pointIterator.Value(); // access the point<br>
std::cout << p << std::endl; // print the point<br> ++pointIterator; // advance to next point<br> }<br> std::cout<< "End of points iterator" << std::endl;
<br><br>My question is how do I modify this to retrieve points located in the mesh? 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>