几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(C++) (http://www.dimcax.com/hust/forumdisplay.php?f=34)
-   -   【转帖】[arx]怎么求一点到多段线的垂线的垂足的啊? (http://www.dimcax.com/hust/showthread.php?t=6474)

yang686526 2009-04-16 12:16 PM

【转帖】[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.


所有的时间均为北京时间。 现在的时间是 10:45 AM.