IDP.Math.KArc3d.getApproximatePointsByRatio() method
对当前圆弧进行离散,保证相邻两点之间的弦高和弦长之比小于给定的比例值。
Discretize the Arc to points with specified ratio between sagitta and chord length.
Signature:
getApproximatePointsByRatio(ratio?: number): KPoint3d[];
Links: getApproximatePointsByRatio(ratio?: number): KPoint3d[];
Parameters
Parameter | Type | Description |
---|---|---|
ratio | number | (Optional) 相邻两点之间圆弧段的弦高和弦长之比。 如果没有输入弦高和弦长比例值或者输入值不在(0,1)之间,则默认会采用PI/60为刻度去离散圆弧。 ratio = sagitta / chord length. If ratio is not provided or the value is not between (0,1), then it will use step = PI/60 radians to discretize the arc. |
Returns:
KPoint3d[]
离散点列。
The discretized points.