powered by
Computes the surface area a mesh.
meshArea(mesh)
A number, the surface area of the 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)
vertices
faces
mesh3d
library(MeshesTools) R <- 4; r <- 2 mesh <- torusMesh(R, r) meshArea(mesh) # true area of the torus: 4 * pi^2 * R * r
Run the code above in your browser using DataLab