高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|