vcgBary: get barycenters of all faces of a triangular mesh

View source: R/vcgBary.r

vcgBaryR Documentation

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 documentation built on Sept. 30, 2024, 9:39 a.m.