diff --git a/LuaLibs/BeamExec.lua b/LuaLibs/BeamExec.lua index 07a1b06..3bc1560 100644 --- a/LuaLibs/BeamExec.lua +++ b/LuaLibs/BeamExec.lua @@ -1641,7 +1641,8 @@ local function SetCutsOnFrontMortises( vProc) -- verifico se i piani coincidono local bSamePlane = ( ptC1 and vtN1 and ptC2 and vtN2 and AreSameVectorApprox( vtN1, vtN2) and ( ptC2 - ptC1) * vtN1 < 1.0) if bSamePlane then - vProc[i].CutFront = vProc[j].Id + --vProc[i].CutFront = vProc[j].Id + vProc[j].bSkipCut = true end -- log local sMsg = string.format( 'Cut %d meet Mortise %d', vProc[i].Id, vProc[j].Id) .. EgtIf( bSamePlane, ' with same plane', '') @@ -1658,7 +1659,8 @@ local function SetCutsOnFrontMortises( vProc) -- verifico se i piani coincidono local bSamePlane = ( ptC1 and vtN1 and ptC2 and vtN2 and AreSameVectorApprox( vtN1, vtN2) and ( ptC2 - ptC1) * vtN1 < 1.0) if bSamePlane then - vProc[i].CutFront = vProc[j].Id + --vProc[i].CutFront = vProc[j].Id + vProc[j].bSkipCut = true end -- log local sMsg = string.format( 'Cut %d meet DtMortise %d', vProc[i].Id, vProc[j].Id) .. EgtIf( bSamePlane, ' with same plane', '') diff --git a/LuaLibs/ProcessDtMortise.lua b/LuaLibs/ProcessDtMortise.lua index 720c031..5a24167 100644 --- a/LuaLibs/ProcessDtMortise.lua +++ b/LuaLibs/ProcessDtMortise.lua @@ -236,7 +236,7 @@ function ProcessDtMortise.Make( Proc, nPhase, nRawId, nPartId, dCurrOvmH) -- verifico se frontale local bFront = ( Proc.Prc == 56) -- se mortasa di fronte, eseguo il taglio della faccia - if bFront then + if bFront and not Proc.bSkipCut then -- verifico esista la faccia di taglio local ptCutC, vtCutN = EgtSurfTmFacetCenter( Proc.Id, 1, GDB_ID.ROOT) if ptCutC and vtCutN and AreSameVectorApprox( vtExtr, vtCutN) then diff --git a/LuaLibs/ProcessMortise.lua b/LuaLibs/ProcessMortise.lua index 83eaaf4..483c7c1 100644 --- a/LuaLibs/ProcessMortise.lua +++ b/LuaLibs/ProcessMortise.lua @@ -467,7 +467,7 @@ function ProcessMortise.Make( Proc, nPhase, nRawId, nPartId, dCurrOvmH) end -- se mortasa di fronte, eseguo il taglio della faccia - if bFront then + if bFront and not Proc.bSkipCut then -- verifico esista la faccia di taglio local ptCutC, vtCutN = EgtSurfTmFacetCenter( Proc.Id, 1, GDB_ID.ROOT) if ptCutC and vtCutN and AreSameVectorApprox( vtExtr, vtCutN) then