Function Reference: longbone_AnatomicalPosition

csg-toolkit: v_rot = longbone_AnatomicalPosition (v, f)
csg-toolkit: [v_rot, vn_rot] = longbone_AnatomicalPosition (v, f, vn)

Rotate into anatomical posistion.

This function automatically identifies the longbone defined by its vertices, v, and faces, f, rotates it into anatomical position and it translates its barycenter into the origin of the Cartesian coordinate axes, i.e. [0, 0, 0]. The transformed (rotated/translated) vertices are returned in v_rot.

The function can also take a third input argument, vn, defining the normals of the 3D mesh, which is rotated accordingly and returned as the second output argument vn_rot.

See also: longbone_Geometry, meshRotation, readObj

Source Code: longbone_AnatomicalPosition