IDP.Math.KBoundedCurve3d.getApproximatePointsInfoByNormalTol() method
对当前有界曲线进行离散,保证相邻两点之间的法向夹角小于给定值,相邻两点之间的曲线段和弦之间的近似三角形面积小于给定值。
Discretize bounded curve to points with specified normal tolerance and area tolerance.
Signature:
getApproximatePointsInfoByNormalTol(normTol?: number, areaTol?: number): {
points: KPoint3d[];
params: number[];
};
Links: getApproximatePointsInfoByNormalTol(normTol?: number, areaTol?: number): { points: KPoint3d[]; params: number[]; };
Parameters
Parameter | Type | Description |
---|---|---|
normTol | number | (Optional) 相邻两点之间法向夹角误差(angle < acos(1-normTol))。 如果没有输入法向误差值或者输入值过小(<1.0e-6)或者过大(>1.0 - 1.0e-6),则默认会采用0.01。 The normal tolerance between two adjacent points (angle < acos(1-normTol)). If normTol is not provided or the value is too small(<1.0e-6) or too big(>1.0 - 1.0e-6), then it will use default value 0.01. |
areaTol | number | (Optional) 相邻两点之间的曲线段和弦之间的近似三角形面积。 如果没有输入面积值或者面积值过小(<1.0e-6), 则不使用面积误差作为判断条件。 The approximate area between the bounded curve and the chord of two adjacent points. If the area is not provided or the vlaue is too small(<1.0e-6), then the check condition will not use the area. |
Returns:
{ points: KPoint3d[]; params: number[]; }
离散点列和它们的参数值。
The approximate points info which contains the point locations and parameters.