1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-07 07:16:36 +02:00

refactor: use coord directly

This commit is contained in:
Justin Lin
2022-04-23 12:17:31 +08:00
parent 4d0c83ddc8
commit 5b6ec4271d

View File

@@ -77,8 +77,7 @@ function wf_not_collapsed_coords(wf, notCollaspedCoords) =
let(eigenstates = wf_eigenstates(wf)) let(eigenstates = wf_eigenstates(wf))
[ [
for(coord = notCollaspedCoords) for(coord = notCollaspedCoords)
let(y = coord.y, x = coord.x) if(len(eigenstates[coord.y][coord.x]) != 1) coord
if(len(eigenstates[y][x]) != 1) [x, y]
]; ];
function collapsing(method) = function collapsing(method) =