diff --git a/LuaLibs/BeamExec.lua b/LuaLibs/BeamExec.lua index 478d107..5ac34d2 100644 --- a/LuaLibs/BeamExec.lua +++ b/LuaLibs/BeamExec.lua @@ -1944,7 +1944,9 @@ local function VerifyDrillMirrored( Proc, vProc, b3Raw) -- recupero la lunghezza della parte inclinata della punta local dToolDoubleTipLength = EgtTdbGetCurrToolParam( MCH_TP.TOTLEN) - EgtTdbGetCurrToolParam( MCH_TP.LEN) -- se foratura splittata, verifico che la distanza minima tra le due punte sia rispettata - if abs( Proc.Flg) == 2 and not ( ( ( 2 * dDrillingStep - dToolTipLength - dToolDoubleTipLength) - MIRROR_DRILLINGS_MIN_DISTANCE) > 10 * GEO.EPS_SMALL) then + local dTipDistance = 2 * dDrillingStep - dToolTipLength - dToolDoubleTipLength + if abs( Proc.Flg) == 2 and not ( ( dTipDistance - MIRROR_DRILLINGS_MIN_DISTANCE) > 10 * GEO.EPS_SMALL) then + EgtOutLog( 'Double drilling skipped, tip distance too small ( ' .. dTipDistance .. ' mm) ') return end -- verifico se in doppio