1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 06:08:31 +01:00

optimization

This commit is contained in:
Justin Lin 2022-05-13 21:50:59 +08:00
parent d978128f8f
commit c14b970bee

View File

@ -45,7 +45,11 @@ function tri_delaunay_voronoi(d) =
]),
cells = [
for(i = [4:coords_leng - 1])
reverse(indicesOfCell(connectedTris[i], triIndices)) // counter-clockwise
indicesOfCell(connectedTris[i], triIndices)
]
)
[for(cell = cells) [for(i = cell) vertices[i]]];
[
for(cell = cells)
// counter-clockwise
[for(i = len(cell) - 1; i > -1; i = i - 1) vertices[cell[i]]]
];