CheckOutwardNormals

버전 1.0.0 (2.52 KB) 작성자: Darrel Robertson
Checks face/vertex list of closed triangulated objects to make sure all normals are outward facing.
다운로드 수: 0
업데이트 날짜: 2024/7/11

라이선스 보기

Checks normals are outward facing and re-orders face if not.
Works with concave objects and with cavities. e.g. swiss cheese
Only works with triangular faces
Requirements: Function TriangleRayIntersection by Jarek Tuszynski
Input: faces, F (Nx3)
vertices, V (Nx3)
Output: corrected face list so all normals are outwards facing
list of any faces reordered
Assumptions: Normals are from clockwise orientation of faces. I.e. Right hand rule
Shape is closed and watertight.
No duplicate faces
Potential improvements: TriangleRayIntersection accepts multi-face, multi-ray input so should be able to speed up by removing the loop over the faces.

인용 양식

Darrel Robertson (2024). CheckOutwardNormals (https://www.mathworks.com/matlabcentral/fileexchange/169468-checkoutwardnormals), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2024a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
태그 태그 추가
도움

받음: Triangle/Ray Intersection

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0