跳到主要内容

KNurbsCurve2d interface

KNurbsCurve2d 类代表着二维空间中的一条非均匀有理样条曲线

The KNurbsCurve2d class represents a nurbs curve in 2d space

Signature:

export interface KNurbsCurve2d extends KBoundedCurve2d 

Links: export interface KNurbsCurve2d extends KBoundedCurve2d

Extends: KBoundedCurve2d

Properties

Property

Modifiers

Type

Description

controlPoints

readonly

KPoint2d[]

获取当前样条曲线的控制点集

Get the control points of the nurbs curve

degree

readonly

number

获取当前样条曲线的阶数。

Get the degree of the nurbs curve.

knots

readonly

number[]

获取当前样条曲线的节点向量。

Get the knots of the nurbs curve.

weights

readonly

number[]

获取当前样条曲线的权重

Get the weights of the nurbs curve

Methods

Method

Description

getTangent(point)

获得样条曲线上一点处的切向量。 注意:该函数调用需要确保传入点在样条曲线上。

Get tangent vector of a point on the nurbs curve. NOTE: the caller needs to make sure the point is on the nurbs curve.