- UID
- 14
- 积分
- 8264
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-1-4
- 最后登录
- 1970-1-1
|
发表于 2004-7-22 18:47:47
|
显示全部楼层
Returns the closest point (in WCS) on a curve after projecting the curve onto a plane
(vlax-curve-getClosestPointToProjection curve-obj givenPnt normal [extend])
Arguments
curve-obj
The VLA-object to be measured.
givenPnt
A point (in WCS) for which to find the nearest point on the curve.
normal
A normal vector (in WCS) for the plane to project onto.
extend
If specified and not nil, vlaxcurvegetClosestPointToProjection extends the curve when searching for the nearest point.
vlaxcurvegetClosestPointToProjection projects the curve onto the plane defined by the givenPnt and normal, and then calculates the nearest point on that projected curve to givenPnt. The resulting point is then projected back onto the original curve, and vlaxcurvegetClosestPointToProjection returns that projected point.
Return Values
A 3D point list representing a point on the curve, if successful; otherwise nil.
Comments? |
|