1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-05 22:37:35 +02:00
This commit is contained in:
Justin Lin
2022-05-14 12:06:56 +08:00
parent df4b2c702d
commit 91b4b19ef3

View File

@@ -27,7 +27,7 @@ function tri_delaunay_voronoi(d) =
i_rts = [ i_rts = [
for(tri = tris) for(tri = tris)
let(a = tri[0], b = tri[1], c = tri[2]) let(a = tri[0], b = tri[1], c = tri[2])
each [[a, [b, c, a]], [b, [c, a, b]], [c, tri]] each [[a, [b, c, a]], [b, [c, a, b]], [c, [a, b, c]]]
], ],
connectedTris = [ connectedTris = [
for(i = [0:coords_leng - 1]) for(i = [0:coords_leng - 1])
@@ -41,7 +41,7 @@ function tri_delaunay_voronoi(d) =
b = tri[1], b = tri[1],
c = tri[2] c = tri[2]
) )
each [[[b, c, a], i], [[c, a, b], i], [tri, i]] each [[[b, c, a], i], [[c, a, b], i], [[a, b, c], i]]
]), ]),
cells = [ cells = [
for(i = [4:coords_leng - 1]) for(i = [4:coords_leng - 1])