跳到主要内容

IDP.Math.KGeomLib.createNurbsCurve2d() method

通过给定阶数、节点向量、控制点以及权重构建一条非均匀有理样条曲线。

Create a nurbs curve by degree, knots, control points and weights.

Signature:

createNurbsCurve2d(degree: number, knots: number[], controlPoints: KPoint2d[], weights: number[]): KNurbsCurve2d;

Links: createNurbsCurve2d(degree: number, knots: number[], controlPoints: KPoint2d[], weights: number[]): KNurbsCurve2d;

Parameters

Parameter

Type

Description

degree

number

阶数。

The degree of the 2d nurbs curve.

knots

number[]

节点向量。

The knots of the 2d nurbs curve.

controlPoints

KPoint2d[]

控制顶点。

The control points of the 2d nurbs curve.

weights

number[]

权重。

the weights of the 2d nurbs curve.

Returns:

KNurbsCurve2d

二维非均匀有理样条曲线。

The 2D nurbs curve.