Volume, Surface Area, and Centroid of Polyhedron

版本 1.0.1 (1.3 KB) 作者: Ayad Al-Rumaithi
Finds volume, surface area, and centroid of a polyhedron
68.0 次下载
更新时间 2024/9/21

查看许可证

This function find the volume, surface area, and centroid of a polyhedron. The polyhedron faces should be divided into triangles. The numbering of all triangles faces should be consistent. Either all of them in clock wise or counter clock wise direction as seen from the outside.
[Vol, A, Cx, Cy, Cz]=Polyhedron_VAC(V,F)
Input:
V: (Nv,3) vertices matrix
F: (Nf,3) faces matrix
Output:
Vol: volume
A: surface area
Cx, Cy, and Cz: x,y, and z coordinates of centroid, respectively.

引用格式

Ayad Al-Rumaithi (2024). Volume, Surface Area, and Centroid of Polyhedron (https://www.mathworks.com/matlabcentral/fileexchange/93875-volume-surface-area-and-centroid-of-polyhedron), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2017b
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.1

Added website

1.0.0