Skip to content

[mxcad_3d API Document](../README. md)/Mx3dInterpolateBSplineCurve

Class: Mx3dInterpolateBSplineCurve

Representing the interpolation B-spline curve algorithm.

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

new Mx3dInterpolateBSplineCurve(Points, PeriodicFlag, Tolerance)

Constructor, creating an object for generating B-spline curves.

Parameters

NameTypeDescription
Points[Mx3dGePoint] (Mx3dGePoint. md) []Interpolation point group
PeriodicFlagbooleanPeriodic flag
Tolerancenumberprecision

Overrides

Mx3dBaseObject.constructor

new Mx3dInterpolateBSplineCurve(Points, Parameters, PeriodicFlag, Tolerance)

Constructor, creating an object for generating B-spline curves.

Parameters

NameTypeDescription
Points[Mx3dGePoint] (Mx3dGePoint. md) []Interpolation point group
Parametersnumber []Parameter value array
PeriodicFlagbooleanPeriodic flag
Tolerancenumberprecision

Overrides

Mx3dBaseObject.constructor

Methods

Curve

Curve(): Mx3dGeomBSplineCurve

Obtain the B-spline curve generated by the interpolation algorithm.

Returns

Mx3dGeomBSplineCurve

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

NameTypeDescription
Tangents[Mx3dGeVec] (Mx3dGeVec. md) []Tangent array
TangentFlagsboolean []Apply tangent array

Returns

void


LoadEnds

LoadEnds(InitialTangent, FinalTangent): void

Set the starting and ending points to be tangential.

Parameters

NameTypeDescription
InitialTangentUniVecStarting point tangential
FinalTangentUniVecTangential endpoint

Returns

void


Perform

Perform(): void

Execute algorithm.

Returns

void