[mxcad_3d API Document](../README. md)/Mx3dInterpolateBSplineCurve
Class: Mx3dInterpolateBSplineCurve
Representing the interpolation B-spline curve algorithm.
Hierarchy
↳
Mx3dInterpolateBSplineCurve
Table of contents
Constructors
Methods
Constructors
constructor
• new Mx3dInterpolateBSplineCurve(Points, PeriodicFlag, Tolerance)
Constructor, creating an object for generating B-spline curves.
Parameters
| Name | Type | Description |
|---|---|---|
| Points | [Mx3dGePoint] (Mx3dGePoint. md) [] | Interpolation point group |
| PeriodicFlag | boolean | Periodic flag |
| Tolerance | number | precision |
Overrides
Mx3dBaseObject.constructor
• new Mx3dInterpolateBSplineCurve(Points, Parameters, PeriodicFlag, Tolerance)
Constructor, creating an object for generating B-spline curves.
Parameters
| Name | Type | Description |
|---|---|---|
| Points | [Mx3dGePoint] (Mx3dGePoint. md) [] | Interpolation point group |
| Parameters | number [] | Parameter value array |
| PeriodicFlag | boolean | Periodic flag |
| Tolerance | number | precision |
Overrides
Mx3dBaseObject.constructor
Methods
Curve
▸ Curve(): Mx3dGeomBSplineCurve
Obtain the B-spline curve generated by the interpolation algorithm.
Returns
B-spline curve.
IsDone
▸ IsDone(): boolean
Determine whether the algorithm has been successfully executed.
Returns
boolean
Whether the algorithm has executed successfully flag, true successful, False failed.
Load
▸ Load(Tangents, TangentFlags): void
Set all interpolation points to be tangential.
Parameters
| Name | Type | Description |
|---|---|---|
| Tangents | [Mx3dGeVec] (Mx3dGeVec. md) [] | Tangent array |
| TangentFlags | boolean [] | Apply tangent array |
Returns
void
LoadEnds
▸ LoadEnds(InitialTangent, FinalTangent): void
Set the starting and ending points to be tangential.
Parameters
| Name | Type | Description |
|---|---|---|
| InitialTangent | UniVec | Starting point tangential |
| FinalTangent | UniVec | Tangential endpoint |
Returns
void
Perform
▸ Perform(): void
Execute algorithm.
Returns
void