m3sh.traits.
axis_angles#
- axis_angles(mesh, normals=None)#
Rotation parameters.
Edge based rotation parameters that align neighboring face planes. Along the boundary this rotation is the identity.
- Parameters:
- meshMesh
Triangle mesh instance with n faces.
- normalsndarray, shape (n, 3)
Unit length face normal vectors. If not specified, face normals are computed via the
face_normals()function.
- Returns:
- anglesdict
Dictionary that maps halfedges to rotation parameters that rotate the normal of
halfedge.faceabout the common edge to the normal ofhalfedge.pair.face.
See also
Notes
Rotation parameters are a unit length axis vector \(\mathbf{a}\) together with the values \(\cos(\varphi)\) and \(\sin(\varphi)\). In the setting of this function
a = unit(halfedge.vector).