diff --git a/src/experimental/mz_get.scad b/src/experimental/mz_get.scad new file mode 100644 index 00000000..92149910 --- /dev/null +++ b/src/experimental/mz_get.scad @@ -0,0 +1,9 @@ +function mz_get(block, query) = + let( + i = search(query, [ + ["x", 0], + ["y", 1], + ["w", 2] + ])[0] + ) + i != 2 ? block[i] : ["NO_WALL", "UPPER_WALL", "RIGHT_WALL", "UPPER_RIGHT_WALL"][block[i]]; \ No newline at end of file