m3sh.traits.
face_normals#
- face_normals(mesh)#
Face normals.
Compute face normals as cross products of edge vectors. This function assumes that vertex coordinates live in Euclidean 3-space.
- Parameters:
- meshMesh
Mesh with polygonal faces.
- Returns:
- normalsndarray, shape (m, 3)
Unit length face normal vectors for a mesh with m faces.
See also
Notes
This function returns a vector for all faces of a mesh, even for those marked as deleted. In the latter case a row of all
nanvalues is assigned.