AxisPlacement2D
Canonical path: NemAll_Python_Geometry.AxisPlacement2D
Representation class for orthogonal axis placement
Placement is given by reference point and direction vector of local x-axis
Methods:
-
GetDirection–Get direction
-
GetRefPoint–Get the reference point
-
GetYDirection–Get direction of local y-axis
-
IsValid–Check if the placement is valid
-
SetDirection–Set direction
-
SetRefPoint–Set reference point
-
__eq__–Comparison of axis placements.
-
__init__–Overloaded function. See individual overloads.
-
__repr__–Convert to string
Attributes:
GetYDirection
GetYDirection() -> Vector2D
IsValid
Check if the placement is valid
Returns:
-
bool–True if it is a valid placement
SetDirection
SetDirection(dir: Vector2D)
SetRefPoint
SetRefPoint(refPoint: Point2D)
__eq__
__eq__(axis_placement: AxisPlacement2D) -> bool
Comparison of axis placements.
Be careful, this method work without tolerance!
Parameters:
-
axis_placement(AxisPlacement2D) –axis placement to be compared.
Returns:
-
bool–True when axis placements are equal, otherwise false.
__init__
overloaded
Initialize
__init__(placement: AxisPlacement2D)
Copy constructor.
Parameters:
-
placement(AxisPlacement2D) –Extruded area placement which will be copied