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

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

from ....Classes.Arc1 import Arc1
from ....Classes.Segment import Segment


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