diff --git a/examples/voronoi/voronoi_crystallization.scad b/examples/voronoi/voronoi_crystallization.scad index 20129d45..552a0964 100644 --- a/examples/voronoi/voronoi_crystallization.scad +++ b/examples/voronoi/voronoi_crystallization.scad @@ -1,4 +1,4 @@ -use ; +use ; grid_w = 5; spacing = 0.2; @@ -108,7 +108,7 @@ levels = [ ]; size = [len(levels[0]), len(levels)]; -cells = vrn2_space_cells(size, grid_w); +cells = vrn2_cells_space(size, grid_w); for(cell = cells) { level = levels[size[1] - cell[0][1]][cell[0][0]]; diff --git a/examples/voronoi/voronoi_torus.scad b/examples/voronoi/voronoi_torus.scad index 441aba34..fe1ee269 100644 --- a/examples/voronoi/voronoi_torus.scad +++ b/examples/voronoi/voronoi_torus.scad @@ -1,10 +1,10 @@ -use ; +use ; use ; use ; size = [40, 80]; grid_w = 5; -cells = vrn2_space_cells(size, grid_w); +cells = vrn2_cells_space(size, grid_w); $fn = 4; diff --git a/src/voronoi/vrn2_space_cells.scad b/src/voronoi/vrn2_cells_space.scad similarity index 95% rename from src/voronoi/vrn2_space_cells.scad rename to src/voronoi/vrn2_cells_space.scad index 563306fb..6101ebbe 100644 --- a/src/voronoi/vrn2_space_cells.scad +++ b/src/voronoi/vrn2_cells_space.scad @@ -2,7 +2,7 @@ use <_impl/_vrn2_space_cells_impl.scad>; use <_impl/_convex_intersection_for.scad>; use <../shape_square.scad>; -function vrn2_space_cells(size, grid_w, seed) = +function vrn2_cells_space(size, grid_w, seed) = let( sd = is_undef(seed) ? rands(0, 255, 1)[0] : seed, region_size = grid_w * 3,