mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-01 04:20:27 +02:00
deleted
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
use <hull_polyline2d.scad>;
|
||||
use <util/rand.scad>;
|
||||
use <noise/nz_perlin2.scad>;
|
||||
use <contours.scad>;
|
||||
|
||||
seed = rand(0, 256);
|
||||
points = [
|
||||
for(y = [0:.2:10]) [
|
||||
for(x = [0:.2:10]) [x, y, nz_perlin2(x, y, seed)]
|
||||
]
|
||||
];
|
||||
|
||||
|
||||
for(isoline = contours(points, 0.1)) {
|
||||
hull_polyline2d(isoline, width = .1);
|
||||
}
|
||||
|
||||
translate([12, 0])
|
||||
for(isoband = contours(points, [-.2, .2])) {
|
||||
polygon([for(p = isoband) [p[0], p[1]]]);
|
||||
}
|
@@ -1,22 +0,0 @@
|
||||
use <hull_polyline2d.scad>;
|
||||
use <shape_square.scad>;
|
||||
use <voronoi/vrn2_cells_from.scad>;
|
||||
|
||||
xs1 = rands(-20, 20, 15);
|
||||
ys1 = rands(-20, 20, 15);
|
||||
points = [for(i = [0:len(xs1) - 1]) [xs1[i], ys1[i]]];
|
||||
|
||||
cells = vrn2_cells_from(points);
|
||||
for(i = [0:len(points) - 1]) {
|
||||
pt = points[i];
|
||||
cell = cells[i];
|
||||
|
||||
linear_extrude(1)
|
||||
hull_polyline2d(concat(cell, [cell[0]]), width = 1);
|
||||
|
||||
color(rands(0, 1, 3))
|
||||
translate(pt)
|
||||
linear_extrude(2, scale = 0.8)
|
||||
translate(-pt)
|
||||
polygon(cell);
|
||||
}
|
Reference in New Issue
Block a user