1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-07 07:16:36 +02:00

add triangulate_tri_bisectors_demo

This commit is contained in:
Justin Lin
2020-02-23 15:51:36 +08:00
parent 94bb5ee229
commit 2bc5bb863a

View File

@@ -0,0 +1,14 @@
use <hull_polyline2d.scad>;
use <triangulate.scad>;
use <shape_starburst.scad>;
use <experimental/tri_bisectors.scad>;
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);
}
}