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
Boolean: brep-bench box-screwed-inside-a-rod works 15 s, then relate refuses a second near-coincident edge #3391
brep-bench swept/box-screwed-inside-a-rod runs its boolean for 15 s and then refuses it in boolean::topology_intersector::p1::relate.
Case: brep-bench (https://github.com/bmander/brep-bench) swept/box-screwed-inside-a-rod: a box swept along a screw path inside a rod, then the boolean.
Time to failure: 15.3 s (one core, nice 19).
Work spent in the failing SmApiBoolean: 2,774,005 units.
Refusal:boolean::topology_intersector::p1::relate: relating the operands' entities failed: the edge from (1.9036833108729598, -1.6204906207392147, 6.550737236846435) to (1.9148680688809465, -1.6072586222436358, 6.555154692127479) of the other B-rep is related to the edge from (1.9036833108729598, -1.6204906207392147, 6.550737236846435) to (1.9148672752864155, -1.6072595677216979, 6.555159537360081) and was asked for the edge from (…same…): another entity is already related to the other one
The two edges share a start and end about 1e-6 apart: two near-coincident intersection edges are found, one is related, and the relation of the second is refused only at the end. Find where the second edge is made, and either merge it with the first there or refuse at that point.
Measured while sizing the work budget in tangency-labs/solidcraft#21878; one of the cases listed in #3390. Work is counted as polls of the kernel's outer-loop checks; the heaviest valid boolean measured spends 4,058,015 units and the heaviest valid blend 2,271,717, so a work limit can't stop this one early without refusing valid calls. The fix is to detect the failure up front.
Triage: the case no longer fails on main at 8b5cd048f: brep-bench swept/box-screwed-inside-a-rod builds the swept volume and the cut, and both match the bench. No relate conflict happens anywhere in the call.
What ran. Rod make_cylinder([0; 3], 5, 20), box make_box([2.5, -0.5, 2], [1, 1, 1]), swept_volume with Motion::Screw { point: [0; 3], axis: z, angle: 4π, rise: 8 }, then boolean(rod, swept, Subtract). It ran in release as a temporary test. For the run, TopologyIntersector::relate (boolean/topology_intersector/p1.rs:2098) also printed a backtrace on every conflict, including soft ones. It printed none.
fix set
swept
cut
volume
area
ops default
Ok
Ok
within 1e-6 of the bench
within 1e-6
SolidCraft's (solidcraft_fix_names())
Ok
Ok
1522.3162188228
961.1374977138
The bench gives 1522.316218895 and 961.1374881545. The differences are 4.7e-11 and 1.0e-8 relative.
Why it moved (read, not bisected). There the case runs through solidcore's own screw swept volume, solidcore-ops/src/swept_volume.rs, from tangency-labs/solidcraft#25948 (merged 3 Dec, after this issue). That code builds the envelope shell where it is certified embedded, and otherwise unites the body with each front face's prism (union_all). I didn't check which branch this case takes. I can't tell which construction the 25 Nov measurement went through. My guess is that the two near-coincident edges came from that construction; today's build doesn't make them.
Still open elsewhere (not run here).tangency-labs/solidcraft#25721 has the same refusal ("another entity is already related to the other one": one edge asked for a second edge ~1e-6 to 1e-8 from its mate), reached through Shell.
Not claiming: nothing here is left to fix. I'd open a test-only PR pinning the case beside a_square_bar_screwed_through_a_rod if you want it pinned, and I'd come back to this issue if it fails again on a current main.
Activity
MarkusReichart commentedon Dec 4, 2026
Triage: the case no longer fails on main at
8b5cd048f: brep-benchswept/box-screwed-inside-a-rodbuilds the swept volume and the cut, and both match the bench. No relate conflict happens anywhere in the call.What ran. Rod
make_cylinder([0; 3], 5, 20), boxmake_box([2.5, -0.5, 2], [1, 1, 1]),swept_volumewithMotion::Screw { point: [0; 3], axis: z, angle: 4π, rise: 8 }, thenboolean(rod, swept, Subtract). It ran in release as a temporary test. For the run,TopologyIntersector::relate(boolean/topology_intersector/p1.rs:2098) also printed a backtrace on every conflict, including soft ones. It printed none.solidcraft_fix_names())The bench gives 1522.316218895 and 961.1374881545. The differences are 4.7e-11 and 1.0e-8 relative.
Why it moved (read, not bisected). There the case runs through solidcore's own screw swept volume,
solidcore-ops/src/swept_volume.rs, from tangency-labs/solidcraft#25948 (merged 3 Dec, after this issue). That code builds the envelope shell where it is certified embedded, and otherwise unites the body with each front face's prism (union_all). I didn't check which branch this case takes. I can't tell which construction the 25 Nov measurement went through. My guess is that the two near-coincident edges came from that construction; today's build doesn't make them.Still open elsewhere (not run here). tangency-labs/solidcraft#25721 has the same refusal ("another entity is already related to the other one": one edge asked for a second edge ~1e-6 to 1e-8 from its mate), reached through Shell.
Not claiming: nothing here is left to fix. I'd open a test-only PR pinning the case beside
a_square_bar_screwed_through_a_rodif you want it pinned, and I'd come back to this issue if it fails again on a current main.Written with Claude Code (AI) on behalf of @MarkusReichart.