1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 01:04:07 +02:00
This commit is contained in:
Justin Lin
2021-04-17 17:57:58 +08:00
parent 9609e8f25f
commit bbc0705602
3 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
use <experimental/tri_delaunay.scad>;
use <experimental/tri_delaunay2voronoi.scad>;
use <experimental/tri_delaunay_voronoi.scad>;
use <hull_polyline2d.scad>;
points = [for(i = [0:20]) rands(-100, 100, 2)];
@@ -13,7 +13,7 @@ for(p = points) {
%draw(tri_delaunay(points));
d = tri_delaunay(points, ret = "DELAUNAY");
#draw(tri_delaunay2voronoi(d));
#draw(tri_delaunay_voronoi(d));
module draw(pointsOfTriangles) {
for(t = pointsOfTriangles) {

View File

@@ -1,9 +1,9 @@
use <experimental/_impl/_tri_delaunay2voronoi_impl.scad>;
use <experimental/_impl/_tri_delaunay_voronoi_impl.scad>;
use <util/map/hashmap.scad>;
use <util/map/hashmap_keys.scad>;
use <util/map/hashmap_get.scad>;
function tri_delaunay2voronoi(d) =
function tri_delaunay_voronoi(d) =
let(
coords = delaunay_coords(d),
coords_leng = len(coords),