1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 04:20:27 +02:00

abs is not required

This commit is contained in:
Justin Lin
2022-05-05 20:42:18 +08:00
parent 0ae64dcf6a
commit c7c59f58b5
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ function _neighbors(fcord, seed, grid_w) =
for(z = range, y = range, x = range)
let(
cord = [x, y] + fcord,
sds = rands(0, 1, 2, abs(cord * gwv) + seed)
sds = rands(0, 1, 2, cord * gwv + seed)
)
(cord + sds) * grid_w
];

View File

@@ -6,7 +6,7 @@ function _neighbors(fcord, seed, grid_w) =
for(z = range, y = range, x = range)
let(
cord = [x, y, z] + fcord,
sds = rands(0, 1, 3, abs(cord * gwv) + seed)
sds = rands(0, 1, 3, cord * gwv + seed)
)
(cord + sds) * grid_w
];