meshCentroid: Mesh centroid

View source: R/measures.R

meshCentroidR Documentation

Mesh centroid

Description

Computes the centroid of a closed mesh.

Usage

meshCentroid(mesh)

Arguments

mesh

a mesh given either as a list containing (at least) the two fields vertices (numeric matrix with three columns) and faces (integer matrix or list of integer vectors), otherwise as a rgl mesh (i.e. a mesh3d object)

Value

The centroid of the mesh given as a numeric vector.

Examples

library(MeshesTools)
mesh <- cyclideMesh(a = 97, c = 32, mu = 57)
meshCentroid(mesh)

MeshesTools documentation built on Oct. 29, 2022, 9:05 a.m.