跳到主要内容

IDP.Math.KBoundedCurve2d.splitByPoints() method

把当前有界曲线按给定点分成多段。

Split the bounded curve into multiple segments by the given points.

Signature:

splitByPoints(points: KPoint2d[], distTol?: number): KBoundedCurve2d[];

Links: splitByPoints(points: KPoint2d[], distTol?: number): KBoundedCurve2d[];

Parameters

Parameter

Type

Description

points

KPoint2d[]

分割点列。

split points.

distTol

number

(Optional) 距离容差。如果不给定,则使用全局容差。

Distance tolerance. If not provided, then global tolerance will be used.

Returns:

KBoundedCurve2d[]

多段有界曲线。 如果点列只包含起点和终点,则返回空数组。

Multiple segments of bounded curves. If points only contain start and end points, empty array will be returned.