查看单个帖子
旧 2009-04-16, 05:18 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】[求助]請教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的交點嗎?"
就是这意思.
床,钱,明月,光;衣,失地,上,爽!
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)