From eac6b2da77f010a607ed913efe4e13fc58570cac Mon Sep 17 00:00:00 2001 From: SaraP Date: Thu, 16 Nov 2023 15:21:35 +0100 Subject: [PATCH] 3dPrinting : - migliorie gestione extra shells. --- LuaLibs/CalcPaths.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LuaLibs/CalcPaths.lua b/LuaLibs/CalcPaths.lua index f2a7f55..c5cb94c 100644 --- a/LuaLibs/CalcPaths.lua +++ b/LuaLibs/CalcPaths.lua @@ -3646,7 +3646,7 @@ local function ReorderExtraShells( nPathGrp, vPtStart, LayerParams) elseif dist( ptECurr, ptS) < dVal then -- congiungo start-end bLink = true - elseif nCnt == 0 and dist( ptSCurr, ptS) < dVal then + elseif nCnt == 0 and nCurrType ~= TYPE.EXTRA_OUTER_SHELL and dist( ptSCurr, ptS) < dVal then -- congiungo start-start EgtInvertCurve( nCurr) UpdateInvertInfo( nCurr) @@ -3802,7 +3802,7 @@ local function CalcExtraShellsPath( nMaxShellNbrDiff, nShellNbrGrp, nCrvGrpId, d -- verifico se può essere chiusa if not EgtCurveIsClosed( nId) then - if dist( EgtSP( nId), EgtEP( nId)) < dCurrStrand + GEO.EPS_SMALL then + if dLen > dCurrStrand and dist( EgtSP( nId), EgtEP( nId)) < dCurrStrand + GEO.EPS_SMALL then EgtCloseCurveCompo( nId) end end