You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 ...
Cite As
Dirk-Jan Kroon (2026). Patch Normals (https://www.mathworks.com/matlabcentral/fileexchange/24330-patch-normals), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Compute STL Vertex Normals
General Information
- Version 1.0.0.0 (14.5 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
