几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】odgevector3dangleonplane90 returns incorrect value (http://www.dimcax.com/hust/showthread.php?t=17687)

yang686526 2009-05-06 08:41 PM

【转帖】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::project()
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::project()
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">.


所有的时间均为北京时间。 现在的时间是 04:36 PM.