mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-06 03:51:08 +00:00
Kernel rig: construction cases, the centre of a circular edge, sphere, torus and sketch arc, and a flat face refused
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"sources": [],
|
||||
"what": "the centre of a cylinder's top edge",
|
||||
"source": "analytic",
|
||||
"method": "cylinder r 5, h 10 on (60,0,0) along +Z: its top edge is the circle about (60,0,10)",
|
||||
"construction": {
|
||||
"C": {
|
||||
"point": [
|
||||
60,
|
||||
0,
|
||||
10
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"command": "solid.cylinder",
|
||||
"params": {
|
||||
"base": [
|
||||
60,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"radius": 5,
|
||||
"height": 10,
|
||||
"body_name": "Cyl",
|
||||
"operation": "new"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "construct.point.center",
|
||||
"params": {
|
||||
"of": {
|
||||
"edge": [
|
||||
65,
|
||||
0,
|
||||
10
|
||||
]
|
||||
},
|
||||
"name": "C"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"sources": [],
|
||||
"what": "the centre of a sketch arc",
|
||||
"source": "analytic",
|
||||
"method": "the arc r 10 about the sketch origin on XY",
|
||||
"construction": {
|
||||
"C": {
|
||||
"point": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"command": "sketch.create",
|
||||
"params": {
|
||||
"plane": "XY",
|
||||
"name": "Path"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "sketch.arc.center_point",
|
||||
"params": {
|
||||
"center": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"start": [
|
||||
10,
|
||||
0
|
||||
],
|
||||
"end": [
|
||||
0,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "sketch.finish",
|
||||
"params": {}
|
||||
},
|
||||
{
|
||||
"command": "construct.point.center",
|
||||
"params": {
|
||||
"of": {
|
||||
"sketch": "Path",
|
||||
"curve": "a1"
|
||||
},
|
||||
"name": "C"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"sources": [],
|
||||
"what": "the centre of a sphere",
|
||||
"source": "analytic",
|
||||
"method": "sphere r 5 on (0,0,60)",
|
||||
"construction": {
|
||||
"C": {
|
||||
"point": [
|
||||
0,
|
||||
0,
|
||||
60
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"command": "solid.sphere",
|
||||
"params": {
|
||||
"center": [
|
||||
0,
|
||||
0,
|
||||
60
|
||||
],
|
||||
"radius": 5,
|
||||
"body_name": "Ball",
|
||||
"operation": "new"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "construct.point.center",
|
||||
"params": {
|
||||
"of": {
|
||||
"face": [
|
||||
5,
|
||||
0,
|
||||
60
|
||||
]
|
||||
},
|
||||
"name": "C"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"sources": [],
|
||||
"what": "the centre of a torus",
|
||||
"source": "analytic",
|
||||
"method": "torus major 10, minor 2 on (0,60,0)",
|
||||
"construction": {
|
||||
"C": {
|
||||
"point": [
|
||||
0,
|
||||
60,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"command": "solid.torus",
|
||||
"params": {
|
||||
"center": [
|
||||
0,
|
||||
60,
|
||||
0
|
||||
],
|
||||
"major": 10,
|
||||
"minor": 2,
|
||||
"body_name": "Ring",
|
||||
"operation": "new"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "construct.point.center",
|
||||
"params": {
|
||||
"of": {
|
||||
"face": [
|
||||
12,
|
||||
60,
|
||||
0
|
||||
]
|
||||
},
|
||||
"name": "C"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"sources": [],
|
||||
"what": "the centre of a flat face",
|
||||
"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 top is a plane, not a sphere or torus: refused",
|
||||
"outcome": "refused",
|
||||
"refusal": "the face is not a sphere or torus"
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"command": "solid.box",
|
||||
"params": {
|
||||
"length": 40,
|
||||
"width": 30,
|
||||
"height": 20,
|
||||
"body_name": "Box"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "construct.point.center",
|
||||
"params": {
|
||||
"of": {
|
||||
"face": [
|
||||
20,
|
||||
15,
|
||||
20
|
||||
]
|
||||
},
|
||||
"name": "C"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user