diff --git a/tests/kernel-cases/construction/cov-point-vertex-box-corner/expected.json b/tests/kernel-cases/construction/cov-point-vertex-box-corner/expected.json new file mode 100644 index 000000000..56d1000fe --- /dev/null +++ b/tests/kernel-cases/construction/cov-point-vertex-box-corner/expected.json @@ -0,0 +1,15 @@ +{ + "sources": [], + "what": "a point on a box's far 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 vertex nearest (39,29,19) is (40,30,20)", + "construction": { + "P": { + "point": [ + 40, + 30, + 20 + ] + } + } +} diff --git a/tests/kernel-cases/construction/cov-point-vertex-box-corner/recipe.json b/tests/kernel-cases/construction/cov-point-vertex-box-corner/recipe.json new file mode 100644 index 000000000..7a209b200 --- /dev/null +++ b/tests/kernel-cases/construction/cov-point-vertex-box-corner/recipe.json @@ -0,0 +1,26 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 40, + "width": 30, + "height": 20, + "body_name": "Box" + } + }, + { + "command": "construct.point.vertex", + "params": { + "point": { + "vertex": [ + 39, + 29, + 19 + ] + }, + "name": "P" + } + } + ] +} diff --git a/tests/kernel-cases/construction/cov-point-vertex-of-a-construction-point/expected.json b/tests/kernel-cases/construction/cov-point-vertex-of-a-construction-point/expected.json new file mode 100644 index 000000000..3c4d9bacc --- /dev/null +++ b/tests/kernel-cases/construction/cov-point-vertex-of-a-construction-point/expected.json @@ -0,0 +1,15 @@ +{ + "sources": [], + "what": "a point on another construction point", + "source": "analytic", + "method": "the point where XY, XZ and YZ meet is the origin; a point on it is too", + "construction": { + "P": { + "point": [ + 0, + 0, + 0 + ] + } + } +} diff --git a/tests/kernel-cases/construction/cov-point-vertex-of-a-construction-point/recipe.json b/tests/kernel-cases/construction/cov-point-vertex-of-a-construction-point/recipe.json new file mode 100644 index 000000000..717ca2223 --- /dev/null +++ b/tests/kernel-cases/construction/cov-point-vertex-of-a-construction-point/recipe.json @@ -0,0 +1,22 @@ +{ + "commands": [ + { + "command": "construct.point.three_planes", + "params": { + "a": "XY", + "b": "XZ", + "c": "YZ", + "name": "Pin" + } + }, + { + "command": "construct.point.vertex", + "params": { + "point": { + "construct_point": "Pin" + }, + "name": "P" + } + } + ] +} diff --git a/tests/kernel-cases/construction/cov-point-vertex-refuses-with-no-body/expected.json b/tests/kernel-cases/construction/cov-point-vertex-refuses-with-no-body/expected.json new file mode 100644 index 000000000..17daa1521 --- /dev/null +++ b/tests/kernel-cases/construction/cov-point-vertex-refuses-with-no-body/expected.json @@ -0,0 +1,8 @@ +{ + "sources": [], + "what": "a point on a vertex where there is no body", + "source": "analytic", + "method": "no body, so no vertex to put it on: refused", + "outcome": "refused", + "refusal": "there is no vertex" +} diff --git a/tests/kernel-cases/construction/cov-point-vertex-refuses-with-no-body/recipe.json b/tests/kernel-cases/construction/cov-point-vertex-refuses-with-no-body/recipe.json new file mode 100644 index 000000000..ee8d56f7e --- /dev/null +++ b/tests/kernel-cases/construction/cov-point-vertex-refuses-with-no-body/recipe.json @@ -0,0 +1,17 @@ +{ + "commands": [ + { + "command": "construct.point.vertex", + "params": { + "point": { + "vertex": [ + 1, + 2, + 3 + ] + }, + "name": "P" + } + } + ] +}