Spline2D
Canonical path: NemAll_Python_Geometry.Spline2D
Bases: PolyPoints2D
Representation class for 2D spline.
Methods:
-
GetEndVector–Get end vector.
-
GetStartVector–Get start vector.
-
IsClosed–Check if spline is closed ( first/last points are equal )
-
Reverse–Reverse of current spline
-
SetEndVector–Set end vector.
-
SetStartVector–Set start vector.
-
__eq__–Comparison of splines without tolerance.
-
__init__–Default constructor
-
__mul__–Multiple Spline with matrix.
-
__repr__–Convert to string
Attributes:
-
EndVector(Vector2D) –Get end vector.
-
StartVector(Vector2D) –Get start vector.
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) -> object
Comparison of splines without tolerance.
Be careful, this method work without tolerance!
Parameters:
-
spline(Spline2D) –Compared spline.
Returns:
-
object–True when splines are equal, otherwise false.