OrientedEdge
Canonical path: NemAll_Python_Geometry.OrientedEdge
Oriented edge Identification of any edge via edge handle and orientation (positive, negative).
Methods:
-
GetEdgeHandle
–Get handle to the edge
-
HasPositiveOrientation
–Get the flag of positive orientation.
-
Set
–Overloaded function. See individual overloads.
-
SetEdgeHandle
–Set handle to the edge
-
SetOrientation
–Set orientation
-
__eq__
–Equal operator
-
__init__
–Overloaded function. See individual overloads.
-
__repr__
–Convert the list to a string
Attributes:
-
EdgeHandle
(None
) –Get and set the edge handle property
-
Positive
(None
) –Get and set the positive orientation property
HasPositiveOrientation
Get the flag of positive orientation.
Returns:
-
bool
–True when edge have positive orientation, otherwise false.
Set
overloaded
Set(orientedEdge: OrientedEdge)
Initialize edge from old Allplan structure
Parameters:
-
orientedEdge
(OrientedEdge
) –Edge which will be copied.
Set edge handle and orientation
Handle is not checked, you set anything.
Parameters:
-
edgeHandle
(int
) –Handle to the edge which will be set.
-
positiveOrientation
(bool
) –Set true when orientation is positive, otherwise false.
SetEdgeHandle
Set handle to the edge
edgeHandle is not checked, you set anything.
Parameters:
-
edgeHandle
(int
) –Handle to the edge which will be set.
SetOrientation
Set orientation
Parameters:
-
positiveOrientation
(bool
) –Set true when orientation is positive, otherwise false.
__eq__
__eq__(orientedEdge: OrientedEdge) -> object
Equal operator
Parameters:
-
orientedEdge
(OrientedEdge
) –Edge to comparison
Returns:
-
object
–True when both edges are equal.
__init__
overloaded
Initialize
Constructor
Parameters:
-
edgeHandle
(int
) –Set edge handle.
-
positiveOrientation
(bool
) –Set orientation, true for positive, false for negative
__init__(orientedEdge: OrientedEdge)