几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】oddbarc use (http://www.dimcax.com/hust/showthread.php?t=17467)

yang686526 2009-05-06 07:22 PM

【转帖】oddbarc use
 
oddbarc use
oddbarc use
can some tell me how to use oddbarc ?
i have 3 points in 3d describing very simply an arc of circle.
i can perfectly know the xdir, ydir, zdir and the start angle and end angle in this local system.
how can i transform these data to a correct oddbarc ?
the tranformation in center + startangle + endangle + normal is never correct when i try with my data.
has someone a robust algorithm to get good result ?
thanks for any help.
philippe
my own answer is :
set the arc center point in wcs (world coordinate)
set angle
don't set the normal
do a transformby from wcs to local system by using
odgematrix3d::setcoorsystem(location, xdir,ydir,zdir)
then (dbarc)arc->transformby(matrix)
can't you use the version of odgecircarc3d::set(), which creates an arc of 3 points?
regards
chudomir
this question is correct but ...
i cant' use 3d arc because the file generated will be used by other software that are not full acad compliant. a lot of them read only 2d simple shapes.


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