- Se la lavorazione non ha percorso, la si disattiva

- Se rotazione impostata su "IF_NECESSARY", prima del numero rotazioni, si controllano il numero di feature non eseguite
This commit is contained in:
andrea.villa
2026-03-13 13:26:20 +01:00
parent 63308c0349
commit 0fc9e1dd09
2 changed files with 46 additions and 36 deletions
+4 -1
View File
@@ -1315,8 +1315,11 @@ local function GetBestCombination( ListToCompare, Part)
else
-- se rotazione ha un grande impatto
if Part.GeneralParameters.GEN_sPieceRotation == 'IF_NECESSARY' then
-- scelgo soluzione con meno feature saltate
if ListToCompare[ListIndex].nNotExecute < ListToCompare[nIndexBestCombination].nNotExecute then
nIndexBestCombination = ListIndex
-- scelgo soluzione con meno rotazioni indipendentemente dal voto
if ListToCompare[nIndexBestCombination].nRotations > ListToCompare[ListIndex].nRotations then
elseif ListToCompare[nIndexBestCombination].nRotations > ListToCompare[ListIndex].nRotations then
nIndexBestCombination = ListIndex
-- se stesso numero di rotazioni
elseif ListToCompare[nIndexBestCombination].nRotations == ListToCompare[ListIndex].nRotations then