m3sh.traits.
vertex_normal#
- vertex_normal(vertex, weight=None)#
Vertex normal.
Changed in version 1.1.0: Add weight argument.
Compute vertex normal as average of triangle normals. Assumes that vertex coordinates live in Euclidean 3-space.
- Parameters:
- Returns:
- normalndarray, shape (3,)
Unit length normal vector. Deleted and isolated vertices are assigned a vector of
nanvalues.
See also
Notes
For non-triangular meshes, incident triangles are defined by the planes spanned by neighboring edges in a counter-clockwise traversal of incident edges.
References