1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 17:54:18 +02:00

add mz_get

This commit is contained in:
Justin Lin
2020-02-18 20:41:54 +08:00
parent e924e8b25a
commit 771edcf831

View File

@@ -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]];