DataBeam :

- corretta assegnazione fori cieca a fase ribaltata e non ruotata
- corretta gestione ruotato insieme con ribaltato senza lavorazioni subito dopo carico della barra.
This commit is contained in:
Dario Sassi
2020-05-25 08:28:01 +00:00
parent da7aa76d5c
commit 1e612fac4a
3 changed files with 46 additions and 15 deletions
+6 -2
View File
@@ -1,4 +1,4 @@
-- ProcessDrill.lua by Egaltech s.r.l. 2020/05/19
-- ProcessDrill.lua by Egaltech s.r.l. 2020/05/23
-- Gestione calcolo forature per Travi
-- Tabella per definizione modulo
@@ -127,7 +127,11 @@ function ProcessDrill.Classify( Proc, b3Raw)
local bFaceDown = ( ptCen:getZ() < b3Raw:getMin():getZ() + dDiam / 2 and not Proc.Head and not Proc.Tail)
-- verifico se il foro è sotto e quindi va spostato o sopra o sul fianco
if (( vtExtr:getZ() < BD.DRILL_VZ_MIN or bFaceDown) and ( not bOpen or Proc.Flg ~= 1)) then
return true, not BD.ROT90, BD.ROT90
if not bOpen then
return true, true, false
else
return true, not BD.ROT90, BD.ROT90
end
else
return true, false, false
end