vertex_normal

m3sh.traits.vertex_normal(vertex)[source]

Vertex normal.

Compute vertex normal as average of triangle normals. For non-triangular meshes, incident triangles are defined by the planes spanned by consecutive edges in a counter-clockwise traversal of all incident edges.

Parameters:

vertex (Vertex) – Vertex of a mesh.

Returns:

Unit normal vector.

Return type:

ndarray, shape (3, )

Note

Vertex normals are not well defined for isolated vertices.