Files
solidcraft/crates
Brett LawsonandClaude Opus 5.5 232c5dd757 smlib: tolerances cross the kernels per entity, not as the body's largest
The flat arrays carry each edge's and vertex's own tolerance, but
to_arrays wrote the largest tolerance as TOLERANCE, and both imports take
TOLERANCE as the B-rep's, which MakeTopologyFromData raises every entity
to. Each crossing gave the whole body its largest tolerance, and a
solidcore chamfer makes its edges at 4x the B-rep's, so a chain of
mixed-route chamfers grew every tolerance fourfold per blend until one
failed (fillets/2341, 1e-5 to 0.164 mm by the 8th chamfer).

- to_arrays writes the B-rep's own tolerance as TOLERANCE (curves are
  still approximated to the largest), so the C++ import keeps each edge's
  and vertex's own.
- from_arrays takes the B-rep's tolerance as the least of the edges' and
  vertices' and each face's as the least of its edges' and loop
  vertices', when the arrays carry them (the C++ export still writes the
  largest as TOLERANCE).

fillets/2341 with blend on solidcore now passes; no other fillets or
booleans case changes status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SdcgExNEwfR9CX2RAzp2Pt
2026-10-29 05:55:27 +01:00
..