diff --git a/LuaLibs/FacesBySaw.lua b/LuaLibs/FacesBySaw.lua index e9d60ac..1e68048 100644 --- a/LuaLibs/FacesBySaw.lua +++ b/LuaLibs/FacesBySaw.lua @@ -410,7 +410,7 @@ function FacesBySaw.MakeOne( nSurfId, nFacet, sCutting, dSawDiam, Par5, dVzLimDw end else if BD.TURN == 2 then - if vtRef:getZ() > -0.01 then + if vtOrthO:getZ() > -0.01 then nSCC = MCH_SCC.ADIR_ZP else nSCC = MCH_SCC.ADIR_ZM @@ -474,7 +474,7 @@ function FacesBySaw.MakeOne( nSurfId, nFacet, sCutting, dSawDiam, Par5, dVzLimDw EgtSetMachiningParam( MCH_MP.ENDADDLEN, dAllEnd - dAccEnd) -- imposto angolo 3° asse rot local nInd = EgtIf( bMaximizeVerticalDepth, 0, 1) - EgtSetMachiningParam( MCH_MP.BLOCKEDAXIS, BL.GetSawBlockedAxis( nInd, bDownHead, b3Raw, vtN, vtOut)) + EgtSetMachiningParam( MCH_MP.BLOCKEDAXIS, BL.GetSawBlockedAxis( nInd, bDownHead, b3Raw, vtN, vtOrthO)) -- eventuali note if sNotes and #sNotes > 0 then EgtSetMachiningParam( MCH_MP.USERNOTES, sNotes) end -- eseguo