From 5007cda21f73e71f61d0f3fdd8b1e24c4a7b99a7 Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Mon, 9 Jun 2025 17:50:19 +0200 Subject: [PATCH] =?UTF-8?q?-=20In=20StepJointNotch,=20se=20si=20forza=20tr?= =?UTF-8?q?uciolatore,=20si=20prende=20utensile=20pi=C3=B9=20grande=20-=20?= =?UTF-8?q?Per=20sovrapposizione=20in=20spezzatura=20LapJooint,=20corretto?= =?UTF-8?q?=20caso=20tipo=20Tunnel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaLibs/ProcessLapJoint.lua | 2 +- LuaLibs/ProcessStepJointNotch.lua | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/LuaLibs/ProcessLapJoint.lua b/LuaLibs/ProcessLapJoint.lua index 5526401..0b63fe5 100644 --- a/LuaLibs/ProcessLapJoint.lua +++ b/LuaLibs/ProcessLapJoint.lua @@ -6966,7 +6966,7 @@ local function MakeLongMoreFaces( Proc, nPhase, nRawId, nPartId, dOvmHead) -- superficie di fondo nSurfBottomId = EgtSurfTmPlaneInBBox( nAddGrpId, ptMaxBox, vtOrtho, b3SolidExtended, GDB_ID.ROOT) -- calcolo di quanto allargare le superfici - if not dAddLen then + if dAddLen == 0 then local dWidth = EgtIf( Proc.AffectedFaces.Front, Proc.Box:getDimZ(), Proc.Box:getDimY()) dAddLen = min( dWidth, 100) / 2 end diff --git a/LuaLibs/ProcessStepJointNotch.lua b/LuaLibs/ProcessStepJointNotch.lua index 6c01f95..dbb586a 100644 --- a/LuaLibs/ProcessStepJointNotch.lua +++ b/LuaLibs/ProcessStepJointNotch.lua @@ -132,7 +132,12 @@ local function MakePocket( Proc, nPartId, ptPs, vtN, nFaceRef, nDiffWidth, sMchF -- calcolo il diametro utensile local dDiamTool if nUseRoughTool == 1 then - dDiamTool = max( 80, min( tBHx[nFaceRef][1], tBHx[nFaceRef][2])) + -- se feature passante prendo utensile più grande possibile + if ( Proc.AffectedFaces.Top and Proc.AffectedFaces.Bottom) or ( Proc.AffectedFaces.Front and Proc.AffectedFaces.Back) then + dDiamTool = nil + else + dDiamTool = max( 80, min( tBHx[nFaceRef][1], tBHx[nFaceRef][2])) + end else -- se non uso truciolatore prendo il valore dalle dimensioni minime delle facce dDiamTool = min( tBHx[nFaceRef][1], tBHx[nFaceRef][2])