diff --git a/LuaLibs/ProcessSimpleScarf.lua b/LuaLibs/ProcessSimpleScarf.lua index 462f3c0..298e83d 100644 --- a/LuaLibs/ProcessSimpleScarf.lua +++ b/LuaLibs/ProcessSimpleScarf.lua @@ -193,7 +193,9 @@ function ProcessSimpleScarf.Make( Proc, nPhase, nRawId, nPartId, dOvmHead, dOvmT local bOkc, sErrC = MakeChamfer( Proc, nPhase, nRawId, nPartId, dOvmHead) if not bOkc then return bOkc, sErrC end -- se forzato utilizzo fresa richiamo la freecontour - local bForceSideMill = EgtGetInfo( Proc.Id, 'Q04', 'd') == 1 or EgtGetInfo( Proc.Id, 'Q04', 'd') == 2 or ( EgtGetInfo( Proc.Id, 'Q04', 'd') == 3 and vtN[vFaceOrd[3]]:getZ() < 0.1) + 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) if bForceSideMill then bOk, sErr = FreeContour.Make( Proc, nPhase, nRawId, nPartId, dOvmHead) return bOk, sErr