Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

barycenter

calculates the barycenters for all faces of a triangular mesh


Description

calculates the barycenters for all faces of a triangular mesh

Usage

barycenter(mesh)

Arguments

mesh

triangular mesh of class 'mesh3d'

Value

k x 3 matrix of barycenters for all k faces of input mesh.

See Also

Examples

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)

Morpho

Calculations and Visualisations Related to Geometric Morphometrics

v2.8
GPL-2
Authors
Stefan Schlager [aut, cre, cph], Gregory Jefferis [ctb], Dryden Ian [cph]
Initial release
2020-02-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.