在将曲线投影到平面上之后,返回曲线上的最近点(在 WCS 上)
(vlax-curve-getClosestPointToProjection curve-obj givenPnt normal[extend])
参数
curve-obj
要测量的 VLA 对象。
givenPnt
WCS 中的点,在曲线上寻找该点的最近点。
normal
WCS 中的法线矢量,指定投影平面。
extend
如果指定该参数且其值不为 nil,vlax-curve-getClosestPointToProjection 在搜索最近点时扩展曲线。
vlax-curve-getClosestPointToProjection 将曲线投影到由 givenPnt 和 normal 定义的平面上,然后在该平面上计算距 givenPnt 最近的点。然后,vlax-curve-getClosestPointToProjection 将结果点重新投影到原来的曲线上,并返回投影后的点。
返回值
如果成功,则返回表示曲线上一点的三维点表,否则返回 nil。
明经通道 版权所有 未经许可 不得传播 | 评论 |