vcgGeodist | R Documentation |
Compute pseudo-geodesic distance between two points on a mesh
vcgGeodist(x, pt1, pt2)
x |
triangular mesh of class |
pt1 |
3D coordinate on mesh or index of vertex |
pt2 |
3D coordinate on mesh or index of vertex |
returns the geodesic distance between pt1
and pt2
.
Make sure to have a clean manifold mesh. Note that this computes the length of the pseudo-geodesic path (following the edges) between the two vertices closest to these points.
data(humface)
pt1 <- humface.lm[1,]
pt2 <- humface.lm[5,]
vcgGeodist(humface,pt1,pt2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.