Skip to content

Fillet: rounding the rim of an extruded teardrop (one closed B-spline edge) fails with "edge without primary edge use" #2498

Closed

Description

@khanahmad4527

What happens

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

  1. A closed teardrop profile as one B-spline curve on the XY plane.
  2. create_linear_sweep it 10 along +Z, with caps.
  3. 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.

Activity

  1. khanahmad4527 commented on Nov 3, 2026

    @khanahmad4527
    ContributorAuthor

    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.

  2. khanahmad4527 commented on Nov 3, 2026

    @khanahmad4527
    ContributorAuthor

    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.

  3. added a commit that references this issue on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions