1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-13 10:14:41 +02:00
This commit is contained in:
Justin Lin
2019-05-31 08:15:02 +08:00
parent c0902b00cc
commit afd460579e
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
include <triangulate.scad>;
shape = [
[0, 0],
[10, 0],
[12, 5],
[5, 10],
[10, 15],
[0, 20],
[-5, 18],
[-8, 3],
[-4, 10]
];
tris = triangulate(shape);
polygon(shape);
for(tri = tris) {
#offset(-.1)
polygon([for(idx = tri) shape[idx]]);
}

View File

@@ -13,6 +13,9 @@ midpt_smooth
trim_shape
trim_shape_demo.scad
triangulate
triangulate_demo.scad
shape_taiwan: new `dt` parameter
bijection_offset: new `epsilon` parameter