mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-21 22:05:27 +02:00
refactor
This commit is contained in:
@@ -19,10 +19,9 @@ module vrn3_space(size, grid_w, seed, spacing = 1) {
|
|||||||
nx = fcord.x + x,
|
nx = fcord.x + x,
|
||||||
ny = fcord.y + y,
|
ny = fcord.y + y,
|
||||||
nz = fcord.z + z,
|
nz = fcord.z + z,
|
||||||
sd_base = abs(nx + ny * grid_w + nz * grid_w * grid_w),
|
sd_base = abs(nx + ny * grid_w + nz * grid_w * grid_w)
|
||||||
sds = rands(0.1, 0.9, 3, seed_value = seed + sd_base)
|
|
||||||
)
|
)
|
||||||
([nx, ny, nz] + sds) * grid_w
|
([nx, ny, nz] + rands(0.1, 0.9, 3, seed_value = seed + sd_base)) * grid_w
|
||||||
];
|
];
|
||||||
|
|
||||||
space_size = grid_w * 3;
|
space_size = grid_w * 3;
|
||||||
|
Reference in New Issue
Block a user