mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 14:18:13 +01:00
optimization
This commit is contained in:
parent
d978128f8f
commit
c14b970bee
@ -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]]]
|
||||||
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user