1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-18 06:38:14 +01:00

delete demo

This commit is contained in:
Justin Lin 2020-04-07 18:09:38 +08:00
parent fa8da3d0c5
commit d4adb1f3ab

View File

@ -1,24 +0,0 @@
use <noise/nz_worley3s.scad>;
use <util/dedup.scad>;
size = [20, 20, 20];
tile_w = 10;
dist = "euclidean"; // [euclidean, manhattan, chebyshev, border]
seed = 51;
points = [
for(z = [0:size[2] - 1])
for(y = [0:size[1] - 1])
for(x = [0:size[0] - 1])
[x, y, z]
];
cells = nz_worley3s(points, seed, tile_w, dist);
max_dist = max([for(c = cells) c[3]]);
for(i = [0:len(cells) - 1]) {
c = cells[i][3] / max_dist;
color([c, c, c, c])
translate(points[i])
cube(1);
}