1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-13 18:24:28 +02:00

update comments

This commit is contained in:
Justin Lin
2021-04-16 18:17:13 +08:00
parent fc64bd31c7
commit 1f7555fcea

View File

@@ -1,9 +1,8 @@
use<experimental/_impl/_tri_delaunay_impl.scad>;
// ret: "TRI_SHAPES", "TRI_INDICES", "DELAUNAY"
// todo: "VORONOI_SHAPES"
function tri_delaunay(points, ret = "TRI_SHAPES") =
let(d = _tri_delaunay(delaunay_init(points), points, len(points)))
ret == "TRI_SHAPES" ? tri_delaunay_shapes(d) :
ret == "TRI_INDICES" ? tri_delaunay_indices(d) :
d; // [coords(list), triangles(hashmap), circles(hashmap)]
d; // "DELAUNAY": [coords(list), triangles(hashmap), circles(hashmap)]