glenoidplanefitting.algorithms.models module

Functions to create vtk models for visualisation of results

glenoidplanefitting.algorithms.models.make_friedman_model(point1, point2)[source]

Makes a vtk line source from two set points

Parameters
  • point1 – one end of the line

  • point2 – other end of the line

Returns

The line

glenoidplanefitting.algorithms.models.make_plane_model(plane_centre, normal_vector, resolution=10, plane_size=200.0)[source]

Makes a vtk plane source, with centre and normal vector

Parameters
  • plane_centre – a point on the plane

  • normal_vector – the plane normal vector

Returns

The plane

glenoidplanefitting.algorithms.models.make_sphere_model(point, radius=5.0)[source]

Make a sphere source which we can use to represent a landmark point

Parameters

point – the point

:returns the vtkPointSource

glenoidplanefitting.algorithms.models.make_vault_model(point1, point2)[source]

Makes a vtk line source from two set points

Parameters
  • point1 – one end of the line

  • point2 – other end of the line

Returns

The line