From 54d809508d7e692d887318db04096ddcf3b30b01 Mon Sep 17 00:00:00 2001 From: SaraP Date: Mon, 29 Jul 2024 15:18:13 +0200 Subject: [PATCH] 3dPrinting 2.6g2 : - correzione lead out invertiti. --- LuaLibs/CalcToolPath.lua | 5 +++-- Version.lua | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/LuaLibs/CalcToolPath.lua b/LuaLibs/CalcToolPath.lua index ab5e900..c09b711 100644 --- a/LuaLibs/CalcToolPath.lua +++ b/LuaLibs/CalcToolPath.lua @@ -1549,8 +1549,9 @@ local function VerifyRibsLead( nId, nRibId, bInVsOut, nGrpTmp) local vtE = EgtUV( nLeadLoc, dParCrv, -1) local dLenCrv = EgtCurveCompoLength( nLeadLoc, dParCrv - 1) if AreSameVectorApprox( vtS, vtE) and vtS * vtDir < - 1 + GEO.EPS_SMALL and dLenCrv > dStrand + GEO.EPS_SMALL then - local dDist = EgtPointCurveDist( EgtUP( nLeadLoc, dParCrv - 0.5), nRibLoc) - EgtCopyGlob( nLeadLoc, nGrpTmp) + local vtDist = EgtUP( nLeadLoc, dParCrv - 0.5) - EgtMP( nRibLoc) + local vtOrthoDist = vtDist - ( vtDist * vtDir) * vtDir + local dDist = vtOrthoDist:len() if dDist < dStrand + GEO.EPS_SMALL then return false end diff --git a/Version.lua b/Version.lua index 8609263..c284358 100644 --- a/Version.lua +++ b/Version.lua @@ -1,4 +1,4 @@ -- Version.lua by Egaltech s.r.l. 2024/05/06 -- Gestione della versione di 3dPrinting -VERSION = '2.6f1' \ No newline at end of file +VERSION = '2.6g2' \ No newline at end of file