glenoidplanefitting.algorithms.plane_fitting module

This is an implementation of a two plane method, see

A. Ganapathi, J. McCarron, Chen, J. Iannotti. Predicting normal glenoid version from the pathologic scapula: a comparison of 4 methods in 2- and 3-dimensional models J Shoulder Elbow Surg (2011) 20, 234-244

glenoidplanefitting.algorithms.plane_fitting.fit_plane_to_points_glenoid(points2, return_meta2=False)[source]

Fit a plane to a set of manually selected points on the glenoid face

Parameters
  • points1 – np.ndarray, size n by 3 array of the following points, one superior on the glenoid face, two inferior on the glenoid face left and right side

  • return_meta – If true, also returns the center and normal used to generate the plane

Returns

the fitted plane of the glenoid face

glenoidplanefitting.algorithms.plane_fitting.fit_plane_to_points_scapula(points1, return_meta1=False)[source]

Fit a plane to a set of manually selected points on the scapula

Parameters
  • points1 – np.ndarray, size n by 3 array of the following points, inferior tip of scapula, medial border of scapula, and center of glenoid fossa.

  • return_meta – If true, also returns the center and normal used to generate the plane

Returns

the fitted plane through the scapula

glenoidplanefitting.algorithms.plane_fitting.fit_plane_transverse(points1, points3, return_meta3=False)[source]

Fit a transverse plane perpendicular to the scapular plane and passing through the scapular axis.

Parameters
  • points1 – np.ndarray, size n by 3 array of the following points, inferior tip of scapula medial border of scapula, and center of glenoid fossa.

  • points3 – np.ndarray, size n by 3 of the following points, center of glenoid fossa, and medial border

  • return_meta – If true, also returns the center and normal used to generate the plane

Returns

the fitted transverse plane

glenoidplanefitting.algorithms.plane_fitting.planes_version(normal_plane1, normal_plane2)[source]

Determines the glenoid version using the two planes method.

Parameters
  • normal_plane1 – The normal vector of the scapula plane.

  • normal_plane2 – The normal vector of the glenoid plane.

Returns

The glenoid version (positive value indicates retroversion)