Spline2D
Canonical path: NemAll_Python_Geometry.Spline2D
Bases: PolyPoints2D
Representation class for 2D spline.
GetControlPoints
GetControlPoints() -> tuple[eGeometryErrorCode, Point2DList]
Compute bezier control points
Returns:
-
tuple[eGeometryErrorCode, Point2DList]
–tuple(error code, vector of control points)
IsClosed
Check if spline is closed ( first/last points are equal )
Returns:
-
bool
–closed spline true/false
Reverse
Reverse of current spline
Method reverse Spline using reverse from PolyPoints and swapping tangents.
SetEndVector
SetEndVector(vec: Vector2D)
SetStartVector
SetStartVector(vec: Vector2D)
__eq__
__eq__(spline: Spline2D) -> bool
Comparison of splines.
Be careful, this method work without tolerance!
Parameters:
-
spline
(Spline2D
) –spline to be compared.
Returns:
-
bool
–True when splines are equal, otherwise false.
__init__
overloaded
__mul__
Placeholder