mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-03 10:35:58 +00:00
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:
@@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user