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

del unnecessary param

This commit is contained in:
Justin Lin
2022-04-21 21:01:14 +08:00
parent f84f7d77f9
commit b6f23978ce

View File

@@ -86,16 +86,11 @@ function _replaceStatesAt(wf, x, y, states) =
m_replace(wf_eigenstates(wf), x, y, states)
];
function wf_not_collapsed_coords(wf, notCollaspedCoords) =
function wf_not_collapsed_coords(wf) =
let(eigenstates = wf_eigenstates(wf), we = wf_width(wf) - 1, he = wf_height(wf) - 1, rx = [0:we])
is_undef(notCollaspedCoords) ?
[
[
for(y = [0:he], x = rx)
if(len(eigenstates[y][x]) != 1) [x, y]
] :
[
for(coord = notCollaspedCoords)
if(len(eigenstates[coord.y][coord.x]) != 1) coord
];
function wf_coord_weights_min_entropy(wf, notCollaspedCoords) =