Spline3D
Canonical path: NemAll_Python_Geometry.Spline3D
Bases: PolyPoints3D
class for 3D spline geometry
IsPeriodic
property
writable
Check if spline is periodic ( first/last points are equal + start and end tangents are equal)
CalculateEndVector
CalculateEndVector() -> Vector3D
CalculatePoint
overloaded
CalculatePoint(param: float) -> Point3D
Calculates point on spline
Parameters:
-
param
(float
) –parameter of spline.
Returns:
-
Point3D
–Resulting point
CalculatePoint(param: float, cpoints: Point3DList) -> Point3D
Calculates point on spline
Parameters:
-
param
(float
) –parameter of spline.
-
cpoints
(Point3DList
) –control points of spline.
Returns:
-
Point3D
–Resulting point
CalculateStartVector
CalculateStartVector() -> Vector3D
CreateClosedSpline
staticmethod
CreateClosedSpline(points: Point3DList) -> Spline3D
Create closed spline from given points
Parameters:
-
points
(Point3DList
) –Points
Returns:
-
Spline3D
–Spline
GetControlPoints
IsClosed
Check if spline is closed ( first/last points are equal )
Returns:
-
bool
–closed spline true/false
IsCollinear
Function checks if the 3D spline is collinear - all control points are on same line
Returns:
-
bool
–true if collinear
IsPlanar
Reverse
Reverse of current spline
Method reverse Spline using reverse from PolyPoints and swapping tangents.
SetEndVector
SetEndVector(vec: Vector3D)
SetStartVector
SetStartVector(vec: Vector3D)
__eq__
__eq__(spline: Spline3D) -> object
Comparison of splines without tolerance.
Be careful, this method work without tolerance!
Parameters:
-
spline
(Spline3D
) –Compared spline.
Returns:
-
object
–True when splines are equal, otherwise false.