You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fillet: rounding the rim of an extruded teardrop (one closed B-spline edge) fails with "edge without primary edge use" #2498
Rounding the top or bottom rim of a teardrop-shaped prism fails with "edge without primary edge use" in do_fillet. It fails with the default flags and with fillet_blend_corner on.
The prism is a single closed B-spline profile (a teardrop, one smooth closed curve) swept straight up with create_linear_sweep, so each rim is one closed B-spline edge that meets itself at the teardrop's tip.
The same closed edge rounds fine where it is concave: the foot of the same teardrop as a boss on a plate (the case pinned by a_closed_edge_meeting_itself_at_an_angle_is_the_closed_corner in crates/solidcore/tests/wr697_end_and_join.rs, #2436).
Repro
A closed teardrop profile as one B-spline curve on the XY plane.
create_linear_sweep it 10 along +Z, with caps.
Fillet the top rim edge at r 0.5 or r 1.
Expected: a rounded rim (one closed round meeting itself at the tip). Actual: status error, "edge without primary edge use".
Found while writing the pinning tests for #2436. I'll take this, starting with a failing test, and check where it belongs in the generic blend (#2243) before fixing.
I'm taking this. Draft PR with the scope is up: it starts with a failing test (the convex rim at r 0.5 and r 1 with every generic-blend flag on), then I'll find where the closed rim loses its primary edge use and check whether that is in the generic blend's path or only in the old closed Nx1 corner that tangency-labs/solidcraft#13828 replaces.
Found and fixed in #2499. The corner wasn't the problem: the closed Nx1 corner builds the mitre at the tip. The blend's overflow check (RailsFitTheirFaces, the rim event) let a rail leave its face only across a side edge at an end, or where the nearest edge point is an end. On the teardrop's top face, the rail of one end's round runs on past the rails' crossing (where the corner cuts it) and crosses the rim's other stretch about r from the tip. The face has no side edge there, and the nearest edge point is the crossing itself, so the round was taken for a cliff overflow. The trim at its creases then left an edge with no edge use. The check now also counts that stretch as past an end when it lies beyond the plane where the corner at the closed edge's vertex cuts the rail. With every blend flag on, the rim builds clean at r 0.5 and r 1 (5 faces), within 7.7e-7 and 1.9e-7 of the closed form of a round mitred at the tip. No other blend test's output changes. A correction to the report: with the default flags the rim already built. The failing configuration was every fix with or without fillet_blend_corner.
Activity
khanahmad4527 commentedon Nov 3, 2026
I'm taking this. Draft PR with the scope is up: it starts with a failing test (the convex rim at r 0.5 and r 1 with every generic-blend flag on), then I'll find where the closed rim loses its primary edge use and check whether that is in the generic blend's path or only in the old closed Nx1 corner that tangency-labs/solidcraft#13828 replaces.
Test: the rim of an extruded teardrop rounded with every blend flag on (
A closed edge's rail past its own corner is not a cliff overflow (tan…
khanahmad4527 commentedon Nov 3, 2026
Found and fixed in #2499. The corner wasn't the problem: the closed Nx1 corner builds the mitre at the tip. The blend's overflow check (
RailsFitTheirFaces, the rim event) let a rail leave its face only across a side edge at an end, or where the nearest edge point is an end. On the teardrop's top face, the rail of one end's round runs on past the rails' crossing (where the corner cuts it) and crosses the rim's other stretch about r from the tip. The face has no side edge there, and the nearest edge point is the crossing itself, so the round was taken for a cliff overflow. The trim at its creases then left an edge with no edge use. The check now also counts that stretch as past an end when it lies beyond the plane where the corner at the closed edge's vertex cuts the rail. With every blend flag on, the rim builds clean at r 0.5 and r 1 (5 faces), within 7.7e-7 and 1.9e-7 of the closed form of a round mitred at the tip. No other blend test's output changes. A correction to the report: with the default flags the rim already built. The failing configuration was every fix with or withoutfillet_blend_corner.claim: #2498
Merge exact-rounds-as-definitions (with main) into corner-definitions