Kernel rig: inspect cases, the smallest radius of a fillet, an ellipse and a circular edge, and none on a box

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jyviko
2026-10-29 17:10:20 -04:00
committed by Irakli Kourtis
parent cacc394f91
commit f43a0c7ac6
8 changed files with 169 additions and 0 deletions
@@ -0,0 +1,13 @@
{
"sources": [],
"what": "the smallest radius of a box, which has no curved face",
"source": "analytic",
"method": "box 40 x 30 x 20 with a corner at the origin: every face is flat: no radius (null)",
"results": [
{
"command": 1,
"pointer": "/min_radius",
"value": null
}
]
}
@@ -0,0 +1,18 @@
{
"commands": [
{
"command": "solid.box",
"params": {
"length": 40,
"width": 30,
"height": 20,
"body_name": "Box",
"operation": "new"
}
},
{
"command": "inspect.minimum_radius",
"params": {}
}
]
}
@@ -0,0 +1,13 @@
{
"sources": [],
"what": "the radius of a cylinder's top edge",
"source": "analytic",
"method": "a cylinder r 5 on (60,0,0): its top edge is a circle of r 5",
"results": [
{
"command": 1,
"pointer": "/min_radius",
"value": 5.0
}
]
}
@@ -0,0 +1,30 @@
{
"commands": [
{
"command": "solid.cylinder",
"params": {
"base": [
60,
0,
0
],
"radius": 5,
"height": 10,
"body_name": "Cyl",
"operation": "new"
}
},
{
"command": "inspect.minimum_radius",
"params": {
"edges": [
[
65,
0,
10
]
]
}
}
]
}
@@ -0,0 +1,13 @@
{
"sources": [],
"what": "the smallest radius over every face of a box with one rounded edge",
"source": "analytic",
"method": "box 40 x 30 x 20 with a corner at the origin, its top-front edge (y 0, z 20) rounded r 3: the flat faces have none, the round is a cylinder of r 3: the smallest radius is 3",
"results": [
{
"command": 2,
"pointer": "/min_radius",
"value": 3.0
}
]
}
@@ -0,0 +1,31 @@
{
"commands": [
{
"command": "solid.box",
"params": {
"length": 40,
"width": 30,
"height": 20,
"body_name": "Box",
"operation": "new"
}
},
{
"command": "solid.fillet",
"params": {
"edges": [
[
20,
0,
20
]
],
"radius": 3
}
},
{
"command": "inspect.minimum_radius",
"params": {}
}
]
}
@@ -0,0 +1,13 @@
{
"sources": [],
"what": "the smallest radius of a sketch ellipse",
"source": "analytic",
"method": "ellipse a 10, b 4: tightest at the ends of the major axis, b^2 / a = 1.6, at (+-10, 0)",
"results": [
{
"command": 3,
"pointer": "/min_radius",
"value": 1.6
}
]
}
@@ -0,0 +1,38 @@
{
"commands": [
{
"command": "sketch.create",
"params": {
"plane": "XY",
"name": "S"
}
},
{
"command": "sketch.ellipse",
"params": {
"center": [
0,
0
],
"major": [
10,
0
],
"minor_radius": 4
}
},
{
"command": "sketch.finish",
"params": {}
},
{
"command": "inspect.minimum_radius",
"params": {
"sketch": "S",
"curves": [
"e1"
]
}
}
]
}