Skip to content

Fillet: a cone's larger round past a notch beside its seam builds - #26658

Closed
theironchef wants to merge 3 commits into
tangency-labs:mainfrom
theironchef:fix-25576-s7545
Closed

theironchef wants to merge 3 commits into
tangency-labs:mainfrom
theironchef:fix-25576-s7545

Conversation

@theironchef

@theironchef theironchef commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

This builds on #26620 (#26620), which lets a true cone's seam be turned for a round that ends on it. Until #26620 merges, this PR also shows its commit; the change here is the last commit.

Change

A cone's top rim rounded R0.14 together with the edge of a notch cut through the rim, with the notch's side just beside the cone's seam, was refused:

SMLib fillet: operation: the blend failed (status 1001): not_found: the fillet edge matches none of the 10 edges of the fillet B-rep: Unable to map new Fillet Edge back to Edge in Target Brep

This is the same seam-side case as #25576's other cones: with the cone turned so its seam is elsewhere, the round builds. But with this larger round the blend fails at a later step than with R0.1, so the retry that turns the seam (#25928, and for cones #26620) never ran: it answered only "failure to calculate intersection of fillet surface with side face". Now it answers this failure too, under the same soundness gate, and the round builds.

Refs #25576

Test change: a_cones_rim_rounded_past_a_notch_beside_its_seam_builds_as_turned_elsewhere (from #26620) is moved into a helper, cone_notched_beside_its_seam_rounds_as_turned_elsewhere(radius, estimate), so the new R0.14 test can share it. Its assertions and numbers are unchanged.

Changes a default: no

The case

Stress-corpus S7545's first three steps: a frustum, r 2 at z = 0 to r 1 at z = 3; a notch r 0.12 from z = 2 up through the top's rim, its axis at (0.99281, 0.11973), so the notch reaches 0.00027 across the cone's seam (y = 0); then R0.14 on the top rim and on the notch's edge on the top.

Cone turned about z before the notch main 1cedf72, CLI #26620, CLI this change
0° (notch beside the seam) fails as above fails as above builds (in the new test)
20° builds, 21.936547969248778 mm³ the same the same
45° builds, 21.93654796924875 the same the same
90° builds, 21.936547969248732 the same the same

The frustum is a solid of revolution about z, so turning it moves only the seam: the turned builds are the check that the seam-side build is right. The new test builds the part at 0°, 20° and 45° through the ops API and asserts each is valid and a manifold solid, and that all three volumes agree to 1e-9. (The CLI columns are release CLIs built from main 1cedf72 and from it plus #26620's change; I have not built a CLI with this change.)

Hand-worked, as in #26620: 21.949486612313 before the round (7π less the notch, 0.041661962815). The round's removal, as an estimate: its section r²(cot(t/2) − (π − t)/2) at r = 0.14, t = 90° + atan(1/3), is 0.0018862321 per unit of rim, times the rim's arc the notch leaves (2π − 2·asin(0.06)), 0.0116251; plus (1 − π/4)·r² along the notch's edge on the top (0.12·2·acos(0.06)), 0.0015251. That is 0.0131502, the corners where they meet not counted. The turned builds take off 0.0129386, 1.6% less, as with R0.1. The test holds the removal within 5% of the estimate; the exact check is the turned builds.

Why answering this failure is safe

The retry only runs where the round-end turn applies at all: a sphere or true cone next to the chain whose seam meets no edge or vertex of the chain. It turns that seam into the notch's gap and tries the round again, and keeps the result only if the kernel's full check finds no failure the input body didn't have and the body is still a manifold solid. Otherwise the first refusal stands, with the body as it was. So adding a failure the retry answers can turn a refusal into a sound build, or leave the refusal as it was; it can't produce an unsound body.

What changed

  • solidcore-ops blend.rs: side_face_across_seam is renamed round_end_across_seam, and also answers a BlendFailed at status 1001 whose phrase is "the fillet edge matches none of … edges of the fillet B-rep".
  • solidcore-blend blend/chain_seams.rs: the module notes name the second failure.
  • solidcore-ops tests/blend.rs: the cone test moved into a helper, and the new test a_cones_rim_rounded_larger_past_a_notch_beside_its_seam_builds_as_turned_elsewhere (R0.14).

Validation

Release, SOLIDCORE_REQUIRE_UPSTREAM=1 (the upstream-backed tests are CI-only):

  • solidcore-ops --test ops a_cones_rim_rounded: both cone tests pass (R0.1 from Fillet: a cone's rim rounded past a notch beside its seam builds #26620 and the new R0.14). Without the change (the second failure not answered), the R0.14 test fails at 0° with S7545's message ("not_found: the fillet edge matches none of the 10 edges of the fillet B-rep"), and the R0.1 test still passes.
  • solidcore-ops --test ops, the whole harness: 956 passed, 0 failed, 15 ignored.
  • solidcore-ops lib: 731 passed, 0 failed, 1 ignored.
  • solidcore-blend lib: 826 passed, 0 failed.
  • fmt, clippy -D warnings on solidcore-blend and solidcore-ops with all targets, and the panic-site inventory: clean.
  • The blend goldens and the tests that load upstream cases need the upstream test files: CI-only.

All on this branch at 00aea65 (#26620's head plus this change). It stays a draft until #26620 merges; then I merge main in once and rerun these.

🤖 Generated with Claude Code

theironchef and others added 3 commits December 4, 2026 21:58
…gency-labs#25576)

The round-end seam turn that tangency-labs#25928 added for spheres now takes true
cones too: after the round fails with "failure to calculate intersection
of fillet surface with side face", a true cone whose seam meets no chain
edge or vertex is turned into the notch's gap and the round tried again,
kept only if the kernel's full check finds no new failure and the body
is still a manifold solid. The cylinders' pre-blend turn, which true
cones stay out of (solidcore#3459), is unchanged.

sphere_seam_turns_off_chain is renamed round_end_seam_turns_off_chain.
New ops test: S2989's cone and notch at 0, 20 and 45 degrees.

Refs tangency-labs#25576

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…545, tangency-labs#25576)

The round-end seam turn (tangency-labs#25928, for cones tangency-labs#26620) answered only "failure
to calculate intersection of fillet surface with side face". With R0.14
on the same notched cone, the blend fails at a later step instead ("the
fillet edge matches none of the 10 edges of the fillet B-rep"), so the
turn never ran. It now answers that failure too, under the same gate:
the turned pass is kept only if the kernel's full check finds no new
failure and the body is still a manifold solid.

side_face_across_seam is renamed round_end_across_seam. The cone test
moves into a helper (assertions unchanged), with a new R0.14 test.

Refs tangency-labs#25576

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor
Pre-merge checks: Passed 1

Check name Status Explanation
Existing Defaults Unchanged Passed The check fails only if the PR changes a UX default: a default setting or preference, command or tool default behaviour, UI default layout or behaviour, or shortcuts. Geometry or kernel results under …
Full details: Existing Defaults Unchanged

Explanation

The check fails only if the PR changes a UX default: a default setting or preference, command or tool default behaviour, UI default layout or behaviour, or shortcuts. Geometry or kernel results under solidcore/ are explicitly not UX defaults and pass. Evidence: - The PR's own commit (00aea65, "Fillet: a cone's larger round past a notch beside its seam builds") changes three files, all under solidcore/: solidcore-blend/src/blend/chain_seams.rs, solidcore-ops/src/blend.rs, and solidcore-ops/tests/blend.rs. - The change lets a fillet retry also answer the status 1001 "fillet edge matches none of the edges of the fillet B-rep" failure. This changes a geometry result: a case that was refused now builds. The check explicitly excludes that from "changed default." - A file-name search of the commit's changed paths found no settings, preferences, keymap, shortcut, config, CLI, UI, menu or layout files. - The PR description says "Changes a default: no", which matches the diff. - The diff against local main showed many unrelated files. That comparison is not reliable here, so I relied on the PR's own commit diff. No UX default is changed, so the check passes.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added the area:kernel B-rep kernel, booleans, blends, STEP/IGES label Dec 5, 2026
@theironchef

Copy link
Copy Markdown
Contributor Author

Closing: this widened #26620's failure-driven pass for cones, which is not added now that #26805 proves the seam join at the intersection; the R0.14 case (S7545) still fails on #26805 and has a separate cause, to be looked at on its own.

@theironchef theironchef closed this Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:kernel B-rep kernel, booleans, blends, STEP/IGES

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant