From 2bc5bb863a61a0adbc912cd49d1afae5badf07a1 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sun, 23 Feb 2020 15:51:36 +0800 Subject: [PATCH] add triangulate_tri_bisectors_demo --- .../demo/triangulate_tri_bisectors_demo.scad | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/experimental/demo/triangulate_tri_bisectors_demo.scad diff --git a/src/experimental/demo/triangulate_tri_bisectors_demo.scad b/src/experimental/demo/triangulate_tri_bisectors_demo.scad new file mode 100644 index 00000000..e9935577 --- /dev/null +++ b/src/experimental/demo/triangulate_tri_bisectors_demo.scad @@ -0,0 +1,14 @@ +use ; +use ; +use ; +use ; + +shape = shape_starburst(30, 12, 10); +hull_polyline2d(concat(shape, [shape[0]]), width = 1); + +tris = triangulate(shape); +for(tri = tris) { + for(line = tri_bisectors([for(idx = tri) shape[idx]])) { + hull_polyline2d(line, width = 1); + } +} \ No newline at end of file