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