Files
solidcraft/tools/oracle-analytic
brett19andClaude Opus 5.5 5a161e542b Merge main into smlib (develop): 76 conflicting files resolved
main beb35029a (Release 0.29.0), develop 05f5e8601. Committed as resolved and
not yet compiling; fixes follow by layer.

Where the two sides could not both stay as written:
- Section caps: develop's stencil crossing count (with hatch by part) kept;
  main's WINDING/NOT_CAP marking and its fs_solid_touch removed. main's #9407
  test is kept and has to hold on the count.
- crates/kernel/src/prism.rs: develop's, which has no 3D prism boolean; main's
  #6904 route has nothing to change there. Its test still has to be ported.
- Continuity legend: main's details card, with develop's G3/G4 classes.
- inspect.analysis one at a time: while main's "several analyses" preference is
  set, turning one on leaves the others on.
- Model cache: FORMAT 8, since neither side's reader reads the other's records.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MNXLXkZLQ6T7TSi4wswcmk
2026-10-31 16:40:37 -07: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
python3 tools/oracle-analytic/cases_workshop.py     # W23 (#4950): parameterized plates, round corners and top chamfer

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.