mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-17 22:20:51 +00:00
de00c7b420
* DXF export: every file writes lengths to nine decimals and never writes a non-finite number (#5321) The number rule agreed on #5321: lengths (coordinates, radii, heights, extents, dashes) go on an exact 1e-9 grid of the file's unit, an exact half tick away from zero; dimensionless values (angles, ratios, bulges, knots, weights, normals) keep twelve decimals; nothing non-finite is written, and a length beyond 9000000 is refused with its entity and value. - length_decimal: @0xlillith's exact formatter (u128 ticks, no heap), with her tests. - Out::len and Out::num, each call site classified; the exact bulged spelling and the legacy NaN-as-zero switch are gone. - written_length and written_number feed both the owned preflight and path admission. - solidcore's ScalarEncoding gets length and dimensionless callbacks. Path admission now checks arc, circle and ellipse centres, and packs an arc into a polyline only when its ends and bulge survive the encoding; otherwise the exact ARC is written. - The flat-pattern byte pins are re-recorded once (Windows), and the test now reports every changed file in one failure. Co-authored-by: selune <35337584+0xlillith@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Tests: the flat-pattern DXF byte pins on CI's Ubuntu 24.04 (glibc 2.39) (#5321) The 11 arc-fitted outputs whose last decimals differ under glibc 2.39, as the test's own report on this PR's first CI run listed them. The comparison stays exact (name, length, SHA-256). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: selune <35337584+0xlillith@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>