Repository navigation
Description
A fillet on the four vertical edges of a box fails with status 1001 (stage_failed) when the box is joined flush on the top section of a loft (so the box's vertical edges run straight on into the loft's corner edges) and the radius is a full round (half the box's width). The same fillet on the box alone builds.
Build
solidcraft-cli 0.51.0-nightly.20261127.168.1 (Windows x64). The same script fails the same way on 0.50.0.
Error
SMLib fillet: operation: the blend failed (status 1001): stage_failed: a rail's edge of the fillet B-rep lies between two faces, neither of them this fillet's own, though every rail is an edge of its own fillet's face
The ticket's failure record names the stage blend::fillet_geom::p6::FilletBrep::trim_original_surfaces_with_solver.
Minimal operations (empty design)
- Loft between two centred rectangles on XY: 70 × 50 mm at z = 0 and 140 × 70 mm at z = 100.
- Box 140 × 70 × 50 mm joined on top of it, its bottom outline exactly the loft's top section.
- Fillet the box's four vertical edges, radius 35 mm (half the 70 mm width) → fails.
solidcraft-cli run standin.json:
{"commands": [
{"command": "sketch.create", "params": {"plane": "XY"}},
{"command": "sketch.rectangle.center", "params": {"center": [0, 0], "corner": [35, 25]}},
{"command": "sketch.finish", "params": {}},
{"command": "sketch.create", "params": {"plane": "XY", "offset": 100}},
{"command": "sketch.rectangle.center", "params": {"center": [0, 0], "corner": [70, 35]}},
{"command": "sketch.finish", "params": {}},
{"command": "solid.loft", "params": {"sections": [{"sketch": "Sketch1"}, {"sketch": "Sketch2"}]}},
{"command": "solid.box", "params": {"length": 140, "width": 70, "height": 50, "corner": [-70, -35, 100], "operation": "join"}},
{"command": "solid.fillet", "params": {"body": "Body1", "edges": [[-70, -35, 125], [-70, 35, 125], [70, 35, 125], [70, -35, 125]], "radius": "35"}}
]}Result: error: step 9 (solid.fillet): SMLib fillet: operation: the blend failed (status 1001): stage_failed: a rail's edge of the fillet B-rep lies between two faces, neither of them this fillet's own, though every rail is an edge of its own fillet's face
What decides it (same script, one change each, 0.51.0 nightly)
- Radius 3 → builds.
- Radius 25 → fails with another 1001:
SMLib fillet: operation: the blend failed (status 1001): trim_leaks: the faces the rails enclose reach past the rails (the trim loop does not separate): the faces a fillet's rails enclose on the body reach past its rails (the trim leaks). - One of the four edges alone, radius 35 → fails with the same
trim_leaks1001 as radius 25. - Loft top section 120 × 60 mm instead of 140 × 70 (a ledge, so the box keeps part of its bottom face), radius 35 → builds.
- No loft, the box alone, radius 35 → builds.
- Box as a new body, filleted at radius 35 before it is joined (
solid.combinejoin onto the loft) → builds; a small box cut through the result's top face afterwards also builds.
So the failure needs the filleted edges to continue straight into the loft's corner edges (no face between them) and a large radius.
Expected: the four edges round at radius 35 (a full round of each 70 mm end), the fillets ending on the loft's side faces, as the fillet-then-combine order produces.
Searches
rail's edge of the fillet B-rep lies between two faces (--match body, solidcraft and solidcore), neither of them this fillet's own, stage_failed, stage_failed fillet, trim_original_surfaces_with_solver, fillet loft, full round fillet, full round, the faces the rails enclose reach past the rails (--match body): no issue with this trigger. #2501 (closed) removed the older indexed trim_original_surfaces, not this solver path.
Tracked in https://tickets.solidcraft.io/t/2442
Activity