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:
9
src/experimental/mz_get.scad
Normal file
9
src/experimental/mz_get.scad
Normal 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]];
|
Reference in New Issue
Block a user