Geometry properties in 3D (area, volume, moment of inertia...)
조회 수: 35 (최근 30일)
이전 댓글 표시
Hello, I'm trying to work with 3D discrete models in matlab (RBSM, LPDM...) and I am struggling to find certain properties necesary for calculation. For example, when I have a plane in 3D defined by points/vertices, is there a way to find its area or moment of inertia? I am well aware of my areas for improvement in planimetry or linear algebra, but if anyone could recommend me if there's a function in MATLAB or point me in the right direction, I'd be grateful.
In the past, I used the functions for polyshape objects, is there something similar for 3D?
댓글 수: 3
답변 (1개)
Matt J
2024년 11월 13일 17:51
편집: Matt J
2024년 11월 13일 17:55
You can project your planar points into a 2D coordinate system and then use whatever 2D methods you had used previously to compute desired quantities. I would suggest planarFit() from this FEX download to help,
Example,
V=eye(3) %Triangle in 3D
v=planarFit(V').project2D(V'); %2D vertices
p=polyshape(v');
area(p),
댓글 수: 2
Matt J
2024년 11월 13일 22:47
You can use triangulation to decompose the polyshape into triangles and then add up the moments of inertia of each triangle.
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!