IDP.Math.KBoundedCurve2d interface
所有二维轮廓曲线的基类,例如KLineSegment2d(线段)和KArc2d(圆弧)。
The base class for all 2D bounded curves, such as KLineSegment2d and KArc2d.
Signature:
export interface KBoundedCurve2d extends KCurve2d
Links: export interface KBoundedCurve2d extends KCurve2d
Extends: KCurve2d
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
| 获得轮廓线的终点。 Get bounded curve's end point. | ||
| number | 获得轮廓线的长度。 Get bounded curve's length. | |
| 获得轮廓线的中点 。 Get bounded curve's middle point. | ||
| 获得轮廓线的起点。 Get bounded curve's start point. |
Methods
Method | Description |
---|---|
对当前有界曲线进行离散,保证相邻两点之间的法向夹角小于给定值,相邻两点之间的曲线段和弦之间的近似三角形面积小于给定值。 Discretize bounded curve to points with specified normal tolerance and area tolerance. | |
对当前有界曲线进行离散,保证相邻两点之间的弦高和弦长之比小于给定的比例值,相邻两点之间的曲线段和弦之间的近似三角形面积小于给定值。 Discretize bounded curve to points with specified ratio and area tolerance. | |
获得当前有界曲线的轴对齐的包围盒。 Get the Axis-aligned bounding box of the bounded curve | |
把当前有界曲线按给定点分成两段。 Split the bounded curve into two segments by the given point. | |
把当前有界曲线按给定点分成多段。 Split the bounded curve into multiple segments by the given points. |