diff --git a/tests/kernel-cases/construction/cov-point-two-edges-meeting/expected.json b/tests/kernel-cases/construction/cov-point-two-edges-meeting/expected.json new file mode 100644 index 000000000..05654a3f5 --- /dev/null +++ b/tests/kernel-cases/construction/cov-point-two-edges-meeting/expected.json @@ -0,0 +1,15 @@ +{ + "sources": [], + "what": "where two box edges meet", + "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 0 along Y meet at (40,0,0)", + "construction": { + "P": { + "point": [ + 40, + 0, + 0 + ] + } + } +} diff --git a/tests/kernel-cases/construction/cov-point-two-edges-meeting/recipe.json b/tests/kernel-cases/construction/cov-point-two-edges-meeting/recipe.json new file mode 100644 index 000000000..f20ad54c8 --- /dev/null +++ b/tests/kernel-cases/construction/cov-point-two-edges-meeting/recipe.json @@ -0,0 +1,33 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 40, + "width": 30, + "height": 20, + "body_name": "Box" + } + }, + { + "command": "construct.point.two_edges", + "params": { + "a": { + "edge": [ + 20, + 0, + 0 + ] + }, + "b": { + "edge": [ + 40, + 15, + 0 + ] + }, + "name": "P" + } + } + ] +} diff --git a/tests/kernel-cases/construction/cov-point-two-edges-refuses-parallel-edges/expected.json b/tests/kernel-cases/construction/cov-point-two-edges-refuses-parallel-edges/expected.json new file mode 100644 index 000000000..c24f3e9dc --- /dev/null +++ b/tests/kernel-cases/construction/cov-point-two-edges-refuses-parallel-edges/expected.json @@ -0,0 +1,8 @@ +{ + "sources": [], + "what": "two parallel 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): the edges y 0, z 0 and y 30, z 0 both run along X: they never meet nor have one closest point: refused", + "outcome": "refused", + "refusal": "the edges are parallel" +} diff --git a/tests/kernel-cases/construction/cov-point-two-edges-refuses-parallel-edges/recipe.json b/tests/kernel-cases/construction/cov-point-two-edges-refuses-parallel-edges/recipe.json new file mode 100644 index 000000000..bae734072 --- /dev/null +++ b/tests/kernel-cases/construction/cov-point-two-edges-refuses-parallel-edges/recipe.json @@ -0,0 +1,33 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 40, + "width": 30, + "height": 20, + "body_name": "Box" + } + }, + { + "command": "construct.point.two_edges", + "params": { + "a": { + "edge": [ + 20, + 0, + 0 + ] + }, + "b": { + "edge": [ + 20, + 30, + 0 + ] + }, + "name": "P" + } + } + ] +} diff --git a/tests/kernel-cases/construction/cov-point-two-edges-skew/expected.json b/tests/kernel-cases/construction/cov-point-two-edges-skew/expected.json new file mode 100644 index 000000000..a093eabec --- /dev/null +++ b/tests/kernel-cases/construction/cov-point-two-edges-skew/expected.json @@ -0,0 +1,15 @@ +{ + "sources": [], + "what": "where two skew box edges come closest", + "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 come closest at (40,0,0) and (40,0,20): the point halfway between, (40,0,10)", + "construction": { + "P": { + "point": [ + 40, + 0, + 10 + ] + } + } +} diff --git a/tests/kernel-cases/construction/cov-point-two-edges-skew/recipe.json b/tests/kernel-cases/construction/cov-point-two-edges-skew/recipe.json new file mode 100644 index 000000000..a49a060e7 --- /dev/null +++ b/tests/kernel-cases/construction/cov-point-two-edges-skew/recipe.json @@ -0,0 +1,33 @@ +{ + "commands": [ + { + "command": "solid.box", + "params": { + "length": 40, + "width": 30, + "height": 20, + "body_name": "Box" + } + }, + { + "command": "construct.point.two_edges", + "params": { + "a": { + "edge": [ + 20, + 0, + 0 + ] + }, + "b": { + "edge": [ + 40, + 15, + 20 + ] + }, + "name": "P" + } + } + ] +}