barycenter | R Documentation |
calculates the barycenters for all faces of a triangular mesh
barycenter(mesh)
mesh |
triangular mesh of class 'mesh3d' |
k x 3 matrix of barycenters for all k
faces of input mesh.
closemeshKD
data(nose) bary <- barycenter(shortnose.mesh) ## Not run: require(rgl) ##visualize mesh wire3d(shortnose.mesh) # visualize barycenters points3d(bary, col=2) ## now each triangle is equipped with a point in its barycenter ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.