mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-18 20:41:18 +02:00
delete variable
This commit is contained in:
@@ -83,10 +83,9 @@ function wf_collapse(wf, x, y) =
|
|||||||
[state, w]
|
[state, w]
|
||||||
],
|
],
|
||||||
totalWeights = _totalWeights(weights_xy, len(weights_xy)),
|
totalWeights = _totalWeights(weights_xy, len(weights_xy)),
|
||||||
threshold = rand() * totalWeights,
|
threshold = rand() * totalWeights
|
||||||
states_weights = weights_xy
|
|
||||||
)
|
)
|
||||||
_wf_collapse(wf, x, y, states_weights, len(states_weights), threshold);
|
_wf_collapse(wf, x, y, weights_xy, len(weights_xy), threshold);
|
||||||
|
|
||||||
function _totalWeights(weights_xy, leng, i = 0) =
|
function _totalWeights(weights_xy, leng, i = 0) =
|
||||||
i == leng ? 0 :
|
i == leng ? 0 :
|
||||||
|
Reference in New Issue
Block a user