From adf08876a9bfeb6914454216a7741702cdb4d7c9 Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Fri, 29 May 2026 07:48:14 +0200 Subject: [PATCH] DA CONTROLLARE!!!! Piccole modifiche per far funzionare nesting inclinato --- BatchProcessNew.lua | 3 ++- LuaLibs/BeamExec.lua | 2 +- Strategies/Standard/STR0010/STR0010.lua | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/BatchProcessNew.lua b/BatchProcessNew.lua index 1fff59b..b091669 100644 --- a/BatchProcessNew.lua +++ b/BatchProcessNew.lua @@ -390,7 +390,8 @@ if bToProcess then end end -- Assegno lunghezza della barra - dBarLen = PARTS[1].b3PartOriginal:getDimX() + 10 + -- TODO nella ProcessBeams andava in errore con 10mm!!! CONTROLLARE + dBarLen = PARTS[1].b3PartOriginal:getDimX() + 20 if dBarLen < 2200 then dBarLen = dBarLen + 1800 end diff --git a/LuaLibs/BeamExec.lua b/LuaLibs/BeamExec.lua index 38ca696..3990c8d 100644 --- a/LuaLibs/BeamExec.lua +++ b/LuaLibs/BeamExec.lua @@ -457,7 +457,7 @@ function BeamExec.ProcessBeams( dRawW, dRawH, dRawL, dOvmHead, dOvmMid, PARTS, b -- lasciamo dEndOffset a sinistra (coda) e matematicamente dStartOffset a destra (testa). local dCrawLen = dPartLen + dStartOffset + dEndOffset local dDelta = dEndOffset - local dStartPos = CurrentPart.dPosX - dStartOffset + local dStartPos = (CurrentPart.dPosX or 0) - dStartOffset local bIsSectionOk = ( ( abs( dPartWidth - dRawW ) < 100 * GEO.EPS_SMALL and abs( dPartHeight - dRawH ) < 100 * GEO.EPS_SMALL ) or ( abs( dPartHeight - dRawW ) < 100 * GEO.EPS_SMALL and abs( dPartWidth - dRawH ) < 100 * GEO.EPS_SMALL ) ) diff --git a/Strategies/Standard/STR0010/STR0010.lua b/Strategies/Standard/STR0010/STR0010.lua index bc65c0c..43c4c02 100644 --- a/Strategies/Standard/STR0010/STR0010.lua +++ b/Strategies/Standard/STR0010/STR0010.lua @@ -215,6 +215,7 @@ function STR0010.Make( bAddMachining, Proc, Part, CustomParameters) end -- se la lavorazione ostacola il pinzaggio, non posso farla, serve una lavorazioen che lasci il testimone + -- TODO Girando il pezzo trova sempre che limitano il pinzaggio se pezzo piccolo!! Il controllo non va bene. Da rifare if MachiningLib.IsFeatureHinderingClamping( Proc, Part) then local sErr = 'Feature '.. Proc.idFeature .. ' : strategy ' .. StrategyLib.Config.sStrategyId .. ' not applicable ( Feature hinders clamping)' EgtOutLog( sErr)