Wave 371/509: Kernel rig: construction cases, the centre of a circular edge, sphere, torus and sketch arc, and a flat face refused (and 3 more)
4 commits, squashed; the originals stay reachable from tag archive/merge-main-develop. -02ee36ce9jyviko: Kernel rig: construction cases, the plane through parallel and meeting edges, and skew edges refused -fbe540b40jyviko: Kernel rig: construction cases, a point along a sketch line and arc, and one past the end held at the end -a0bd94f4djyviko: Kernel rig: construction cases, the centre of a circular edge, sphere, torus and sketch arc, and a flat face refused -8a8960f13jyviko: Kernel rig: construction cases, where an edge crosses a square and a slanted plane, and a parallel edge refused Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ
This commit is contained in:
1 parent
992b243cb6
commit
2aec675349
28 files changed
+707
No files matched your search
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"sources": [],
|
||||
"what": "the plane through two box edges that meet at a corner",
|
||||
"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 edges y 0, z 20 (along X) and x 40, z 20 (along Y) meet at (40,0,20): the top, z = 20",
|
||||
"construction": {
|
||||
"E": {
|
||||
"plane": {
|
||||
"through": [
|
||||
1,
|
||||
1,
|
||||
20
|
||||
],
|
||||
"normal": [
|
||||
0,
|
||||
0,
|
||||
1
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"command": "solid.box",
|
||||
"params": {
|
||||
"length": 40,
|
||||
"width": 30,
|
||||
"height": 20,
|
||||
"body_name": "Box"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "construct.plane.two_edges",
|
||||
"params": {
|
||||
"a": {
|
||||
"edge": [
|
||||
20,
|
||||
0,
|
||||
20
|
||||
]
|
||||
},
|
||||
"b": {
|
||||
"edge": [
|
||||
40,
|
||||
15,
|
||||
20
|
||||
]
|
||||
},
|
||||
"name": "E"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"sources": [],
|
||||
"what": "the plane through a box's bottom-front and top-back edges",
|
||||
"source": "analytic",
|
||||
"method": "box 40 x 30 x 20 with a corner at the origin (x 0..40, y 0..30, z 0..20): both run along X, through (0,0,0) and (0,30,20): normal X x (0,30,20) = (0,-20,30): the plane 3z = 2y, normal (0,-2,3)",
|
||||
"construction": {
|
||||
"E": {
|
||||
"plane": {
|
||||
"through": [
|
||||
5,
|
||||
30,
|
||||
20
|
||||
],
|
||||
"normal": [
|
||||
0,
|
||||
-2,
|
||||
3
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"command": "solid.box",
|
||||
"params": {
|
||||
"length": 40,
|
||||
"width": 30,
|
||||
"height": 20,
|
||||
"body_name": "Box"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "construct.plane.two_edges",
|
||||
"params": {
|
||||
"a": {
|
||||
"edge": [
|
||||
20,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"b": {
|
||||
"edge": [
|
||||
20,
|
||||
30,
|
||||
20
|
||||
]
|
||||
},
|
||||
"name": "E"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"sources": [],
|
||||
"what": "a plane through two skew box edges",
|
||||
"source": "analytic",
|
||||
"method": "box 40 x 30 x 20 with a corner at the origin (x 0..40, y 0..30, z 0..20): y 0, z 0 along X and x 40, z 20 along Y never meet and are not parallel: no plane holds both: refused",
|
||||
"outcome": "refused",
|
||||
"refusal": "the edges are not in one plane"
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"command": "solid.box",
|
||||
"params": {
|
||||
"length": 40,
|
||||
"width": 30,
|
||||
"height": 20,
|
||||
"body_name": "Box"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "construct.plane.two_edges",
|
||||
"params": {
|
||||
"a": {
|
||||
"edge": [
|
||||
20,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"b": {
|
||||
"edge": [
|
||||
40,
|
||||
15,
|
||||
20
|
||||
]
|
||||
},
|
||||
"name": "E"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"sources": [],
|
||||
"what": "a point a third along a quarter-circle arc",
|
||||
"source": "analytic",
|
||||
"method": "the arc r 10 about the origin from (10,0) to (0,10) counter-clockwise: a third of its length is 30 deg round: (10 cos 30, 10 sin 30, 0) = (8.6603, 5, 0)",
|
||||
"construction": {
|
||||
"P": {
|
||||
"point": [
|
||||
8.660254037844386,
|
||||
5,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"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.along_path",
|
||||
"params": {
|
||||
"path": {
|
||||
"sketch": "Path",
|
||||
"curve": "a1"
|
||||
},
|
||||
"t": "1/3",
|
||||
"name": "P"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"sources": [],
|
||||
"what": "a point at t 1.5, past the end of a sketch line",
|
||||
"source": "analytic",
|
||||
"method": "t runs 0..1 along the path; a point along it can go no further than its end: (40,0,0)",
|
||||
"construction": {
|
||||
"P": {
|
||||
"point": [
|
||||
40,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"command": "sketch.create",
|
||||
"params": {
|
||||
"plane": "XY",
|
||||
"name": "Path"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "sketch.line",
|
||||
"params": {
|
||||
"points": [
|
||||
[
|
||||
0,
|
||||
0
|
||||
],
|
||||
[
|
||||
40,
|
||||
0
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "sketch.finish",
|
||||
"params": {}
|
||||
},
|
||||
{
|
||||
"command": "construct.point.along_path",
|
||||
"params": {
|
||||
"path": {
|
||||
"sketch": "Path",
|
||||
"curve": "l1"
|
||||
},
|
||||
"t": 1.5,
|
||||
"name": "P"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"sources": [],
|
||||
"what": "a point a quarter along a sketch line",
|
||||
"source": "analytic",
|
||||
"method": "the line l1 from (0,0,0) to (40,0,0): t 0.25 is (10,0,0)",
|
||||
"construction": {
|
||||
"P": {
|
||||
"point": [
|
||||
10,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"command": "sketch.create",
|
||||
"params": {
|
||||
"plane": "XY",
|
||||
"name": "Path"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "sketch.line",
|
||||
"params": {
|
||||
"points": [
|
||||
[
|
||||
0,
|
||||
0
|
||||
],
|
||||
[
|
||||
40,
|
||||
0
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "sketch.finish",
|
||||
"params": {}
|
||||
},
|
||||
{
|
||||
"command": "construct.point.along_path",
|
||||
"params": {
|
||||
"path": {
|
||||
"sketch": "Path",
|
||||
"curve": "l1"
|
||||
},
|
||||
"t": 0.25,
|
||||
"name": "P"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"sources": [],
|
||||
"what": "a box edge parallel to the plane",
|
||||
"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 y 0, z 0 along X never crosses y = 10: refused",
|
||||
"outcome": "refused",
|
||||
"refusal": "the edge is parallel to the plane"
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"command": "solid.box",
|
||||
"params": {
|
||||
"length": 40,
|
||||
"width": 30,
|
||||
"height": 20,
|
||||
"body_name": "Box"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "construct.point.edge_plane",
|
||||
"params": {
|
||||
"edge": {
|
||||
"edge": [
|
||||
20,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"plane": {
|
||||
"plane": {
|
||||
"origin": [
|
||||
0,
|
||||
10,
|
||||
0
|
||||
],
|
||||
"normal": [
|
||||
0,
|
||||
1,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "P"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"sources": [],
|
||||
"what": "where a box's vertical edge crosses a slanted plane",
|
||||
"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 x 0, y 0 along Z meets x + z = 15 at (0,0,15)",
|
||||
"construction": {
|
||||
"P": {
|
||||
"point": [
|
||||
0,
|
||||
0,
|
||||
15
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"command": "solid.box",
|
||||
"params": {
|
||||
"length": 40,
|
||||
"width": 30,
|
||||
"height": 20,
|
||||
"body_name": "Box"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "construct.point.edge_plane",
|
||||
"params": {
|
||||
"edge": {
|
||||
"edge": [
|
||||
0,
|
||||
0,
|
||||
10
|
||||
]
|
||||
},
|
||||
"plane": {
|
||||
"plane": {
|
||||
"origin": [
|
||||
0,
|
||||
0,
|
||||
15
|
||||
],
|
||||
"normal": [
|
||||
1,
|
||||
0,
|
||||
1
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "P"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"sources": [],
|
||||
"what": "where a box edge crosses a plane square to it",
|
||||
"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 y 0, z 0 along X meets x = 12 at (12,0,0)",
|
||||
"construction": {
|
||||
"P": {
|
||||
"point": [
|
||||
12,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"commands": [
|
||||
{
|
||||
"command": "solid.box",
|
||||
"params": {
|
||||
"length": 40,
|
||||
"width": 30,
|
||||
"height": 20,
|
||||
"body_name": "Box"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "construct.point.edge_plane",
|
||||
"params": {
|
||||
"edge": {
|
||||
"edge": [
|
||||
20,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"plane": {
|
||||
"plane": {
|
||||
"origin": [
|
||||
12,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"normal": [
|
||||
1,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "P"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user