Hello all,<br><br>I am trying to visualize the mesh
produced by the BinaryMask3dMeshSource in OpenGL. I ran the filter,
retrieved the mesh points by using a point iterator, then saved the
points to a text file. The iterator is as follows:
<br> MeshType::ConstPointer mesh = meshSource->GetOutput();<br> PointsContainer::ConstPointer points = mesh->GetPoints();<br><br> PointsConstIterator itr = points->Begin();<br> PointsConstIterator end = points->End();
<br> while( itr != end )<br> {<br> PointType point = itr.Value();<br> double x = point[0];<br> a_file << x<<" ";<br> double y = point[1];<br> a_file << y<<" ";
<br> double z = point[2];<br> a_file << z<<endl;<br> count++;<br> ++itr;<br> }<br><br>I
then open the text file and use GL_POINTS to draw a the points. I
visualized the mesh like this as an easy way to visualize and will
later determine the connectivity of the points and draw the surface
line in Morphogenesis in Insight Applications.
<br><br>My problem is that the mesh does not look anything like I
expect it to. It looks very noisy and I cannot make out the features I
am looking for. I am running the filter for bone right now, and have
tried HU of 380, 500, and 1000. <br><br>Does anyone have any recommendations? <br><br>Thank you,<br><span class="sg">Catherine Peloquin<br>
</span>