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

yang686526 2009-05-06 02:21 PM

【转帖】how to control arccircle smoothness
 
how to control arc/circle smoothness
how to control arc/circle smoothness
hi,
i'm using dwgdirect 1.08 (still...).
i have inherited all the needed gs and gi classes and the rendering is quite ok (but not using the opengl view provided by dwgdirect).
but the arcs and circles has only few facets.
i override odgsbaseview::deviation() and odgsbaseview::modeldeviation() and they are not called. the arcs and circles are directly in the model space (not in block definition).
however in odamfcapp the arcs and circles of the same drawing are quite ok both in opengl and wingdi views - and they seem not to have deviation or any other method concerning this.
please, can someone help me where to find the actual setting.
any help will be much appreciated.
regards
chudomir
maybe you have overriden methods like circle() etc.?
who tesselates the circle in your application? in odamfcapp odgecircarc3d::getsamplepoints() is called from odgiabstractgeometry::circle() passing value returned by modeldeviation() to it as argument.
sergey slezkin
thank you very much sergey,
i have saw that getsamplepoints was called through the call stack - but it was not the problem.
the problem now is repaired - the stupid visual studio 2003 just needed a whole rebuild to link the added methods deviation and modeldeviation - that's why they were not called. (this happens sometimes especially if you move a function from private to public in dll-exported class and want to call it from the outer world - at least i'm sure i have written the functions).
anyway, sorry for disturbing...
regards
chudomir


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