CheckOutwardNormals
Version 1.0.0 (2,52 ko) par
Darrel Robertson
Checks face/vertex list of closed triangulated objects to make sure all normals are outward facing.
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.
Citation pour cette source
Darrel Robertson (2026). CheckOutwardNormals (https://fr.mathworks.com/matlabcentral/fileexchange/169468-checkoutwardnormals), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2024a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxTags
Remerciements
Inspiré par : Triangle/Ray Intersection
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0 |
