EgtMachKernel 2.3d2 :
- aggiunta gestione Dist e StemDiam in utensili - aggiunta funzione EmtModifyExitPosition - aggiunta gestione Dist a OnSetHead e aggiornamento posizione uscita.
This commit is contained in:
+21
@@ -935,6 +935,27 @@ Machine::CreateExitGroups( int nLay, const MUEXITVECTOR& vMuExit)
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
Machine::ModifyMachineExitPosition( const string& sHead, int nExit, const Point3d& ptPos)
|
||||
{
|
||||
// controllo GeomDB
|
||||
if ( m_pGeomDB == nullptr)
|
||||
return false ;
|
||||
// recupero testa
|
||||
int nHeadId = GetGroup( sHead) ;
|
||||
Head* pHead = GetHead( nHeadId) ;
|
||||
if ( pHead == nullptr)
|
||||
return false ;
|
||||
// recupero uscita
|
||||
int nExitId = m_pGeomDB->GetFirstNameInGroup( nHeadId, MCH_EXIT + ToString( nExit)) ;
|
||||
Exit* pExit = GetExit( nExitId) ;
|
||||
if ( pExit == nullptr)
|
||||
return false ;
|
||||
// eseguo la modifica
|
||||
return pExit->Modify( ptPos, m_dExitMaxAdjust) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
Machine::SetLook( int nFlag)
|
||||
|
||||
Reference in New Issue
Block a user