From d77aac4164805c5a197ce025910f44bc3dfbf295 Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Sat, 31 Oct 2026 09:02:39 -0400 Subject: [PATCH] Kernel rig: both 4092 loft, ribs and pad unions graded on their volume and box Co-Authored-By: Claude Opus 5.5 --- .../expected.json | 19 ++++++++++++++++--- .../expected.json | 19 ++++++++++++++++--- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/tests/kernel-cases/crashes/4092-loft-ribs-rounded-pad-union-panics/expected.json b/tests/kernel-cases/crashes/4092-loft-ribs-rounded-pad-union-panics/expected.json index 073d941c6..910d7b8ea 100644 --- a/tests/kernel-cases/crashes/4092-loft-ribs-rounded-pad-union-panics/expected.json +++ b/tests/kernel-cases/crashes/4092-loft-ribs-rounded-pad-union-panics/expected.json @@ -3,7 +3,20 @@ "tangency-labs/solidcraft#4092" ], "what": "join extrude of a rounded pad over a lofted body with ring and ribs: repeated truck intersection_curve panics, then 'boolean Union: no result'", - "source": "invariants", - "method": "the pad (X -8..8, Y 18..25, Z 36..59) overlaps the body, ribs and ring, so the join is one connected solid; the join must succeed with one valid closed solid and no panic", - "body_count": 1 + "source": "analytic", + "method": "the pad (X -8..8, Y 18..25, Z 36..59) overlaps the body, ribs and ring, so the join is one connected solid; the join must succeed with one valid closed solid and no panic. Body: neck pi 18^2 21; the two-section loft is ruled, the circle r 18 paired with the 30 x 20 ellipse by their common angle parameter (the ellipse an affine image of the circle), so each section is an ellipse (18 + 12 l) x (18 + 2 l): 17 pi int (18 + 12 l)(18 + 2 l) dl = 7786 pi (pairing by normals instead, the largest any pairing gives, adds 17 pi * 1.5 = 80, inside the tolerance); the ellipse chamber pi*30*20*22 (z 38..60) and the flange 70 x 50 r 6 (area 3500 - (4 - pi)*36 = 3469.097, z 60..64, holding the chamber): 101181.25. The handle disc (r 12 about (y 30, z 47), x -5..5), the two ribs (the rounded profile, x -8..-4 and 4..8) and the pad (x -8..8, z 36..59 rounded r 3, y 18..25) add, by integrating over x -8..8, z 35..59 the length in y of the union of every part's y-interval less the body's own (grids 400^2..1600^2 agree to 2.4): 5347.9. V = 106529.2. Box: the flange's x +-35, y -25 to the disc's 42, z 0..64", + "body_count": 1, + "volume_mm3": 106529.2, + "bbox": { + "min": [ + -35.0, + -25.0, + 0.0 + ], + "max": [ + 35.0, + 42.0, + 64.0 + ] + } } \ No newline at end of file diff --git a/tests/kernel-cases/crashes/4092-loft-ribs-rounded-pad-union-reduced/expected.json b/tests/kernel-cases/crashes/4092-loft-ribs-rounded-pad-union-reduced/expected.json index 0d4fbde59..a469e2f6e 100644 --- a/tests/kernel-cases/crashes/4092-loft-ribs-rounded-pad-union-reduced/expected.json +++ b/tests/kernel-cases/crashes/4092-loft-ribs-rounded-pad-union-reduced/expected.json @@ -3,7 +3,20 @@ "tangency-labs/solidcraft#4092" ], "what": "the same without the top flange: the join fails with 'boolean Union: no result'", - "source": "invariants", - "method": "the pad (X -8..8, Y 18..25, Z 36..59) overlaps the body, ribs and ring, so the join is one connected solid; the join must succeed with one valid closed solid and no panic", - "body_count": 1 + "source": "analytic", + "method": "the pad (X -8..8, Y 18..25, Z 36..59) overlaps the body, ribs and ring, so the join is one connected solid; the join must succeed with one valid closed solid and no panic. Body: neck pi 18^2 21; the two-section loft is ruled, the circle r 18 paired with the 30 x 20 ellipse by their common angle parameter (the ellipse an affine image of the circle), so each section is an ellipse (18 + 12 l) x (18 + 2 l): 17 pi int (18 + 12 l)(18 + 2 l) dl = 7786 pi (pairing by normals instead, the largest any pairing gives, adds 17 pi * 1.5 = 80, inside the tolerance); the ellipse chamber pi*30*20*26 (z 38..64): 94844.68. The handle disc (r 12 about (y 30, z 47), x -5..5), the two ribs (the rounded profile, x -8..-4 and 4..8) and the pad (x -8..8, z 36..59 rounded r 3, y 18..25) add, by integrating over x -8..8, z 35..59 the length in y of the union of every part's y-interval less the body's own (grids 400^2..1600^2 agree to 2.4): 5347.9. V = 100192.6. Box: the chamber's x +-30, y -20 to the disc's 42, z 0..64", + "body_count": 1, + "volume_mm3": 100192.6, + "bbox": { + "min": [ + -30.0, + -20.0, + 0.0 + ], + "max": [ + 30.0, + 42.0, + 64.0 + ] + } } \ No newline at end of file