查看单个帖子
旧 2009-04-16, 12:16 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】[arx]怎么求一点到多段线的垂线的垂足的啊?

[arx]怎么求一点到多段线的垂线的垂足的啊?
[arx]怎么求一点到多段线的垂线的垂足的啊?
怎么求一点到多段线的垂线的垂足的啊?
你可以用数学的方法求啊
virtual acad::errorstatus
getclosestpointto(
const acgepoint3d& givenpnt,
const acgevector3d& direction,
acgepoint3d& pointoncurve,
adesk::boolean extend = adesk::kfalse) const;
givenpntinput point (in wcs coordinates) for which to find nearest point on curve
directioninput normal vector (in wcs coordinates) for plane to project onto
pointoncurvereturns the point (in wcs coordinates) on the curve that is nearest to givenpnt
extendinput boolean indicating whether or not to extend curve in search for nearest point
this function projects the curve onto the plane defined by givenpnt and normal, finds the point on the projected curve that is nearest to givenpnt, then projects this nearest point back onto the original curve and sets pointoncurve to the result.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)