1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-29 17:30:11 +02:00

add tri_delaunay demo

This commit is contained in:
Justin Lin
2020-02-25 15:57:35 +08:00
parent 906de42f7f
commit 1521152c50

View File

@@ -0,0 +1,16 @@
use <hull_polyline2d.scad>;
use <experimental/tri_delaunay.scad>;
points=[for(i = [0:50]) rands(-20, 20, 2)];
for(tri = tri_delaunay(points)) {
hull_polyline2d(
[points[tri[0]], points[tri[1]], points[tri[2]], points[tri[0]]], width = .2
);
}
color("red")
for(point = points) {
translate(point)
circle(.5);
}