Kernel rig: construction cases, an axis on a straight box edge, and a circular edge refused

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jyviko
2026-10-29 17:10:12 -04:00
committed by Irakli Kourtis
parent 5c0db8e825
commit ffd3d5fb18
4 changed files with 87 additions and 0 deletions
@@ -0,0 +1,22 @@
{
"sources": [],
"what": "an axis on the straight top-back edge of a box",
"source": "analytic",
"method": "box 40 x 30 x 20 with a corner at the origin (x 0..40, y 0..30, z 0..20): the edge at y 30, z 20 runs along X: the line through (0,30,20) along X",
"construction": {
"A": {
"axis": {
"through": [
0,
30,
20
],
"dir": [
1,
0,
0
]
}
}
}
}
@@ -0,0 +1,26 @@
{
"commands": [
{
"command": "solid.box",
"params": {
"length": 40,
"width": 30,
"height": 20,
"body_name": "Box"
}
},
{
"command": "construct.axis.edge",
"params": {
"edge": {
"edge": [
20,
30,
20
]
},
"name": "A"
}
}
]
}
@@ -0,0 +1,8 @@
{
"sources": [],
"what": "an axis on a circular edge, which is not straight",
"source": "analytic",
"method": "cylinder r 5, h 10 on (60,0,0) along +Z: its top edge is a circle, no line: refused",
"outcome": "refused",
"refusal": "the edge is not straight"
}
@@ -0,0 +1,31 @@
{
"commands": [
{
"command": "solid.cylinder",
"params": {
"base": [
60,
0,
0
],
"radius": 5,
"height": 10,
"body_name": "Cyl",
"operation": "new"
}
},
{
"command": "construct.axis.edge",
"params": {
"edge": {
"edge": [
65,
0,
10
]
},
"name": "A"
}
}
]
}