[Insight-users] How to find point locations and radius of a Simplex Mesh (Generated by Deformable Simplex Mesh)

Tanweer Rashid trash001 at odu.edu
Sun Dec 9 13:04:35 EST 2012


Assuming s is your simplex mesh, p[0], p[1] and p[2] will contain your x,
y, z coordinates, respectively, for ith point of the mesh.

typedef itk::PointSet<double, 3> PointSetType;
for (int i = 0; i < s->GetNumberOfPoints(); i++) {
PointSetType::PointType p;
p = s->GetPoint(i);
 cout << p[0] << ", " << p[1] << ", " << p[2] << endl;
}


-- 
Tanweer Rashid
MSVE Dept.
Old Dominion University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20121209/52731125/attachment.htm>


More information about the Insight-users mailing list