Spline3D
Canonical path: NemAll_Python_Geometry.Spline3D
Bases: PolyPoints3D
class for 3D spline geometry
Methods:
-
CalculateEndVector
–Calculates end vector
-
CalculatePoint
–Overloaded function. See individual overloads.
-
CalculateStartVector
–Calculates start vector
-
CreateClosedSpline
–Create closed spline from given points
-
GetControlPoints
–Compute bezier control points
-
GetEndVector
–Get end vector.
-
GetStartVector
–Get start vector.
-
IsClosed
–Check if spline is closed ( first/last points are equal )
-
IsCollinear
–Function checks if the 3D spline is collinear - all control points are on same line
-
IsPlanar
–Function checks if the 3D spline is planar, if yes sets the plane
-
Reverse
–Reverse of current spline
-
SetEndVector
–Set end vector.
-
SetStartVector
–Set start vector.
-
__eq__
–Comparison of splines without tolerance.
-
__iadd__
–Addition assignment operator
-
__init__
–Overloaded function. See individual overloads.
-
__repr__
–Convert to string
Attributes:
-
EndVector
(Vector3D
) –Get end vector.
-
IsPeriodic
(bool
) –Check if spline is periodic ( first/last points are equal + start and end tangents are equal)
-
StartVector
(Vector3D
) –Get start vector.
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.