diff --git a/LuaLibs/ProcessLongCut.lua b/LuaLibs/ProcessLongCut.lua index 0c3b995..59e2d0f 100644 --- a/LuaLibs/ProcessLongCut.lua +++ b/LuaLibs/ProcessLongCut.lua @@ -1,4 +1,4 @@ --- ProcessLongCut.lua by Egaltech s.r.l. 2020/01/28 +-- ProcessLongCut.lua by Egaltech s.r.l. 2020/04/18 -- Gestione calcolo taglio longitudinale per Travi -- Tabella per definizione modulo @@ -214,7 +214,7 @@ function ProcessLongCut.Make( Proc, nPhase, nRawId, nPartId) local nM = 0 for i = 1, nC do -- Posizione braccio portatesta - local nSCC = EgtIf( ( i == 1 or i == nC - 1), MCH_SCC.ADIR_XP, MCH_SCC.ADIR_XM) + local nSCC = EgtIf( ( BD.C_SIMM or i == 1 or i == nC - 1), MCH_SCC.ADIR_XP, MCH_SCC.ADIR_XM) -- ciclo sulle passate local dOffset = ( dWidth + BD.DIM_STRIP_SMALL) / 2 ; local dLioTang = 0 @@ -354,9 +354,9 @@ function ProcessLongCut.Make( Proc, nPhase, nRawId, nPartId) -- Posizione braccio portatesta local nSCC if bFront then - nSCC = EgtIf( ( i == 1 or i == nC - 1), MCH_SCC.ADIR_XM, MCH_SCC.ADIR_XP) + nSCC = EgtIf( ( BD.C_SIMM or i == 1 or i == nC - 1), MCH_SCC.ADIR_XM, MCH_SCC.ADIR_XP) else - nSCC = EgtIf( ( i == 1 or i == nC - 1), MCH_SCC.ADIR_XP, MCH_SCC.ADIR_XM) + nSCC = EgtIf( ( BD.C_SIMM or i == 1 or i == nC - 1), MCH_SCC.ADIR_XP, MCH_SCC.ADIR_XM) end -- ciclo sulle passate local nO = 1 @@ -517,9 +517,9 @@ function ProcessLongCut.Make( Proc, nPhase, nRawId, nPartId) -- Posizione braccio portatesta local nSCC if bFront then - nSCC = EgtIf( ( j == 1 or j == nC - 1), MCH_SCC.ADIR_XM, MCH_SCC.ADIR_XP) + nSCC = EgtIf( ( BD.C_SIMM or j == 1 or j == nC - 1), MCH_SCC.ADIR_XM, MCH_SCC.ADIR_XP) else - nSCC = EgtIf( ( j == 1 or j == nC - 1), MCH_SCC.ADIR_XP, MCH_SCC.ADIR_XM) + nSCC = EgtIf( ( BD.C_SIMM or j == 1 or j == nC - 1), MCH_SCC.ADIR_XP, MCH_SCC.ADIR_XM) end -- inserisco le parti di lavorazione nM = nM + 1 diff --git a/LuaLibs/ProcessLongDoubleCut.lua b/LuaLibs/ProcessLongDoubleCut.lua index 34b629a..7b655ca 100644 --- a/LuaLibs/ProcessLongDoubleCut.lua +++ b/LuaLibs/ProcessLongDoubleCut.lua @@ -1,4 +1,4 @@ --- ProcessLongDoubleCut.lua by Egaltech s.r.l. 2020/04/04 +-- ProcessLongDoubleCut.lua by Egaltech s.r.l. 2020/04/18 -- Gestione calcolo doppio taglio longitudinale per Travi -- Tabella per definizione modulo @@ -268,7 +268,7 @@ function ProcessLong2Cut.Make( Proc, nPhase, nRawId, nPartId) -- si percorrono i lati alto e basso della faccia for i = 1, nC do -- Posizione braccio portatesta - local nSCC = EgtIf( ( i == 1 or i == nC - 1), MCH_SCC.ADIR_XP, MCH_SCC.ADIR_XM) + local nSCC = EgtIf( ( BD.C_SIMM or i == 1 or i == nC - 1), MCH_SCC.ADIR_XP, MCH_SCC.ADIR_XM) -- ciclo sulle due facce for j = 1, #vOrd do -- determino se lavorazione da davanti o da dietro @@ -325,7 +325,7 @@ function ProcessLong2Cut.Make( Proc, nPhase, nRawId, nPartId) -- si percorrono i lati alto e basso della faccia for i = 1, nC do -- Posizione braccio portatesta - local nSCC = EgtIf( ( i == 1 or i == nC - 1), MCH_SCC.ADIR_XP, MCH_SCC.ADIR_XM) + local nSCC = EgtIf( ( BD.C_SIMM or i == 1 or i == nC - 1), MCH_SCC.ADIR_XP, MCH_SCC.ADIR_XM) -- ciclo sulle due facce for j = 1, #vOrd do -- determino se lavorazione da davanti o da dietro @@ -488,7 +488,7 @@ function ProcessLong2Cut.Make( Proc, nPhase, nRawId, nPartId) local dSal = EgtIf( nPos == 1, - EgtIf( i == nIni, dStartDist, dEndDist), - EgtIf( i == nIni, dStartAccDist, dEndAccDist) - ( nPos - 2) * dC) local dEal = EgtIf( nPos == nC, - EgtIf( i == nIni, dEndDist, dStartDist), - EgtIf( i == nIni, dEndAccDist, dStartAccDist) - ( nC - nPos - 1) * dC) -- Posizione braccio portatesta - local nSCC = EgtIf( ( j == 1 or j == nC - 1), MCH_SCC.ADIR_XP, MCH_SCC.ADIR_XM) + local nSCC = EgtIf( ( BD.C_SIMM or j == 1 or j == nC - 1), MCH_SCC.ADIR_XP, MCH_SCC.ADIR_XM) -- Verifico se da fare di fianco perchè normale troppo verso il basso (minore di -30deg) local bSide = ( vtN[vOrd[i]]:getZ() < -0.5) -- ciclo sulle passate