mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-05 14:27:45 +02:00
optimization
This commit is contained in:
@@ -45,7 +45,11 @@ function tri_delaunay_voronoi(d) =
|
|||||||
]),
|
]),
|
||||||
cells = [
|
cells = [
|
||||||
for(i = [4:coords_leng - 1])
|
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]]]
|
||||||
|
];
|
||||||
|
Reference in New Issue
Block a user