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

# -*- coding: utf-8 -*-

from numpy import exp

from ....Classes.Arc2 import Arc2
from ....Classes.Segment import Segment


[docs]def build_geometry(self): """Compute the curve (Segment) needed to plot the object. The ending point of a curve is the starting point of the next curve in the list Parameters ---------- self : SlotW22 A SlotW22 object Returns ------- curve_list: llist A list of 5 Segment and 3 Arc2 """ line_dict = self._comp_line_dict() curve_list = [ line_dict["1-2"], line_dict["2-3"], line_dict["3-4"], line_dict["4-5"], line_dict["5-6"], line_dict["6-7"], line_dict["7-8"], ] return [line for line in curve_list if line is not None]