BSpline3DService
Canonical path: NemAll_Python_Geometry.BSpline3DService
3D BSpline service
Methods:
-
AddControlPoint
–add control point to B-Spline
-
AddControlPointOnSegment
–add control point to B-Spline's segment given by point
-
GetControlPointIndex
–calculate control point index from parameter on B-Spline
-
InsertKnot
–Insert knot into bspline knot vector (compute new control points, preserve geometry)
-
IsValid
–Check validity of service data
-
MoveStartPeriodic
–Move start point in periodic BSpline
-
PointModification
–move interpolated or control point of B-Spline
-
RefineKnots
–Refine knots (insert knots if necessary)
-
RemoveControlPoint
–remove control point from B-Spline
-
SetControlPoint
–set coordinates of control point of B-Spline
-
SetDegree
–set degree of B-Spline
-
SetInterpolatedPoint
–set coordinates of interpolated point of B-Spline
-
SetPeriodic
–set/unset periodic property of B-Spline
-
__init__
–Constructor
AddControlPoint
AddControlPoint(pointIdx: int, coords: Point3D)
add control point to B-Spline
Parameters:
-
pointIdx
(int
) –index, where new point will be stored
-
coords
(Point3D
) –coordinates of point
AddControlPointOnSegment
GetControlPointIndex
calculate control point index from parameter on B-Spline
Parameters:
-
param
(float
) –parameter on BSpline
InsertKnot
Insert knot into bspline knot vector (compute new control points, preserve geometry)
Parameters:
-
param
(float
) –param to insert
-
numInsertionsMultiplicity
(int
) –multiplicity of new knot
MoveStartPeriodic
Move start point in periodic BSpline
Parameters:
-
startParam
(float
) –start value for knot interval
PointModification
PointModification(
pointsIdx: VecSizeTList,
moveVector: Vector3D,
isInterpolated: bool,
hSet: HealingSettings,
)
move interpolated or control point of B-Spline
Parameters:
-
pointsIdx
(VecSizeTList
) –point indexes
-
moveVector
(Vector3D
) –move vector
-
isInterpolated
(bool
) –true if wanted to handle interpolated points
-
hSet
(HealingSettings
) –healing settings
RefineKnots
RefineKnots(knotvalues: VecDoubleList, knotMultiplicities: VecSizeTList)
Refine knots (insert knots if necessary)
Parameters:
-
knotvalues
(VecDoubleList
) –knot values to refine
-
knotMultiplicities
(VecSizeTList
) –knot multiplicities
RemoveControlPoint
remove control point from B-Spline
Parameters:
-
pointIdx
(int
) –point index to remove
SetControlPoint
SetControlPoint(pointIdx: int, newCoords: Point3D)
set coordinates of control point of B-Spline
Parameters:
-
pointIdx
(int
) –point index
-
newCoords
(Point3D
) –new coordinates of point
SetDegree
set degree of B-Spline
Parameters:
-
degree
(int
) –new degree for B-Spline
SetInterpolatedPoint
SetInterpolatedPoint(pointIdx: int, newCoords: Point3D)
set coordinates of interpolated point of B-Spline
Parameters:
-
pointIdx
(int
) –point index
-
newCoords
(Point3D
) –new coordinates of point
SetPeriodic
set/unset periodic property of B-Spline
Parameters:
-
periodic
(bool
) –it true, B-Spline will be periodic, otherwise B-Spline will be open