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