From b65a4e2220f3cee89634cf952f03ff5913586a0c Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Mon, 7 Aug 2023 16:40:39 +0200 Subject: [PATCH] In Lapjoint -> MakeSideGrooveByMill controllo testa sotto al grezzo escluso se richiesto il move after --- LuaLibs/WProcessLapJoint.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/LuaLibs/WProcessLapJoint.lua b/LuaLibs/WProcessLapJoint.lua index 37226a1..cd67915 100644 --- a/LuaLibs/WProcessLapJoint.lua +++ b/LuaLibs/WProcessLapJoint.lua @@ -24,7 +24,8 @@ -- 2023/06/30 Aggiunta lettura delle note esistenti dalle lavorazioni per evitare di sovrascriverle. -- 2023/07/10 In MakeSideGrooveByMill si impedisce ora di lavorare una groove se la testa deve scendere sotto al limite superiore del grezzo. -- 2023/07/25 Aggiunte passate laterali per SideGroove, se specificato SIDESTEP nelle note utensile. --- 2023/01/08 Migliorato controllo testa sotto al grezzo in SieGroove. +-- 2023/08/01 Migliorato controllo testa sotto al grezzo in SieGroove. +-- 2023/08/07 Controllo testa sotto al grezzo in SideGroove escluso se richiesto il move after. -- Tabella per definizione modulo local WPL = {} @@ -1511,8 +1512,10 @@ local function MakeSideGrooveByMill( Proc, nFacet, nRawId, b3Raw, sCustomMach, d local dHeadMinWidth = 160 local dHeadMinWidthHeight = 30 -- se la testa scende sotto al limite superiore del grezzo e non c'è sufficiente capacità di sottosquadro - if ( dMillTotLen < ( abs( dRawMaxZ - dGrooveMinZ) + 10 * GEO.EPS_SMALL) and ( dElev > 0.5 * ( dMillDiam - dHeadMinWidth) - 10 * GEO.EPS_SMALL)) or - ( dMillTotLen + dHeadMinWidthHeight < ( abs( dRawMaxZ - dGrooveMinZ) + 10 * GEO.EPS_SMALL) and ( dElev > 0.5 * ( dMillDiam - dHeadMaxWidth) - 10 * GEO.EPS_SMALL)) then + -- controllo disattivato se move after + if WD.SIDEMILL_BEFORE and not ( bEnablePreMill or bAsEnablePreMill) and + ( ( dMillTotLen < ( abs( dRawMaxZ - dGrooveMinZ) + 10 * GEO.EPS_SMALL) and ( dElev > 0.5 * ( dMillDiam - dHeadMinWidth) - 10 * GEO.EPS_SMALL)) or + ( dMillTotLen + dHeadMinWidthHeight < ( abs( dRawMaxZ - dGrooveMinZ) + 10 * GEO.EPS_SMALL) and ( dElev > 0.5 * ( dMillDiam - dHeadMaxWidth) - 10 * GEO.EPS_SMALL))) then local sErr = 'Error : Tool too short, head will collide with rawpart' EgtOutLog( sErr) return false, sErr