1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 04:20:27 +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))
[
for(coord = notCollaspedCoords)
let(y = coord.y, x = coord.x)
if(len(eigenstates[y][x]) != 1) [x, y]
if(len(eigenstates[coord.y][coord.x]) != 1) coord
];
function collapsing(method) =