Skip to content

Join: a ring round an elliptical plate, extruded taller than the plate, fails with "boolean Union: the operation failed: no result" #6848

Done

Description

@sschlesier

What happened

A Join extrude of the ring between two concentric ellipses fails when the ring is taller than the plate it surrounds:

error: step 6 (solid.extrude): boolean Union: the operation failed: no result

The same shape made of circles joins in about 30 ms, and the same ellipse ring joins when it is flush with the plate's top.

Found in a real design: an ellipse, a 1.6 mm inward offset of it, and a line splitting the sketch. The inner section was extruded 1.6 mm, then the outer ring 3.2 mm as a Join. In the app the Join dialog shows the error above.

Expected: one body, the plate with a taller rim. For the minimal repro the volume is pi * 28.4 * 15.2 * 1.6 (plate, 2169.8 mm3) + pi * (30 * 16.8 - 28.4 * 15.2) * 3.2 (ring, 726.8 mm3) = 2896.6 mm3.

Steps to reproduce

Headless, solidcraft-cli run ellipse-ring-join.json:

ellipse-ring-join.json
{
  "description": "Two concentric ellipses (30 x 16.8 and 28.4 x 15.2). The inner one is extruded 1.6 mm, then the ring between them is extruded 3.2 mm as a Join. The ring's inner wall lies on the plate's wall.",
  "commands": [
    {"command": "sketch.create", "params": {"plane": "XY", "name": "Ellipses"}},
    {"command": "sketch.ellipse", "params": {"center": [0, 0], "major": [30, 0], "minor_radius": 16.8}},
    {"command": "sketch.ellipse", "params": {"center": [0, 0], "major": [28.4, 0], "minor_radius": 15.2}},
    {"command": "sketch.finish", "params": {}},
    {"command": "solid.extrude", "params": {"sketch": "Ellipses", "profiles": [{"point": [0, 0]}], "distance": 1.6}},
    {"command": "solid.extrude", "params": {"sketch": "Ellipses", "profiles": [{"point": [0, 16]}], "distance": 3.2, "operation": "join"}}
  ]
}
  1. Sketch on XY: ellipse 30 x 16.8 and a concentric ellipse 28.4 x 15.2.
  2. Extrude the inner profile 1.6 mm.
  3. Extrude the ring profile (point [0, 16]) 3.2 mm, operation Join. It fails.

Control, same with circles (radius 30 and 28.4): joins in about 27 ms.

control-circles-join.json
{
 "commands": [
  {
   "command": "sketch.create",
   "params": {
    "plane": "XY",
    "name": "Ellipses"
   }
  },
  {
   "command": "sketch.circle.center",
   "params": {
    "center": [
     0,
     0
    ],
    "radius": 30
   }
  },
  {
   "command": "sketch.circle.center",
   "params": {
    "center": [
     0,
     0
    ],
    "radius": 28.4
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.extrude",
   "params": {
    "sketch": "Ellipses",
    "profiles": [
     {
      "point": [
       0,
       0
      ]
     }
    ],
    "distance": 1.6
   }
  },
  {
   "command": "solid.extrude",
   "params": {
    "sketch": "Ellipses",
    "profiles": [
     {
      "point": [
       0,
       16
      ]
     }
    ],
    "distance": 3.2,
    "operation": "join"
   }
  }
 ],
 "description": "Control: same as ellipse-ring-join.json with circles (radius 30 and 28.4). Joins in ~30 ms."
}

What varies

Measured with solidcraft-cli run ... --results (last extrude only):

Outline Ring height Plate height Result
ellipses 3.2 1.6 fails: no result
ellipses 1.6 1.6 joins, 25 ms
ellipses 0.8 1.6 joins, 1030 ms (about 40x slower than flush)
circles (control-circles-join.json) 3.2 1.6 joins, 27 ms
ellipses, ring as a separate body (operation New; diagnostic only) 3.2 1.6 works: the ring alone is fine, only the join fails

On the original file the ring starting at 1.6 mm (stacked on the plate) did not finish in over
two minutes, and the 0.8 mm ring joined only after a retry that moved the tool by 0.11 µm.

Where it goes wrong (diagnosis, not a fix)

Traced with temporary debug output on main:

  1. Both bodies are prisms along Z, so prism_boolean tries the 2D route first. The 2D union of the
    two outlines succeeds.
  2. The heights differ, so the result is a stepped prism and is built by
    sew_stack → sew_connected_sections (crates/kernel/src/prism.rs).
  3. There, edge() turns each outline segment into a sewable edge, and only knows lines, arcs and
    cubic Béziers (cubic_of). An ellipse outline is a rational conic (Seg2::Conic, weight
    0.9675… in this file), which is not a cubic, so it returns None. The route gives up
    ("stepped prism construction failed").
  4. The general B-rep boolean then runs on the two bodies, whose walls lie exactly on each other
    (the ring's inner wall is the plate's wall), and fails with "no result". I did not trace why
    the general boolean fails here beyond the coincident walls.

Flush heights avoid step 2 (same-height prisms are extruded directly, and crate::extrude
handles conics). Circles are arcs, which the sewing supports.

So any union of stepped prisms whose outlines contain an ellipse or another conic should hit this,
not only rings.

SolidCraft version and OS

solidcraft-cli 0.22.1 (main at 52e5bc1), macOS arm64.

Screenshots or recording

Image Image

Related issues checked

No existing issue covers an ellipse or conic outline in a stepped join. Nearest, all different:
#2770 (rim ring join on a rectangular base, slow then "no result"), #3243 (concentric cylindrical
rim and tooth), #4058 (flush walls round a floor, back to back; claimed in #4059), #2360 and
#3454 (cuts).

Activity

  1. added
    area:kernel
    needs-triage
    on Oct 25, 2026
  2. dudedagger42 commented on Oct 26, 2026

    @dudedagger42
    Collaborator

    Triage by dudedagger42: A join of a taller ring round a plate with elliptical outlines fails with 'boolean Union: the operation failed: no result'. Joins are kernel work, which is paused upstream (#3992). The report already has a repro file, so no new file is needed. #2770 and #3243 are related but have different outlines.

  3. flyboy-byte commented on Nov 8, 2026

    @flyboy-byte
    Contributor

    I re-ran the script from this issue on the solidcraft-cli of each build:

    Build Result
    0.30.1 boolean Union: the operation failed: no result (as reported)
    0.40.0-rc.2 builds, no error
    0.40.0-rc.3 step 6 fails: SMLib's check refuses the result: ... Loop Orientation: Face Loop has bad orientation [owner SmFace]

    So the join worked on rc.2 and fails again on rc.3, with a new error. This may be worth adding to solidcore's regression cases since rc.3 moved solidcore from 8ddce9016 to a445bdaac6.

    Written with Claude Code on behalf of @flyboy-byte.

  4. dudedagger42 commented on Nov 29, 2026

    @dudedagger42
    Collaborator

    Retested on SolidCraft 0.52.0 in #24144: the reported operation now builds a valid closed body (ellipse ring join builds: 2896.9 mm3 = analytic (plate + ring)). Closing; please reopen with a design if it still fails for you.

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

    area:kernelneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions