Feature/BigSection:

-modifiche e correzione bug che impedivano il funzionamento corretto di headcut e split
This commit is contained in:
luca.mazzoleni
2022-10-19 11:43:37 +02:00
parent a9061ecf51
commit af643b1ba5
4 changed files with 157 additions and 155 deletions
+10 -2
View File
@@ -356,9 +356,17 @@ local function MakeFromTop( sCutting, Proc, nPhase, nRawId, nPartId, dOvmHead, b
-- verifico elevazione max del materiale tagliato
local dMaxElev
if vtN:getX() > 0 then
dMaxElev = b3Solid:getMax():getX() - Proc.Box:getMin():getX()
if bForced then
dMaxElev = b3Raw:getMax():getX() - Proc.Box:getMin():getX()
else
dMaxElev = b3Solid:getMax():getX() - Proc.Box:getMin():getX()
end
else
dMaxElev = Proc.Box:getMax():getX() - b3Solid:getMin():getX()
if bForced then
dMaxElev = Proc.Box:getMax():getX() - b3Raw:getMin():getX()
else
dMaxElev = Proc.Box:getMax():getX() - b3Solid:getMin():getX()
end
end
-- per macchina TURN aggiusto massima dimensione cubetto
local dNewDiceDim