SlotUD (class)

File generated according to Generator/ClassesRef/Slot/SlotUD.csv WARNING! All changes made in this file will be lost!

class SlotUD(point_list=[], is_sym=False, Zs=36, init_dict=None)[source]

Bases: pyleecan.Classes.Slot.Slot

“User defined” Slot from a point list.

VERSION = 1
build_geometry()

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

Parameters:self (SlotUD) – A SlotUD object
Returns:curve_list – A list of Segments
Return type:list
save(save_path='')

Save the object to the save_path

Parameters:
  • self – A pyleecan object
  • save_path (str) – path to the folder to save the object
get_logger()

Get the object logger or its parent’s one

Parameters:obj – A pyleecan object
Returns:logger – Pyleecan object dedicated logger
Return type:logging.Logger
as_dict()[source]

Convert this objet in a json seriable dict (can be use in __init__)

point_list

Coordinates of the slot points (will be connected in order with Segments)

is_sym

True to enter only half of the point coordinates