mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-08 15:56:42 +02:00
rename
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
use <../../util/rand.scad>;
|
use <../../util/rand.scad>;
|
||||||
|
|
||||||
function assoc_lookup(array, key) =
|
function _assoc_lookup(array, key) =
|
||||||
let(idx = search([key], array)[0])
|
let(idx = search([key], array)[0])
|
||||||
array[idx][1];
|
array[idx][1];
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ function _derive_p(base, rules, rules_pr, n, i = 0) =
|
|||||||
|
|
||||||
function _derive1(base, rules) = _join([
|
function _derive1(base, rules) = _join([
|
||||||
for(c = base)
|
for(c = base)
|
||||||
let(v = assoc_lookup(rules, c))
|
let(v = _assoc_lookup(rules, c))
|
||||||
is_undef(v) ? c : v
|
is_undef(v) ? c : v
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user