Source code for pyleecan.Methods.Slot.SlotM13.build_geometry

# -*- coding: utf-8 -*-
from ....Classes.Segment import Segment


[docs]def build_geometry(self): """Compute the curve (Line) needed to plot the Slot. The ending point of a curve is the starting point of the next curve in the list Parameters ---------- self : SlotM13 A SlotM13 object Returns ------- curve_list: list A list of 3 Segments """ point_dict = self._comp_point_coordinate() Z1 = point_dict["Z1"] Z2 = point_dict["Z2"] Z3 = point_dict["Z3"] Z4 = point_dict["Z4"] # Creation of curve curve_list = list() if self.H0 > 0: curve_list.append(Segment(Z1, Z2)) curve_list.append(Segment(Z2, Z3)) if self.H0 > 0: curve_list.append(Segment(Z3, Z4)) return curve_list