EgtMachKernel 3.1f5 :
- in ModifyMachineExitPosition si aggiusta anche la posizione del frame "_T"+nExit base per i solidi di collisione dell'utensile.
This commit is contained in:
@@ -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 ;
|
||||
|
||||
Reference in New Issue
Block a user