Files
solidcraft/tools/oracle-analytic
jyvikoandClaude Opus 5.5 50dfff716b Wave 497/509: Reference tests: the variable rounds 77, 78, 80 and 81 expect the union of their balls (and 3 more)
4 commits, squashed; the originals stay reachable from tag archive/merge-main-develop.

- bf51e62f7 jyviko: Kernel tests: a law's dip shows its corner ball's sphere, a peak's two rounds cross (the reasons had them swapped)
- cde8be4a1 jyviko: Reference tests: the variable rounds 77, 78, 80 and 81 expect the union of their balls
- 155f1f470 jyviko: Known failing: the law corners' kernel and crate tests and rig 1207 pass on SMLib 48ea616
- 21f00a917 jyviko: Kernel rig: every fillet and chamfer case rounds its tangent chain

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ
2026-11-01 13:55:40 -05:00
..

Analytic reference values

Closed-form expected values for the cases in tests/oracle/ whose shape has one: prisms, cylinders, cones and frustums, spheres and caps, tori and solids of revolution (Pappus), fillets on straight edges (a constant radius, or one varying along the edge), shells, patterns of these, and folded sheet metal (flats plus bends as annular sectors). Each script is plain Python 3 (standard library only) with one function per case. Running a script from the repository root rewrites the expected.json of its cases with "source": "analytic" and a method string giving the formulas:

python3 tools/oracle-analytic/cases_basic.py        # 01-29, 82: boxes, holes, revolves, sketches, thin walls
python3 tools/oracle-analytic/cases_features.py     # 32-66: fillets, shells, sweeps, patterns
python3 tools/oracle-analytic/cases_sheet_metal.py  # 67-76: sheet metal
python3 tools/oracle-analytic/cases_fillets.py      # 77-81: variable, chord-length, tapered and spline fillets
python3 tools/oracle-analytic/cases_surfaces.py     # 83: boundary surfaces

Where a value depends on a SolidCraft convention rather than on geometry alone (a shell's sharp inner corner, a sheet-metal corner relief, where a flange height is measured), method or note says which convention is used. Never change a value to match SolidCraft's output: if they disagree, find out which one is wrong.