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

vcgBary

get barycenters of all faces of a triangular mesh


Description

get barycenters of all faces of a triangular mesh

Usage

vcgBary(mesh)

Arguments

mesh

triangular mesh of class "mesh3d"

Value

n x 3 matrix containing 3D-coordinates of the barycenters (where n is the number of faces in mesh.

Examples

data(humface)
bary <- vcgBary(humface)
## Not run: 
require(rgl)
points3d(bary,col=2)
wire3d(humface)

## End(Not run)

Rvcg

Manipulations of Triangular Meshes Based on the 'VCGLIB' API

v0.19.2
GPL (>= 2) | file LICENSE
Authors
Stefan Schlager [aut, cre, cph], Girinon Francois [ctb]
Initial release
2021-01-11

We don't support your browser anymore

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