diff --git a/LuaLibs/ProcessLapJoint.lua b/LuaLibs/ProcessLapJoint.lua index b590e76..b9cb3ea 100644 --- a/LuaLibs/ProcessLapJoint.lua +++ b/LuaLibs/ProcessLapJoint.lua @@ -4372,6 +4372,7 @@ local function MakeTunnelByChainSaw( Proc, sSawing, nLundIdFace, vtOrtho, dWorkD EgtSetMachiningParam( MCH_MP.OFFSR, dOffs) EgtSetMachiningParam( MCH_MP.FACEUSE, sFaceUse) EgtSetMachiningParam( MCH_MP.DEPTH, dWorkDepth) + -- modifico la distanza di attacco per considerare anche tunnel inclinati EgtSetMachiningParam( MCH_MP.STARTPOS, 50) -- eseguo if not ML.ApplyMachining( true, false) then @@ -4535,6 +4536,7 @@ local function MakeMoreFaces( Proc, nPhase, nRawId, nPartId, dOvmHead, bSinglePa end end local dWorkDepth = dDepth + -- cerco di estendere il taglio considerando la parte arrotondata della lama + 1 if dMaxMat > dDepth + dSawCornerRad + 1 then dWorkDepth = dDepth + dSawCornerRad + 1 -- se massimo affondamento utensile inferiore alla profondità da lavorare, setto la profondità di lavoro e emetto warning @@ -4543,6 +4545,7 @@ local function MakeMoreFaces( Proc, nPhase, nRawId, nPartId, dOvmHead, bSinglePa sWarn = 'Warning : elevation bigger than max tool depth' EgtOutLog( sWarn) end + -- lavoro da un lato local bOk, sErr = MakeTunnelByChainSaw( Proc, sSawing, nLundIdFace, vtOrtho, dWorkDepth, dMaxMat, nStep, dStep, sFaceUse) if not bOk then return false, sErr end -- se è da lavorare anche dall'altro lato