跳到主要内容

KPolylineCurve3d interface

KPolylineCurve3d 类代表着二维空间中的一个折线段。

The KPolylineCurve3d class represents a polyline in 2d space.

Signature:

export interface KPolylineCurve3d extends KBoundedCurve3d 

Links: export interface KPolylineCurve3d extends KBoundedCurve3d

Extends: KBoundedCurve3d

Properties

Property

Modifiers

Type

Description

params

readonly

number[]

获取当前折线段每个顶点的弧长参数。

Get arc length parameters of all the vertices of the polyline.

points

readonly

KPoint3d[]

获取当前折线段的所有顶点。

Get all the vertices of the polyline.

Methods

Method

Description

getTangent(point)

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

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