diff --git a/LuaLibs/ProcessFreeContour.lua b/LuaLibs/ProcessFreeContour.lua index 4485e98..b681f39 100644 --- a/LuaLibs/ProcessFreeContour.lua +++ b/LuaLibs/ProcessFreeContour.lua @@ -312,7 +312,8 @@ local function MakeByMill( Proc, nPhase, nRawId, nPartId, dOvmHead) -- se chiamata da SimpleScarf il codolo รจ sempre attivo if dDimStrip > 10 * GEO.EPS_SMALL and ( nStep > 1 or ( bDown and b3Aux:getDimX() > 0.5 * b3Raw:getDimX()) or Proc.Prc == 70) then -- devo lasciare un codolo - dDepth = dDepth - dDimStrip + local dExtraCham = EgtIf( nChamfer > 0, 2, 0) + dDepth = EgtIf( Proc.Prc == 70, dDepth - dDimStrip - dDepthCham - dExtraCham, dDepth - dDimStrip) bStripOnSide = true else -- devo affondare un poco oltre diff --git a/LuaLibs/ProcessSimpleScarf.lua b/LuaLibs/ProcessSimpleScarf.lua index 298e83d..f72bce2 100644 --- a/LuaLibs/ProcessSimpleScarf.lua +++ b/LuaLibs/ProcessSimpleScarf.lua @@ -195,7 +195,7 @@ function ProcessSimpleScarf.Make( Proc, nPhase, nRawId, nPartId, dOvmHead, dOvmT -- se forzato utilizzo fresa richiamo la freecontour local bForceSideMill = EgtGetInfo( Proc.Id, 'Q04', 'd') == 1 or ( EgtGetInfo( Proc.Id, 'Q04', 'd') == 2 and abs( vtN[vFaceOrd[3]]:getY())) < 0.1 or - ( EgtGetInfo( Proc.Id, 'Q04', 'd') == 3 and abs( vtN[vFaceOrd[3]]:getY())) < 0.1 and vtN[vFaceOrd[3]]:getZ() < 0.1) + ( EgtGetInfo( Proc.Id, 'Q04', 'd') == 3 and abs( vtN[vFaceOrd[3]]:getY())) < 0.1 and vtN[vFaceOrd[3]]:getZ() < 0.1 if bForceSideMill then bOk, sErr = FreeContour.Make( Proc, nPhase, nRawId, nPartId, dOvmHead) return bOk, sErr