From 54c835f71726a33e6ac56c30beef877f188d869d Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Fri, 8 Aug 2025 13:04:58 +0200 Subject: [PATCH] - in LapJoint migliorata spezzatura per feature lunghe rispetto al pezzo --- LuaLibs/ProcessLapJoint.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LuaLibs/ProcessLapJoint.lua b/LuaLibs/ProcessLapJoint.lua index 1bfbc36..dcdaa3e 100644 --- a/LuaLibs/ProcessLapJoint.lua +++ b/LuaLibs/ProcessLapJoint.lua @@ -7087,7 +7087,7 @@ local function MakeLongMoreFaces( Proc, nPhase, nRawId, nPartId, dOvmHead) -- la divido in parti lungo X local vAddId = {} local bAllWithEndCap = bAddEndCapLeftSide or bAddEndCapRightSide - local nPart = max( ceil( Proc.Box:getDimX() / BD.LONGCUT_ENDLEN + 10 * GEO.EPS_SMALL), 2) + local nPart = max( ceil( Proc.Box:getDimX() / BD.LONGCUT_MAXLEN + 10 * GEO.EPS_SMALL), 2) local dPartLen = Proc.Box:getDimX() / nPart local Xmin = Proc.Box:getMin():getX() -- trimesh per la creazione degli EndCap @@ -7477,7 +7477,7 @@ function ProcessLapJoint.Make( Proc, nPhase, nRawId, nPartId, dOvmHead) end -- se lunghezza richiede spezzatura if ( Proc.Box:getDimX() > BD.LONGCUT_MAXLEN) or - ( Proc.Box:getDimX() > 0.7 * b3Solid:getDimX() and Proc.Box:getDimX() > BD.LONGCUT_ENDLEN) or + ( Proc.Box:getDimX() > 0.7 * b3Solid:getDimX() and ( b3Solid:getDimX() > ( BD.LEN_VERY_SHORT_PART or BD.LEN_SHORT_PART))) or ( ( nForceUseBladeOnNotContinueFace and nForceUseBladeOnNotContinueFace > 0) and ( Proc.Box:getDimX() > ( BD.LEN_SHORT_PART or 1000))) then -- una faccia if Proc.Fct == 1 then