From 198031a3c1f97602b8e558f4a25d64cf208397af Mon Sep 17 00:00:00 2001 From: "daniele.nicoli" Date: Fri, 12 Jun 2026 16:03:49 +0200 Subject: [PATCH] =?UTF-8?q?ProcessMortise=20-=20Elimina=20i=20tagli=20del?= =?UTF-8?q?=20piano=20ed=20eventuale=20cubettatura=20se=20gi=C3=A0=20prese?= =?UTF-8?q?nte=20da=20un'altra=20feature,=20prima=20eliminava=20quelli=20d?= =?UTF-8?q?ella=20feature=20dando=20problemi=20con=20l'ordinamento.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaLibs/BeamExec.lua | 6 ++++-- LuaLibs/ProcessDtMortise.lua | 2 +- LuaLibs/ProcessMortise.lua | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) 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