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:
14
src/experimental/demo/triangulate_tri_bisectors_demo.scad
Normal file
14
src/experimental/demo/triangulate_tri_bisectors_demo.scad
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user