increased precision in xml output; optimized some things

This commit is contained in:
zueuk
2005-09-28 15:36:55 +00:00
parent 2bfc76e9b0
commit 83b1e24982
2 changed files with 116 additions and 76 deletions

View File

@ -1440,9 +1440,9 @@ begin
sl.add(format('time %f', [time]));
if cmapindex >= 0 then
sl.add(format('cmap %d', [cmapindex]));
sl.add(format('zoom %.3f', [zoom])); // mt
sl.add(format('angle %.3f', [FAngle]));
sl.add(format('image_size %d %d center %.3f %.3f pixels_per_unit %f',
sl.add(format('zoom %g', [zoom])); // mt
sl.add(format('angle %g', [FAngle]));
sl.add(format('image_size %d %d center %g %g pixels_per_unit %f',
[Width, Height, center[0], center[1], pixels_per_unit]));
sl.add(format('spatial_oversample %d spatial_filter_radius %f',
[spatial_oversample, spatial_filter_radius]));
@ -1457,10 +1457,10 @@ begin
if xform[i].density = 0 then
Continue;
sl.add(format('xform %d density %.3f color %.3f symmetry %f', [i, xform[i].density, xform[i].color, xform[i].symmetry]));
sl.add(format('xform %d density %g color %g symmetry %g', [i, xform[i].density, xform[i].color, xform[i].symmetry]));
s := 'var';
for j := 0 to NRVAR - 1 do begin
s := format('%s %.3f', [s, xform[i].vars[j]]);
s := format('%s %g', [s, xform[i].vars[j]]);
end;
sl.add(s);
// sl.Add(format('coefs %f %f %f %f %f %f',