Patch Normals
Version 1.0.0.0 (14.5 KB) by
Dirk-Jan Kroon
Calculates the normal vectors of a triangulated mesh (patch)
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://uk.mathworks.com/matlabcentral/fileexchange/24330-patch-normals), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- 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 >
Find more on Polygons in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: Compute STL Vertex Normals
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
