1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
This commit is contained in:
Justin Lin 2020-06-10 20:17:18 +08:00
parent d9347a1b09
commit a9a31e382f
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
use <voronoi/vrn2_space_cells.scad>; use <voronoi/vrn2_cells_space.scad>;
grid_w = 5; grid_w = 5;
spacing = 0.2; spacing = 0.2;
@ -108,7 +108,7 @@ levels = [
]; ];
size = [len(levels[0]), len(levels)]; size = [len(levels[0]), len(levels)];
cells = vrn2_space_cells(size, grid_w); cells = vrn2_cells_space(size, grid_w);
for(cell = cells) { for(cell = cells) {
level = levels[size[1] - cell[0][1]][cell[0][0]]; level = levels[size[1] - cell[0][1]][cell[0][0]];

View File

@ -1,10 +1,10 @@
use <voronoi/vrn2_space_cells.scad>; use <voronoi/vrn2_cells_space.scad>;
use <hull_polyline3d.scad>; use <hull_polyline3d.scad>;
use <ptf/ptf_torus.scad>; use <ptf/ptf_torus.scad>;
size = [40, 80]; size = [40, 80];
grid_w = 5; grid_w = 5;
cells = vrn2_space_cells(size, grid_w); cells = vrn2_cells_space(size, grid_w);
$fn = 4; $fn = 4;

View File

@ -2,7 +2,7 @@ use <_impl/_vrn2_space_cells_impl.scad>;
use <_impl/_convex_intersection_for.scad>; use <_impl/_convex_intersection_for.scad>;
use <../shape_square.scad>; use <../shape_square.scad>;
function vrn2_space_cells(size, grid_w, seed) = function vrn2_cells_space(size, grid_w, seed) =
let( let(
sd = is_undef(seed) ? rands(0, 255, 1)[0] : seed, sd = is_undef(seed) ? rands(0, 255, 1)[0] : seed,
region_size = grid_w * 3, region_size = grid_w * 3,