Dear all,
I have hollow 3D objects and i need to to extract all the points(edges) from their surfuces in order to calculate the mean distance.
How can i extract all these points ?
Thanks a lot,
Chris
Dear all,
I have hollow 3D objects and i need to to extract all the points(edges) from their surfuces in order to calculate the mean distance.
How can i extract all these points ?
Thanks a lot,
Chris
slicer.util.array(“modelName”)
Do you yoy ant to compute distance between two surface meshes?
Yes correct, the mean distance between all the surfaces points of the two models.
Thanks
Chris
You can use ModelToModelDistance extension for this.
Thanks a lot Andras
I will check it
e.g.:
mod1Arr = slicer.util.array("model1Name")
mod2Arr = slicer.util.array("model2Name")
# the mean distance can be calculated by the center of mass
mod1Cen = np.mean(mod1Arr, axis=0)
mod2Cen = np.mean(mod2Arr, axis=0)
meanDist = np.linalg.norm(mod2Cen - mod1Cen)
The nearest distance may be found by “ModelToModelDistance extension” as followed by @lassoan …