Calculate the area of a 3D triangular irregular network (TIN) mesh using the vertex and face list data. Note that most common file formats used to store TIN data (e.g. .obj / .ply) use zero indexing meaning that the face list will need to be converted to non-zero indexing in matlab:
faces = faces+ones(size(faces,1),3);
faces - mx3 face indexes of the mesh
points - nx3 vertex data of the mesh
areaTIN - mx1 triangular area measurements matched to face list
Thomas (2022). meshArea.m (https://www.mathworks.com/matlabcentral/fileexchange/47957-mesharea-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!