mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-03 02:25:55 +00:00
Kernel rig: inspect cases, the gap between two spheres, their lens where they overlap, none past the clearance
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"sources": [],
|
||||
"what": "the gap between two spheres",
|
||||
"source": "analytic",
|
||||
"method": "spheres r 5 on (0,0,0) and (20,0,0): 20 - 5 - 5 = 10 apart, from (5,0,0) to (15,0,0)",
|
||||
"results": [
|
||||
{
|
||||
"command": 2,
|
||||
"pointer": "/overlaps",
|
||||
"value": []
|
||||
},
|
||||
{
|
||||
"command": 2,
|
||||
"pointer": "/near/0/a",
|
||||
"value": "A"
|
||||
},
|
||||
{
|
||||
"command": 2,
|
||||
"pointer": "/near/0/b",
|
||||
"value": "B"
|
||||
},
|
||||
{
|
||||
"command": 2,
|
||||
"pointer": "/near/0/distance_mm",
|
||||
"value": 10.0
|
||||
},
|
||||
{
|
||||
"command": 2,
|
||||
"pointer": "/near/0/from",
|
||||
"value": [
|
||||
5,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"command": 2,
|
||||
"pointer": "/near/0/to",
|
||||
"value": [
|
||||
15,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"command": "solid.sphere",
|
||||
"params": {
|
||||
"center": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"radius": 5,
|
||||
"body_name": "A",
|
||||
"operation": "new"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "solid.sphere",
|
||||
"params": {
|
||||
"center": [
|
||||
20,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"radius": 5,
|
||||
"body_name": "B",
|
||||
"operation": "new"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "inspect.clearance",
|
||||
"params": {
|
||||
"clearance": 15
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"sources": [],
|
||||
"what": "the shared volume of two overlapping spheres",
|
||||
"source": "analytic",
|
||||
"method": "spheres r 5 on (0,0,0) and (8,0,0): the lens pi (4r + d)(2r - d)^2 / 12 = pi 28 4 / 12 = 29.3215, centred on (4,0,0)",
|
||||
"results": [
|
||||
{
|
||||
"command": 2,
|
||||
"pointer": "/overlaps/0/volume_mm3",
|
||||
"value": 29.321531433504735
|
||||
},
|
||||
{
|
||||
"command": 2,
|
||||
"pointer": "/overlaps/0/center",
|
||||
"value": [
|
||||
4,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"command": "solid.sphere",
|
||||
"params": {
|
||||
"center": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"radius": 5,
|
||||
"body_name": "A",
|
||||
"operation": "new"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "solid.sphere",
|
||||
"params": {
|
||||
"center": [
|
||||
8,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"radius": 5,
|
||||
"body_name": "B",
|
||||
"operation": "new"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "inspect.clearance",
|
||||
"params": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"sources": [],
|
||||
"what": "two spheres farther apart than the clearance asked",
|
||||
"source": "analytic",
|
||||
"method": "spheres r 5 on (0,0,0) and (20,0,0) are 10 apart; closer than 5 asked: none",
|
||||
"results": [
|
||||
{
|
||||
"command": 2,
|
||||
"pointer": "/overlaps",
|
||||
"value": []
|
||||
},
|
||||
{
|
||||
"command": 2,
|
||||
"pointer": "/near",
|
||||
"value": []
|
||||
}
|
||||
]
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"command": "solid.sphere",
|
||||
"params": {
|
||||
"center": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"radius": 5,
|
||||
"body_name": "A",
|
||||
"operation": "new"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "solid.sphere",
|
||||
"params": {
|
||||
"center": [
|
||||
20,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"radius": 5,
|
||||
"body_name": "B",
|
||||
"operation": "new"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "inspect.clearance",
|
||||
"params": {
|
||||
"clearance": 5
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user