Patch Normals

Calculates the normal vectors of a triangulated mesh (patch)


Updated 2 Jun 2009

View License

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 (2023). Patch Normals (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: Compute STL Vertex Normals

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes