geometor.model.element
Element type ElementDetails class intersection functions
- class geometor.model.element.Element(sympy_obj, parents: list | None = None, classes: list[str] | None = None, ID: str = '', guide: bool = False)[source]
Bases:
objecta container for special attributes of an element of a model that are not supported by the SymPy elements
parameters
sympy_obj:The sympy object representing the geometric entity.
parentslist[objects]A list of parent elements (default is None).
classeslist[str]A list of class labels (default is None).
IDstrA string ID for the element
if ID is none, a ID is generated
is used as a reference in reports and plots
attributes
IDstrname used in presentation and reports
classesdictdict with strings for class name
parentsdictdict with keys as parent sympy objects
- property length
Returns the cleaned length of the element. For polygons, it returns the list of cleaned side lengths.
- class geometor.model.element.CircleElement(sympy_obj: Circle, pt_radius: Point, parents: list | None = None, classes: list[str] | None = None, ID: str = '', guide: bool = False)[source]
Bases:
Elementsame as
Elementbut adds apt_radiusparameters
sympy_obj:The sympy object representing the geometric entity.
pt_radiusspg.PointA list of parent elements (default is None).
parentslist[objects]A list of parent elements (default is None).
classeslist[str]A list of class labels (default is None).
IDstrA string ID for the element
if ID is none, a ID is generated
is used as a reference in reports and plots
attributes
IDstrname used in presentation and reports
classesdictdict with strings for class name
parentsdictdict with keys as parent sympy objects
- geometor.model.element.check_existence(self, struct: Line | Circle, existing_structs: list[Line | Circle]) tuple[bool, Line | Circle][source]
Check if a geometric structure exists in the model.