From 2eff99979a64a84a0df1fa51512018cd4e59277b Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Sat, 31 Oct 2026 08:48:29 -0400 Subject: [PATCH] Wave 479/509: Kernel rig: 1494 graded on its volume (box and cylinder less the 1 mm-offset cavity, sharp to rounded concave edges) and box (and 3 more) 4 commits, squashed; the originals stay reachable from tag archive/merge-main-develop. - c740e4de1 jyviko: Kernel rig: 1494 graded on its volume (box and cylinder less the 1 mm-offset cavity, sharp to rounded concave edges) and box - ba75de350 jyviko: Kernel rig: 4492 graded on its box and a volume range (the face's 19 mm sweep added, within the block's sides) - bdb321cdb jyviko: Kernel rig: 745 graded on its volume (the end moved 1 mm plus the spline boss's exact area), faces and box - 1893a5016 jyviko: Kernel rig: 4567 graded on its volume (the revolved spline less its revolved 2 mm offset), faces and box Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ --- .../expected.json | 22 ++++++++++++++++--- .../expected.json | 22 ++++++++++++++++--- .../expected.json | 20 ++++++++++++++--- .../expected.json | 20 ++++++++++++++--- 4 files changed, 72 insertions(+), 12 deletions(-) diff --git a/tests/kernel-cases/shell/1494-shell-box-with-cylinder-on-edge-line/expected.json b/tests/kernel-cases/shell/1494-shell-box-with-cylinder-on-edge-line/expected.json index 5763000b7..9cb9e0a8a 100644 --- a/tests/kernel-cases/shell/1494-shell-box-with-cylinder-on-edge-line/expected.json +++ b/tests/kernel-cases/shell/1494-shell-box-with-cylinder-on-edge-line/expected.json @@ -3,7 +3,23 @@ "tangency-labs/solidcraft#1494" ], "what": "a 47.5x45x30 box with a cylinder r7.5 joined on its side whose axis lies in the plane of the box's front face (y=0), shelled 1 mm open at the bottom", - "source": "invariants", - "method": "the cylinder wall's seam lies on the front plane, giving a five-face saddle corner at (47.5,0,2.5). No closed-form volume (the cavity corners follow the offset surfaces); the shell must succeed and give one valid closed body", - "body_count": 1 + "source": "analytic", + "method": "the cylinder wall's seam lies on the front plane, giving a five-face saddle corner at (47.5,0,2.5). Body = box 64125 + cylinder pi 7.5^2 30 = 69426.4376 (they share only the half disc on x = 47.5). Cavity with every kept face moved 1 in and extended to meet (sharp): box [1,46.5] x [1,44] x [0,29] (45.5 x 43 x 29) and the cylinder r6.5 from x = 46.5 to 76.5, less, over x 46.5..48.5, its part with y < 1 (the front face's and the uncovered half disc's offsets): 2 (pi 6.5^2/2 + int_0^1 2 sqrt(6.5^2 - y^2) dy) = 158.6294; cavity 60561.8393, material 8864.5983. A cavity that rounds its two concave edges instead (the true 1 mm offset) is larger by at most (1 - pi/4) per mm of each: the front face / half disc line (its offset at most 13 long inside r6.5) and the half circle r7.5 where the cylinder meets the box (at most 7.5 pi): 7.8463, so material 8856.7520 .. 8864.5983. A shell that fails to open leaves 2 shells; the full solid is 69426", + "body_count": 1, + "volume_mm3": [ + 8856.7, + 8864.7 + ], + "bbox": { + "min": [ + 0, + -7.5, + 0 + ], + "max": [ + 77.5, + 45, + 30 + ] + } } \ No newline at end of file diff --git a/tests/kernel-cases/shell/4492-offset-top-face-of-block-with-rounded-top-edges/expected.json b/tests/kernel-cases/shell/4492-offset-top-face-of-block-with-rounded-top-edges/expected.json index 7e05fa4e6..316e23097 100644 --- a/tests/kernel-cases/shell/4492-offset-top-face-of-block-with-rounded-top-edges/expected.json +++ b/tests/kernel-cases/shell/4492-offset-top-face-of-block-with-rounded-top-edges/expected.json @@ -3,7 +3,23 @@ "tangency-labs/solidcraft#4492" ], "what": "the top face of a 40x30x10 block whose four top edges are rounded r3, offset 19 mm up: truck refused it ('a corner whose faces don't meet the same way after the move')", - "source": "invariants", - "method": "the top face's neighbours are the rounds, tangent to it, which cannot extend to meet a plane 19 mm higher; how the gap closes (the rounds carried up with the face, or walls standing on the old face) is the method's choice, so only the outcome is graded: the offset succeeds with one valid closed body", - "body_count": 1 + "source": "analytic", + "method": "the top face's neighbours are the rounds, tangent to it, which cannot extend to meet a plane 19 mm higher; how the gap closes (the rounds carried up with the face, or walls standing on the old face) is the method's choice, so the volume is bounded, not fixed. The block before: 12000 less the four r3 rounds, 2 (40 + 30) 9 (1 - pi/4) less the four corners where two rounds' removals overlap, int_0^3 (3 - sqrt(9 - w^2))^2 dw = 45 - 13.5 pi each: 11739.9557. The result holds the block and the 34 x 24 face's sweep up to z = 29 (+15504: the walls standing on the old face, 27243.9557) and lies within the block's sides and the moved face's plane, 40 x 30 x 29 = 34800 (the rounds carried up give 34539.9557). The unchanged block (11740) falls outside", + "body_count": 1, + "volume_mm3": [ + 27243.9, + 34800.0 + ], + "bbox": { + "min": [ + 0, + 0, + 0 + ], + "max": [ + 40, + 30, + 29 + ] + } } diff --git a/tests/kernel-cases/shell/4567-shell-spline-revolved-vase/expected.json b/tests/kernel-cases/shell/4567-shell-spline-revolved-vase/expected.json index a0c8f5d8f..55f8c7fda 100644 --- a/tests/kernel-cases/shell/4567-shell-spline-revolved-vase/expected.json +++ b/tests/kernel-cases/shell/4567-shell-spline-revolved-vase/expected.json @@ -6,7 +6,21 @@ "tangency-labs/solidcraft#4743" ], "what": "a vase revolved from a fit-point spline wall, shelled 2 mm from its flat top: truck refused any free-form wall ('offset: only bodies with planes, cylinders, cones, spheres and tori')", - "source": "invariants", - "method": "the spline wall's curvature radius stays well above 2 mm, so the inward 2 mm offset exists: one valid closed body, open at the top. The offset of a spline surface has no closed-form volume, so only the outcome is graded (the reporter's 7-command repro; the removed face is the flat top at y = 46)", - "body_count": 1 + "source": "analytic", + "method": "the wall is the sketch's fit-point spline: the natural cubic through the seven points with chord-length parameters, six cubic spans. Its curvature towards the material stays below 0.0765 / mm (radius 13) and away from it below 0.34 / mm, so its 2 mm inward offset, c - 2 n, is a clean curve; the revolved shell's cavity is that offset revolved (the offset of a surface of revolution is its meridian's offset revolved), open at the flat top y = 46 (removed): it leaves the axis at y = 2.00335 (the bottom is a flat cone point, the two halves' offsets meet there) and reaches y = 46 at x = 3.96953, before its end (4.030, 46.346), so it is trimmed, never extended. Volumes by revolving (V = pi int x^2 dy): body 46402.29333 (exact, polynomial per span), cavity 34793.17040 (pi int x_o^2 dy_o along the offset, with o' = c' (1 - 2 k), Gauss quadrature converged to 1e-9). V = 11609.12293. Faces: the outer wall, the inner wall and the rim; the wall reaches x = 22.8722 at most", + "body_count": 1, + "volume_mm3": 11609.12292605581, + "faces": 3, + "bbox": { + "min": [ + -22.8722, + 0, + -22.8722 + ], + "max": [ + 22.8722, + 46, + 22.8722 + ] + } } diff --git a/tests/kernel-cases/shell/745-offset-face-on-body-with-distant-freeform-boss/expected.json b/tests/kernel-cases/shell/745-offset-face-on-body-with-distant-freeform-boss/expected.json index ffbe1034b..6c2502033 100644 --- a/tests/kernel-cases/shell/745-offset-face-on-body-with-distant-freeform-boss/expected.json +++ b/tests/kernel-cases/shell/745-offset-face-on-body-with-distant-freeform-boss/expected.json @@ -4,7 +4,21 @@ "tangency-labs/solidcraft#3893" ], "what": "Offset Face on a planar end of a body that has a spline-outlined boss far from the moved face", - "source": "invariants", - "method": "the move is refused today only because the unrelated boss wall is freeform. The operation must succeed and give one valid closed solid; the box end at x=0 moves out by 1 mm (the boss area is a spline integral, so no absolute volume is asserted; the 200 mm3 change is graded in the cut-away variant 745-offset-face-then-cut-boss-away)", - "body_count": 1 + "source": "analytic", + "method": "the move is refused today only because the unrelated boss wall is freeform. The box end at x=0 moves out by 1 mm between its four planar, square neighbours: +1 x 20 x 10 = 200. The boss outline is the line (25,5)-(35,5) and the fit-point spline through (35,5), (37,10), (30,15), (25,5): the sketch's natural cubic with chord-length parameters, three cubic spans, its area by Green's theorem (1/2 closed integral of x dy - y dx, a polynomial per span, integrated exactly) 94.302132; it stays within x 25..37.04, y 5..15.01. V = 8000 + 5 x 94.302132 + 200. Faces: the box's 6 and the boss's top, flat wall and spline wall. The cut-away variant 745-offset-face-then-cut-boss-away grades the same move without the boss", + "body_count": 1, + "volume_mm3": 8671.510661445036, + "faces": 9, + "bbox": { + "min": [ + -1, + 0, + 0 + ], + "max": [ + 40, + 20, + 15 + ] + } } \ No newline at end of file