From 54ce972fa161ec17613e0b1c13adc8ee0112ab1a Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Wed, 24 Jun 2026 18:59:56 +0200 Subject: [PATCH] EgtMachKernel 3.1f5 : - in ModifyMachineExitPosition si aggiusta anche la posizione del frame "_T"+nExit base per i solidi di collisione dell'utensile. --- EgtMachKernel.rc | Bin 11774 -> 11774 bytes Machine.cpp | 4 ++++ 2 files changed, 4 insertions(+) diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index 45f572e71ae52bc6704c58eb6a0163086be1a9b9..95f78206210f3ea71e817f93983725c2f666ad30 100644 GIT binary patch delta 97 zcmewt{V#gMFE&Qg&A-`fnHfzdKa|wnoW?bQ1uSxrY4Qod0+^@}R1`^_2jk{d(jGv4 NK<#LXK~l;gTmUO4BcK2P delta 97 zcmewt{V#gMFE&P#&A-`fnHfzcKa|wnoW?bQ1uSxrY4Qod0+^@}R1`^_2jk{d(jGv4 NK<#LXK~l;gTmUI`BbWdH diff --git a/Machine.cpp b/Machine.cpp index 6398656..2c66870 100644 --- a/Machine.cpp +++ b/Machine.cpp @@ -1046,8 +1046,12 @@ Machine::ModifyMachineExitPosition( const string& sHead, int nExit, const Point3 if ( pExit == nullptr) return false ; // eseguo la modifica + Point3d ptOrigPos = pExit->GetPos() ; if ( ! pExit->Modify( ptPos, m_dExitMaxAdjust)) return false ; + // ripeto modifica su frame speciale "_T" + N + int nSpecFrId = m_pGeomDB->GetFirstNameInGroup( nHeadId, "_T" + ToString( nExit)) ; + m_pGeomDB->Translate( nSpecFrId, ptPos - ptOrigPos) ; // eventuale aggiornamento variabile lua EMC.EXITPOS con la nuova posizione LuaSetGlobVar( "EMC.EXITPOS", ptPos) ; return true ;