From d10b99dc3c6268c931a06e397b8a86d0a43f154c Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Thu, 11 Dec 2025 11:04:18 +0100 Subject: [PATCH] Lanciando automatismo una seconda volta, dopo flip del pezzo, restava settato il valore e faceva considerazioni sbagliate. Quindi se non trova taglio troncante si resetta la nota. --- LuaLibs/BeamExec.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/LuaLibs/BeamExec.lua b/LuaLibs/BeamExec.lua index f23070a..f5e01f1 100644 --- a/LuaLibs/BeamExec.lua +++ b/LuaLibs/BeamExec.lua @@ -617,12 +617,16 @@ function BeamExec.ProcessBeams( dRawW, dRawH, dRawL, dOvmHead, dOvmMid, vBeam, b local vProc = CollectFeatures( Pz, b3Solid, 0) local bSFinishingNeeded, nReplacedHeadCutFeatureId, nHeadCuttingFeatureId = AnalyzeHeadFeatures( b3Solid, vProc, dRawW, dRawH) local bEFinishingNeeded, nReplacedTailCutFeatureId, nTailCuttingFeatureId = AnalyzeTailFeatures( b3Solid, vProc, dRawW, dRawH) - -- Scrivo gli di delle facce di taglio custom: serviranno dopo per calcolare l'elevazione rispetto a queste + -- Scrivo gli id delle facce di taglio custom: serviranno dopo per calcolare l'elevazione rispetto a queste if nHeadCuttingFeatureId then EgtSetInfo( vBeam[i].Id, 'HEADCUTFEATUREID', nHeadCuttingFeatureId) + else + EgtRemoveInfo( vBeam[i].Id, 'HEADCUTFEATUREID') end if nTailCuttingFeatureId then EgtSetInfo( vBeam[i].Id, 'TAILCUTFEATUREID', nTailCuttingFeatureId) + else + EgtRemoveInfo( vBeam[i].Id, 'TAILCUTFEATUREID') end if bBigSectionCut then -- lascio in coda solo il materiale necessario; il resto verrĂ  tolto nell'head cut successivo