Function Reference: meshArea

csg-toolkit: area = meshArea (v, f)

Compute the surface area of a triangular mesh based on itsvertices and faces provided as input arguments.

The function will only take two input arguments. The first argument shouldbe an N×3 matrix containing the 3D coordinates of each vertex andthe second argument should be an N×3 matrix with each row containing the three vertices that form each face of the triangular mesh. The face matrix should contain explicitly non-zero integers referring to the existing vertices present in the first input argument.

See also: meshBarycenter, meshSection, readObj

Source Code: meshArea