build_geometry (method)

build_geometry(self, alpha=0, delta=0, is_simplified=False)[source]

Compute the curve (Segment) needed to plot the Slot. The ending point of a curve is the starting point of the next curve in the list

Parameters
  • self (HoleM57) – A HoleM57 object

  • alpha (float) – Angle to rotate the slot (Default value = 0) [rad]

  • delta (complex) – Complex to translate the slot (Default value = 0)

  • is_simplified (bool) – True to avoid line superposition

Returns

surf_list – List of SurfLine needed to draw the HoleM57

Return type

list

set_name_line(hole_lines, name)[source]

Define the label of each line of the hole

Parameters
  • hole_lines (list) – a list of line object of the slot

  • name (str) – the name to give to the line

Returns

hole_lines – List of line object with label

Return type

list