CheckOutwardNormals

版本 1.0.0 (2.5 KB) 作者: Darrel Robertson
Checks face/vertex list of closed triangulated objects to make sure all normals are outward facing.
0.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