跳到主要内容

IDP.Math.KBoundedCurve3d interface

所有三维轮廓曲线的基类,例如KLineSegment3d(线段)和KArc3d(圆弧)。

The base class for all 3D bounded curves, such as KLineSegment3d and KArc3d.

Signature:

export interface KBoundedCurve3d extends KCurve3d 

Links: export interface KBoundedCurve3d extends KCurve3d

Extends: KCurve3d

Properties

Property

Modifiers

Type

Description

endPoint

readonly

KPoint3d

获得轮廓线的终点。

Get bounded curve's end point.

length

readonly

number

获得轮廓线的长度。

Get bounded curve's length.

middlePoint

readonly

KPoint3d

获得轮廓线的中点。

Get bounded curve's middle point.

startPoint

readonly

KPoint3d

获得轮廓线的起点。

Get bounded curve's start point.

Methods

Method

Description

getApproximatePointsInfoByNormalTol(normTol, areaTol)

对当前有界曲线进行离散,保证相邻两点之间的法向夹角小于给定值,相邻两点之间的曲线段和弦之间的近似三角形面积小于给定值。

Discretize bounded curve to points with specified normal tolerance and area tolerance.

getApproximatePointsInfoByRatio(ratio, areaTol)

对当前有界曲线进行离散,保证相邻两点之间的弦高和弦长之比小于给定的比例值,相邻两点之间的曲线段和弦之间的近似三角形面积小于给定值。

Discretize bounded curve to points with specified ratio and area tolerance.

splitByPoint(point, distTol)

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

Split the bounded curve into two segments by the given point.

splitByPoints(points, distTol)

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

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