vcgBary: get barycenters of all faces of a triangular mesh

Description Usage Arguments Value Examples

View source: R/vcgBary.r

Description

get barycenters of all faces of a triangular mesh

Usage

1
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

1
2
3
4
5
6
7
8
data(humface)
bary <- vcgBary(humface)
## Not run: 
require(rgl)
points3d(bary,col=2)
wire3d(humface)

## End(Not run)

zarquon42b/Rvcg documentation built on Jan. 17, 2019, 9:10 a.m.