Repository navigation
Description
Four SolidCraft tests that pass at 8ddce90 fail at 9856ffe. I found them moving SolidCraft's pin (tangency-labs/solidcraft#12413); three pass at 5d2635d, and I'm bisecting those over the merges since and will add the solidcore PR for each here.
1. A section through a body with small rounds gives no closed outline
whole_body_intersect_keeps_a_small_round_between_short_walls: a 150 x 55 x 150 box with its four 55 mm edges rounded R2, and a tapered groove (6 deep, -56.31° taper) cut into each of the four sides that stops 2 mm short of the rounds. The section by the plane y = 20 should be one closed outline: the square less the corners' (4 − π) r² and four trapezoids, 150² − (4 − π)·4 − 4·798 = 19304.57 mm², with four R2 arcs.
Save as section.json and run solidcraft-cli eval section.json:
{"commands":[{"command":"solid.box","params":{"length":150,"width":55,"height":150,"corner":[-75,0,-75],"body_name":"Part"}},{"command":"solid.fillet","params":{"edges":[[75,27.5,75],[-75,27.5,75],[75,27.5,-75],[-75,27.5,-75]],"radius":2}},{"command":"sketch.create","params":{"plane":"YZ","offset":75}},{"command":"sketch.rectangle.two_point","params":{"p0":[7,-71],"p1":[48,71]}},{"command":"sketch.finish","params":{}},{"command":"solid.extrude","params":{"distance":6,"direction":"negative","taper":"-56.31 deg","operation":"cut","targets":["Part"]}},{"command":"sketch.create","params":{"plane":"YZ","offset":-75}},{"command":"sketch.rectangle.two_point","params":{"p0":[7,-71],"p1":[48,71]}},{"command":"sketch.finish","params":{}},{"command":"solid.extrude","params":{"distance":6,"direction":"positive","taper":"-56.31 deg","operation":"cut","targets":["Part"]}},{"command":"sketch.create","params":{"plane":"XY","offset":75}},{"command":"sketch.rectangle.two_point","params":{"p0":[-71,7],"p1":[71,48]}},{"command":"sketch.finish","params":{}},{"command":"solid.extrude","params":{"distance":6,"direction":"negative","taper":"-56.31 deg","operation":"cut","targets":["Part"]}},{"command":"sketch.create","params":{"plane":"XY","offset":-75}},{"command":"sketch.rectangle.two_point","params":{"p0":[-71,7],"p1":[71,48]}},{"command":"sketch.finish","params":{}},{"command":"solid.extrude","params":{"distance":6,"direction":"positive","taper":"-56.31 deg","operation":"cut","targets":["Part"]}},{"command":"sketch.create","params":{"plane":"XZ","offset":20,"project_edges":false}},{"command":"sketch.intersect","params":{"refs":[{"body":"Part"}]}},{"command":"sketch.finish","params":{}}]}- 8ddce90: the last sketch has 24 curves and 1 profile.
- 9856ffe (and already 5d2635d): 24 curves, 0 profiles: the section's curves don't close.
2. Shell of a tapered-pocket basin fails status 1001
shell_of_a_basin_past_its_rim_keeps_the_rim_solid (solidcore calls only): box_solid 100 x 60 x 30, cut by a loft from the rectangle (20, 4)–(80, 50) at z = 30 to (30, 20)–(70, 40) at z = 10; then shell with the bottom face (50, 30, 0) open at t = 1, 4 and 6. The volumes have a closed form (a cubic in z, integrated in the test): 17105.6240415, 63560.2492284 and 90113.9202101 mm³.
3. A window cut after a far-away round adds a face
rim_cut_after_the_round_on_the_other_end: SolidCraft's crates/engine/src/tests/fixtures/battery-tpu-case.sc, rolled to Fillet2, then a 48 x 4 x 50 box cut at (-24, -0.5, -1) through the open rim. The cut should add 3 faces (two sides and the top of the window), as it does rolled to Fillet1.
- 8ddce90 and 5d2635d: +3 faces.
- 9856ffe: +4 faces (16, not 15); one of the window's faces comes out split. The result is still one shell; I haven't looked at where the split is.
4. A cumulative housing part loses volume
SolidCraft's ladder case 11-cumulative-parts/004-housing:
- 8ddce90 and 5d2635d: 78 faces, its answer 15138.533 mm³.
- 9856ffe: 81 faces, 15111.545 mm³ (27 mm³ short, 0.18 %).
SolidCraft runs with every UpstreamFixes flag on except fillet_refuse_rounds_breaking_through and fillet_round_ends_on_outline.
Activity
Ladder golden: 004-housing as on main again
MarkusReichart commentedon Nov 6, 2026
I'm taking point 2 (the basin shell), draft #2926 with the failing test. @jyviko, the cause is in the extended-surface margin from your tangency-labs/solidcraft#13765 commits; if you're already on this, say so and I'll stop.
What fails. At main 513e6fc, as solidcore-ops calls (
make_box,sweep::loftdegree 1,booleanSubtract,shellopen at the bottom, SolidCraft's fixes): t = 1 and t = 4 build to the closed form within 1e-6 and pass the full check; t = 6 fails with 1001 fromshell_brep, because the inner offset body is not a closed solid (15 faces with lamina edges instead of 11). #2892's head fails the same way.Why. The pocket's left and right sides are ruled faces whose rows shrink from 46 long at the rim to 20 at the floor. At t = 6 their offsets must meet the floor's offset at the cavity's bottom corners, e.g. (26.29, 17.12, 4). On the side's own surface that corner's foot is past two sides: 3.3 below the floor edge and 5.54 past the front ruling along its row. The face's margin is
extension_reach+ |d| = 5.24 + 6 = 11.24.extended_by_distancemeets that length at the side's middle row, which is 33 long. The same parameter step (11.24 / 33) on the row through the corner, 15.68 long, reaches only 5.34. The side's offset edge with the floor stops at y = 20 and 40, and the corners stay open.The side face and its extension past the front ruling: look at the corner point on the extension's edge, 0.2 outside it.
Measured: margin max(reach + |d|, k|d|) on the two sides only builds for k ≥ 2.0 (12.0) and fails at k = 1.9 (11.4); the rows predict 5.54 · 33 / 15.68 = 11.66. With 5|d| on every face (before 95192d3) all three build to the closed form.
Read: definitions-and-certificates.md §6 (the distance is the length across the side at its middle; §6.6 the derived reach), offset-and-shell.md §5.2,
reach.rs,extend.rs,get_create_extended_surfaceandrecord_extension_reach.The question. The reach bounds a point's distance from the face, but the extension guarantees that length only at the middle of each side. Where should that be reconciled?
extended_by_distance(or a variant the executive calls) guarantees the length at every station of the side, including past the sides extended before it. That is a certified lower bound of the across length over the side, not its middle.I'd recommend (a), since every derived reach needs the length everywhere and the conversion in (b) would rest on sampled lengths. Until you answer I'll only measure: the suite, the rig and the offset difftest units with each option.
Measured (local prototypes, not pushed; patches kept with the run). (a):
extended_by_distancemeets the distance at the shortest of the side's stations 1e-6, ½ and 1 − 1e-6, not at its middle. (b): the executive extends once by the margin, measures the across length at both ends of each side, and extends again by margin² / shortest when that is short by more than 1e-9 relative.cargo test -p solidcoresuite is green (438 of 438 targets, as on main). The rig, run for the same idea without the 1e-9 threshold, matches main case for case (733 pass, the same 3 fail). The goldens on 3ed6194 were unchanged as far as the run got: the blend units up tofillet_intersector; it was stopped before the offset units.NotExacton a triangle with a pole (every_side_extends_in_turn_and_closed_or_collapsed_sides_are_left). The same refusal fails the offsets of rounds and a chamfered box: three tests inwr698_gn_round_is_its_definitionand one inissue_2489_blend_faces_are_definitions. The sloped-basin rim chamfer inwr635_636_cliff_overflow_closingis refused at the corner. The goldens ofblend.feature_executivechange in 2 cases, and with stations at 0 and 1 the rig lost 5 cases.This changes my recommendation to (b): the length guarantee everywhere along a side refuses where the middle one builds, while the caller asking for the length it needs moves nothing else measured. bherbruck's option 2 on #2878, where the draft asks for the reach it needs, points the same way. I'm waiting for your call before building either.
bherbruck commentedon Nov 6, 2026
Claiming points 1, 3 and 4 (point 2 is @MarkusReichart's #2926). Point 1's section is SolidCraft's mesh section, so we'll first check whether solidcore's body differs between the two SHAs, then report which side owns it.
Written by Claude Code (Anthropic) on behalf of @bherbruck.
bherbruck commentedon Nov 6, 2026
Results for points 1, 3 and 4. None needs a new solidcore change beyond #2892, and two belong to SolidCraft, so we're releasing our claim on all three.
Point 1, the section: SolidCraft's side.
sketch.intersectuses SolidCraft's own mesher, section and fit. The final bodies at 8ddce90 and 9856ffe differ only in 40 pcurve values, by at most 2.2e-16, and the new values are the cleaner ones (0.25, not 0.24999999999999978). All 3D geometry is identical: 30 faces, 72 edges, 1134519.238 mm³. Both meshes are watertight, and the raw crossings at y = 20 chain into one closed loop at both commits, but the section goes from 1 profile to 0. So the fit (project.rssection /fit_segments) is sensitive to rounding. The crossing area also moves, 17921.8 to 18005.1 mm², and neither matches the issue's 19304.57, so that formula needs checking too.Point 3, the rim cut: fixed by #2892. The description needs correcting. The test fails at the Fillet1 roll, and the +4 isn't a split face:
CaseShellfails, so the body stays a 12-face solid and the "window" cut makes a pocket. The failing call, in solidcore alone, isoffset_faceson the open face by 7 mm, which returnsStatus(1001).Point 4, the housing: not a solidcore regression. SolidCraft's thread tool changed: 49 faces at 9856, 38 at the old pin. The old tool ends in a square stop, and the new one has its last turn cut down to z = 21, as
End::Shoulderintends. Replaying the 9856 tool gives the same boolean (96 record faces, 15111.545) at 9856ffe, a6314d4 and 9e343e1. SolidCraft needs to re-derive 004's expected volume for the Shoulder path. Our reading is that the trim failed at the old pin and works now; the failure itself wasn't captured.Written by Claude Code (Anthropic) on behalf of @bherbruck.
MarkusReichart commentedon Nov 6, 2026
I'm taking point 1, on the SolidCraft side, since bherbruck's measurement puts it in SolidCraft's section fit (
crates/doc/src/project.rs,fit_segments).Plan:
whole_body_intersect_keeps_a_small_round_between_short_wallsat SolidCraft main against the 9856ffe pin.A draft PR in tangency-labs/solidcraft follows. It refers to this point and to tangency-labs/solidcraft#12413, whose pin this blocks.
Written with Claude Code (AI) on behalf of @MarkusReichart.
MarkusReichart commentedon Nov 6, 2026
Point 1 status: the fix is in draft tangency-labs/solidcraft#12722. The section fit re-fits each arc to the exact crossings but moved only the arc's own ends, leaving the walls beside an R2 round up to 1.2e-3 mm away, and the sketch joins ends only within 1e-7. With the fix the test passes at 9856ffe (#12413's pin applied locally); the run at the current pin and the full gate are still going. The issue's 19304.57 mm² is right: the raw crossings at y = 20 form one loop of 19304.52 mm².
Written with Claude Code (AI) on behalf of @MarkusReichart.
jyviko commentedon Nov 6, 2026
MarkusReichart commentedon Nov 6, 2026
@jyviko it's small: one function in
crates/doc/src/project.rs(+42/−2) plus a 49-line test, so I'm keeping tangency-labs/solidcraft#12722. One correction to my note above: a sketch profile joins ends within 1e-4 mm, not 1e-7. The old pin left gaps of 1.8e-5 mm, under that limit, and the new pin leaves 1.2e-3 mm.Written with Claude Code (AI) on behalf of @MarkusReichart.
jyviko commentedon Nov 6, 2026
Thanks @MarkusReichart, that's a real fix: the fit has to move the walls with the arc's ends, not rely on the sketch's 1e-4 join to cover the gap. Keep it in tangency-labs/solidcraft#12722. For later: a section is geometry, so in the end it should come from solidcore's planar section, not from a fit in SolidCraft's document layer.
MarkusReichart commentedon Nov 6, 2026
Point 1 status: tangency-labs/solidcraft#12722 passes at both pins. The section test and all 65
sketch_projecttests pass at 8ddce90 and with #12413's 9856ffe applied locally.cargo xtask ciis running on the PR head now.Written with Claude Code (AI) on behalf of @MarkusReichart.
figures: the basin and its shells at t = 1 and 4 from one view (tange…
Merge pull request #3067 from tangency-labs/fix/2908-basin-shell-reach
offset: a surface extended where its rows narrow holds the margin alo…
MarkusReichart commentedon Nov 7, 2026
Point 1: tangency-labs/solidcraft#12722 is ready for review.
cargo xtask ciat its head has no failures beyondtests/KNOWN_FAILING_TESTS, apart from two render tests that timed out under load and pass alone. With #12413's pin the section gets its one profile back.Written with Claude Code (AI) on behalf of @MarkusReichart.
Sketch Intersect: a round beside another arc is refitted unless that …
goldens: bless offset.offset_executive_p1; rational extensions that b…
Sketch Intersect: a cut through small rounds stays one closed profile (…
rebase: settle the goldens against the merged upstream code
rebase: settle the goldens against the merged upstream code