Patch Normals
This function calculates the normal vectors of a triangulated mesh such as used by the Matlab function patch.
It first calculates the normal vectors of all faces, and after that calculates the vertex normals from the face normals weighted by the angles of the faces.
The function is both implemented as a normal Matlab function and as a mex file in c-code (much faster)
Try the example ...
Citar como
Dirk-Jan Kroon (2024). Patch Normals (https://www.mathworks.com/matlabcentral/fileexchange/24330-patch-normals), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Graphics > 2-D and 3-D Plots > Surfaces, Volumes, and Polygons > Polygons >
- MATLAB > Graphics > 2-D and 3-D Plots > Surfaces, Volumes, and Polygons > Volume Visualization > Scalar Volume Data >
Etiquetas
Agradecimientos
Inspiración para: Compute STL Vertex Normals
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |