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, label: str = '')[source]
Bases:
object
a 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.
parents
list[objects]A list of parent elements (default is None).
classes
list[str]A list of class labels (default is None).
label
strA string label for the element
if label is none, a label is generated
is used as a reference in reports and plots
attributes
label
str
name used in presentation and reports
classes
dictdict with strings for class name
parents
dictdict with keys as parent sympy objects
- class geometor.model.element.CircleElement(sympy_obj: Circle, pt_radius: Point, parents: list | None = None, classes: list[str] | None = None, label: str = '')[source]
Bases:
Element
same as
Element
but adds apt_radius
parameters
sympy_obj
:The sympy object representing the geometric entity.
pt_radius
spg.PointA list of parent elements (default is None).
parents
list[objects]A list of parent elements (default is None).
classes
list[str]A list of class labels (default is None).
label
strA string label for the element
if label is none, a label is generated
is used as a reference in reports and plots
attributes
label
str
name used in presentation and reports
classes
dictdict with strings for class name
parents
dictdict 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.