mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-10 08:44:20 +02:00
rename
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use <hull_polyline2d.scad>;
|
||||
use <shape_square.scad>;
|
||||
use <experimental/voronoi_cells.scad>;
|
||||
use <experimental/voronoi2d_cells.scad>;
|
||||
|
||||
xs1 = rands(-20, 20, 15);
|
||||
ys1 = rands(-20, 20, 15);
|
||||
@@ -16,7 +16,7 @@ function default_region_size(points) =
|
||||
size = default_region_size(points);
|
||||
region_shape = shape_square(size, corner_r = size / 10);
|
||||
|
||||
cells = voronoi_cells(points, region_shape);
|
||||
cells = voronoi2d_cells(points, region_shape);
|
||||
for(i = [0:len(points) - 1]) {
|
||||
pt = points[i];
|
||||
cell = cells[i];
|
@@ -1,7 +1,7 @@
|
||||
use <experimental/_impl/_voronoi_cells_impl.scad>;
|
||||
use <experimental/_impl/_voronoi2d_cells_impl.scad>;
|
||||
use <experimental/convex_intersection_for.scad>;
|
||||
|
||||
function voronoi_cells(points, region_shape) =
|
||||
function voronoi2d_cells(points, region_shape) =
|
||||
let(
|
||||
size = _default_region_size(points),
|
||||
shape = is_undef(region_shape) ? shape_square(size) : region_shape,
|
Reference in New Issue
Block a user