查看单个帖子
旧 2009-05-06, 08:41 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】odgevector3dangleonplane90 returns incorrect value

odgevector3d::angleonplane() returns incorrect value
odgevector3d::angleonplane() returns incorrect value
hi,
odgevector3d::angleonplane(odgeplanarent plane) used to return correct angle values, but the latest release returns either 0.0 or pi.
is it bug in oda's code? any way to fix it from my code?
thanks,
samir
it looks like it was never working...
in which version did it work correctly?
you may use
code:
odgeplanarent:roject()
odgeplanarent::get()
odgevector3d::angleto()
to calculate the angle
vladimir
quote:
originally posted by wvk
it looks like it was never working...
in which version did it work correctly?
it used to work in 2.02.8 version.
quote:
originally posted by wvk
you may use
code:
odgeplanarent:roject()
odgeplanarent::get()
odgevector3d::angleto()
to calculate the angle
thanks for suggestion, it works perfect by projecting point and then calculating angle by passing reference vector.
last edited by sjaiswal@hachisoft.com; 8th october 2007 at 10:34 amfff">.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)