mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-13 10:14:41 +02:00
note
This commit is contained in:
22
undocumented_features/triangulate_demo.scad
Normal file
22
undocumented_features/triangulate_demo.scad
Normal 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]]);
|
||||
|
||||
}
|
@@ -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
|
||||
|
Reference in New Issue
Block a user