vcgBary | R Documentation |
get barycenters of all faces of a triangular mesh
vcgBary(mesh)
mesh |
triangular mesh of class "mesh3d" |
n x 3 matrix containing 3D-coordinates of the barycenters (where n is the number of faces in mesh
.
data(humface)
bary <- vcgBary(humface)
## Not run:
require(rgl)
points3d(bary,col=2)
wire3d(humface)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.