Repository navigation
Fillet: a cone's larger round past a notch beside its seam builds - #26658
theironchef wants to merge 3 commits into
Conversation
…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>
Pre-merge checks:
|
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:
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.
main1cedf72, CLIThe 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
main1cedf72 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-opsblend.rs:side_face_across_seamis renamedround_end_across_seam, and also answers aBlendFailedat status 1001 whose phrase is "the fillet edge matches none of … edges of the fillet B-rep".solidcore-blendblend/chain_seams.rs: the module notes name the second failure.solidcore-opstests/blend.rs: the cone test moved into a helper, and the new testa_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-opslib: 731 passed, 0 failed, 1 ignored.solidcore-blendlib: 826 passed, 0 failed.-D warningsonsolidcore-blendandsolidcore-opswith all targets, and the panic-site inventory: clean.All on this branch at 00aea65 (#26620's head plus this change). It stays a draft until #26620 merges; then I merge
mainin once and rerun these.🤖 Generated with Claude Code