Wave 354/509: Kernel rig: pattern on path cases, bosses along a line, bodies turning with an arc's tangent, and instances past the path's end refused (and 3 more)

4 commits, squashed; the originals stay reachable from tag archive/merge-main-develop.

- af8f28e34 jyviko: Kernel rig: scale cases, a cube doubled about its corner, a sphere scaled into an ellipsoid of the same volume, and a zero factor refused
- e1724be62 jyviko: Kernel rig: pattern on path cases, bosses along a line, bodies turning with an arc's tangent, and instances past the path's end refused
- cf58e3735 jyviko: Kernel rig: replace face cases, a top moved onto a plane and a lower step raised to the higher top (fails today: SMLib offset of faces refuses closing the step wall)
- be4f15db6 jyviko: Kernel rig: bounding solid cases, two boxes with a margin and a sphere's exact box

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ
This commit is contained in:
jyviko
2026-10-29 16:50:20 -04:00
parent f0a52c36b5
commit c4e727871d
21 changed files with 616 additions and 1 deletions
@@ -0,0 +1,20 @@
{
"sources": [],
"what": "a body patterned 3 times along a half circle r20 with orientation path: each copy turns with the tangent",
"source": "analytic",
"method": "instances at 0, 90 and 180 deg along the arc, each turned with the tangent: the 4x2x2 key (long side radial) stays radial, at (0,20) 2 wide in X and 4 long in Y (y 18..22). Unturned it would be 4 wide in X (x -2..2, y 19..21). Three keys: V = 3*16, bbox x -22..22, y -1..22, z 0..2",
"body_count": 3,
"volume_mm3": 48.0,
"bbox": {
"min": [
-22,
-1,
0
],
"max": [
22,
22,
2
]
}
}
@@ -0,0 +1,61 @@
{
"commands": [
{
"command": "solid.box",
"params": {
"length": 4,
"width": 2,
"height": 2,
"center": [
20,
0,
1
],
"body_name": "Key"
}
},
{
"command": "sketch.create",
"params": {
"plane": "XY",
"name": "Path"
}
},
{
"command": "sketch.arc.center_point",
"params": {
"center": [
0,
0
],
"start": [
20,
0
],
"sweep": 180,
"id": "arc"
}
},
{
"command": "sketch.finish",
"params": {
"sketch": "Path"
}
},
{
"command": "solid.pattern.path",
"params": {
"bodies": [
"Key"
],
"path_sketch": "Path",
"path": [
"arc"
],
"count": 3,
"distance": 62.83185307179586,
"orientation": "path"
}
}
]
}
@@ -0,0 +1,21 @@
{
"sources": [],
"what": "a boss joined to a plate, patterned 5 times 20 mm apart along a sketch line",
"source": "analytic",
"method": "plate 100x20x5 = 10000 plus 5 bosses r3 h5 at x = 10, 30 ... 90: 5 pi 9 5; faces: plate 6 + 2 a boss (side, top) = 16",
"body_count": 1,
"faces": 16,
"volume_mm3": 10706.858347057703,
"bbox": {
"min": [
0,
0,
0
],
"max": [
100,
20,
10
]
}
}
@@ -0,0 +1,73 @@
{
"commands": [
{
"command": "solid.box",
"params": {
"length": 100,
"width": 20,
"height": 5,
"body_name": "Plate"
}
},
{
"command": "solid.cylinder",
"params": {
"base": [
10,
10,
5
],
"radius": 3,
"height": 5,
"operation": "join",
"name": "Boss"
}
},
{
"command": "sketch.create",
"params": {
"plane": "XY",
"name": "Path"
}
},
{
"command": "sketch.line",
"params": {
"points": [
[
10,
10
],
[
90,
10
]
],
"ids": [
"p1"
],
"infer": false
}
},
{
"command": "sketch.finish",
"params": {
"sketch": "Path"
}
},
{
"command": "solid.pattern.path",
"params": {
"features": [
"Boss"
],
"path_sketch": "Path",
"path": [
"p1"
],
"count": 5,
"spacing": 20
}
}
]
}
@@ -0,0 +1,8 @@
{
"sources": [],
"what": "6 instances 20 mm apart need 100 mm of an 80 mm path: refused",
"source": "analytic",
"method": "(6 - 1) * 20 = 100 > 80: the last instances would leave the path; a clean refusal naming its length",
"outcome": "refused",
"refusal": "run past the end of the path (80.000 mm long)"
}
@@ -0,0 +1,73 @@
{
"commands": [
{
"command": "solid.box",
"params": {
"length": 100,
"width": 20,
"height": 5,
"body_name": "Plate"
}
},
{
"command": "solid.cylinder",
"params": {
"base": [
10,
10,
5
],
"radius": 3,
"height": 5,
"operation": "join",
"name": "Boss"
}
},
{
"command": "sketch.create",
"params": {
"plane": "XY",
"name": "Path"
}
},
{
"command": "sketch.line",
"params": {
"points": [
[
10,
10
],
[
90,
10
]
],
"ids": [
"p1"
],
"infer": false
}
},
{
"command": "sketch.finish",
"params": {
"sketch": "Path"
}
},
{
"command": "solid.pattern.path",
"params": {
"features": [
"Boss"
],
"path_sketch": "Path",
"path": [
"p1"
],
"count": 6,
"spacing": 20
}
}
]
}
+2 -1
View File
@@ -1,4 +1,5 @@
# The shell cases that fail today, one a line: `<case> <why it fails today>`. Sorted. The kernel
# rig gate (.github/workflows/kernel-rig.yml) fails on a case that fails and is not listed here,
# and on a listed case that passes: a fix removes its line in the same pull request.
# Baseline: not seeded yet; seeded from a develop run after the SMLib pin bump.
# Baseline: 45f69c0e5 with SMLib 60b1c6a, aarch64 Linux.
cov-replace-face-step-onto-the-higher-face not supported yet: SMLib's offset of faces refuses (Unsupported) a move that closes a neighbouring face (the step wall) to nothing
@@ -0,0 +1,22 @@
{
"sources": [],
"what": "the lower top of a stepped block replaced by the plane of the higher top: the step wall closes up and the tops become one face",
"source": "analytic",
"method": "stepped block (x 0..20 to z=20, x 20..40 to z=10); the lower top goes to z=20: a 40x30x20 block, V = 24000, A = 2(1200+800+600), the coplanar tops one face: 6 faces",
"body_count": 1,
"faces": 6,
"volume_mm3": 24000.0,
"area_mm2": 5200.0,
"bbox": {
"min": [
0,
0,
0
],
"max": [
40,
30,
20
]
}
}
@@ -0,0 +1,39 @@
{
"commands": [
{
"command": "solid.box",
"params": {
"length": 40,
"width": 30,
"height": 10,
"body_name": "Block"
}
},
{
"command": "solid.box",
"params": {
"length": 20,
"width": 30,
"height": 20,
"operation": "join"
}
},
{
"command": "solid.replace_face",
"params": {
"faces": [
[
30,
15,
10
]
],
"target_face": [
10,
15,
20
]
}
}
]
}
@@ -0,0 +1,22 @@
{
"sources": [],
"what": "a block's top face replaced by the plane z=15",
"source": "analytic",
"method": "the top moves from z=10 to 15: a 40x30x15 block, V = 18000, A = 2(1200 + 600 + 450)",
"body_count": 1,
"faces": 6,
"volume_mm3": 18000.0,
"area_mm2": 4500.0,
"bbox": {
"min": [
0,
0,
0
],
"max": [
40,
30,
15
]
}
}
@@ -0,0 +1,37 @@
{
"commands": [
{
"command": "solid.box",
"params": {
"length": 40,
"width": 30,
"height": 10,
"body_name": "Block"
}
},
{
"command": "solid.replace_face",
"params": {
"faces": [
[
20,
15,
10
]
],
"target": {
"origin": [
0,
0,
15
],
"normal": [
0,
0,
1
]
}
}
}
]
}
@@ -0,0 +1,21 @@
{
"sources": [],
"what": "the bounding box of a sphere r10 at (5,5,5): a curved body's exact extremes, not its mesh's",
"source": "analytic",
"method": "the sphere spans 5 +- 10 on each axis: the box (-5,-5,-5)-(15,15,15) = 20^3 = 8000; with the sphere kept: V = 8000 + 4/3 pi 1000; faces 6 + 1",
"body_count": 2,
"faces": 7,
"volume_mm3": 12188.79020478639,
"bbox": {
"min": [
-5,
-5,
-5
],
"max": [
15,
15,
15
]
}
}
@@ -0,0 +1,25 @@
{
"commands": [
{
"command": "solid.sphere",
"params": {
"radius": 10,
"center": [
5,
5,
5
],
"body_name": "Ball"
}
},
{
"command": "solid.bounding_solid",
"params": {
"bodies": [
"Ball"
],
"body_name": "Bound"
}
}
]
}
@@ -0,0 +1,20 @@
{
"sources": [],
"what": "the bounding box of two boxes (0..10 cube, 20..25 x 0..5 x 0..5) with a 2 mm margin",
"source": "analytic",
"method": "the boxes span (0,0,0)-(25,10,10); with 2 mm: (-2,-2,-2)-(27,12,12) = 29x14x14 = 5684; with both boxes kept: V = 1000 + 125 + 5684",
"body_count": 3,
"volume_mm3": 6809,
"bbox": {
"min": [
-2,
-2,
-2
],
"max": [
27,
12,
12
]
}
}
@@ -0,0 +1,34 @@
{
"commands": [
{
"command": "solid.box",
"params": {
"length": 10,
"width": 10,
"height": 10,
"body_name": "A"
}
},
{
"command": "solid.box",
"params": {
"length": 5,
"width": 5,
"height": 5,
"corner": [
20,
0,
0
],
"body_name": "B"
}
},
{
"command": "solid.bounding_solid",
"params": {
"margin": 2,
"body_name": "Bound"
}
}
]
}
@@ -0,0 +1,26 @@
{
"sources": [],
"what": "a sphere r10 scaled non-uniformly (1, 2, 0.5) into an ellipsoid",
"source": "analytic",
"method": "ellipsoid of semi-axes 10, 20, 5: V = 4/3 pi abc = 4/3 pi 1000 (the factors multiply to 1: the sphere's volume); bbox +-10, +-20, +-5; one closed face",
"body_count": 1,
"faces": 1,
"volume_mm3": 4188.790204786391,
"center_of_mass": [
0,
0,
0
],
"bbox": {
"min": [
-10,
-20,
-5
],
"max": [
10,
20,
5
]
}
}
@@ -0,0 +1,24 @@
{
"commands": [
{
"command": "solid.sphere",
"params": {
"radius": 10,
"body_name": "Ball"
}
},
{
"command": "solid.scale",
"params": {
"bodies": [
"Ball"
],
"factors": [
1,
2,
0.5
]
}
}
]
}
@@ -0,0 +1,27 @@
{
"sources": [],
"what": "a 10 mm cube scaled 2x about its far corner (10,10,10)",
"source": "analytic",
"method": "p -> o + 2(p - o) with o = (10,10,10): the corner 0 goes to -10, 10 stays: a 20 mm cube from -10 to 10; V = 8000, A = 6*400",
"body_count": 1,
"faces": 6,
"volume_mm3": 8000.0,
"area_mm2": 2400.0,
"center_of_mass": [
0,
0,
0
],
"bbox": {
"min": [
-10,
-10,
-10
],
"max": [
10,
10,
10
]
}
}
@@ -0,0 +1,27 @@
{
"commands": [
{
"command": "solid.box",
"params": {
"length": 10,
"width": 10,
"height": 10,
"body_name": "Block"
}
},
{
"command": "solid.scale",
"params": {
"bodies": [
"Block"
],
"factor": 2,
"origin": [
10,
10,
10
]
}
}
]
}
@@ -0,0 +1,8 @@
{
"sources": [],
"what": "a scale factor of 0 flattens the body to a sheet: refused",
"source": "analytic",
"method": "a zero factor maps the cube onto a plane: no solid, a clean refusal",
"outcome": "refused",
"refusal": "scale factors must be positive"
}
@@ -0,0 +1,26 @@
{
"commands": [
{
"command": "solid.box",
"params": {
"length": 10,
"width": 10,
"height": 10,
"body_name": "Block"
}
},
{
"command": "solid.scale",
"params": {
"bodies": [
"Block"
],
"factors": [
1,
0,
1
]
}
}
]
}