几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】[求助]請教acdbcurve::getclosestpointto() (http://www.dimcax.com/hust/showthread.php?t=6923)

yang686526 2009-04-16 05:18 PM

【转帖】[求助]請教acdbcurve::getclosestpointto()
 
[求助]請教acdbcurve::getclosestpointto()
[求助]請教acdbcurve::getclosestpointto()
getclosestpointto(
const acgepoint3d& givenpnt,
const acgevector3d& direction,
acgepoint3d& pointoncurve,
adesk::boolean extend = adesk::kfalse) const;
我從點givepnt 沿 direction 找 curve 上的點時,不是 givepnt沿 direction 沿伸的一條直線與 curve的交點嗎?
其實我是在z=0平面內,已知y坐標想求出curve上的點,不過不知道什麼直接的方法,望各位高手指點。現有的條件是已知曲線兩邊兩點,可以通過構造一條直線 intersectwith() 曲線得到交點。原以為可以用getclosestpointto()來求。
getclosestpointto是已知曲线和一点.求最近点.
你说的"現有的條件是已知曲線兩邊兩點"不知道是什么意思?该曲线是一条直线?
"我從點givepnt 沿 direction 找 curve 上的點時,不是 givepnt沿 direction 沿伸的一條直線與 curve的交點嗎?"
就是这意思.
床,钱,明月,光;衣,失地,上,爽!


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