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

yang686526 2009-05-07 04:27 PM

【转帖】strange Rendering Behaviour
 
strange rendering behaviour
strange rendering behaviour
hello,
i am experiencing some "strange" problems when rendering different entities:
if i have one big circle and one big spline, and one small circle and one small spline, and render the drawing (all entities are rendered through polylineout method - polylines), i get some strange results:
big and small circle is rendered with the same precision (they are approximated with same number of points)
but splines are rendered differently. big spline is quite accurate, but small one is not accurate at all. is this a dd bug, or can this be achieved in any other way?
since circles and arc are rendered with the same precision, regarding their size, i would expect the same thing from splines?
same effect can be seen also when exporting to svg from odamfcapp.
best regards, tomaz
does inaccuracy of "small" spline rendering acceeds precision returned by your deviation() method? if so could you post a sample file?
sergey slezkin
hello sergey,
my deviation method returns 0.0
what is the behaviour of dd library, when deviation returns 0.0?
best regards, tomaz
if deviation() returns zero dd uses some defaults.
for arcs it's 16 segments for full circle
for splines - 1/1000 of control points extents but not less than 5.e-10.
maybe your "small" spline has extents about 1.e-9?
sergey slezkin


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