EgtMachKernel :
- prime modifiche per gestione aggregato da sotto.
This commit is contained in:
@@ -137,6 +137,36 @@ Machine::GetCurrTableDeltaRef1( Vector3d& vtDelta1) const
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
Machine::GetCurrTableIsTilting( bool& bTilting) const
|
||||
{
|
||||
// default
|
||||
bTilting = false ;
|
||||
// verifico esistenza tavola
|
||||
if ( m_nCalcTabId == GDB_ID_NULL)
|
||||
return false ;
|
||||
// recupero gli eventuali assi rotanti della tavola
|
||||
int nTParId = m_pGeomDB->GetParentId( m_nCalcTabId) ;
|
||||
if ( nTParId == GDB_ID_NULL)
|
||||
return false ;
|
||||
while ( IsAxisGroup( nTParId)) {
|
||||
// recupero il gestore dell'asse
|
||||
Axis* pAx = GetAxis( nTParId) ;
|
||||
if ( pAx == nullptr)
|
||||
return false ;
|
||||
// verifico se asse rotante orizzontale
|
||||
if ( pAx->GetType() == MCH_AT_ROTARY && abs( pAx->GetDir().z) < EPS_SMALL) {
|
||||
bTilting = true ;
|
||||
return true ;
|
||||
}
|
||||
// risalgo lungo la catena
|
||||
nTParId = m_pGeomDB->GetParentId( nTParId) ;
|
||||
}
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
Machine::SetCurrTool( const string& sTool, const string& sHead, int nExit)
|
||||
|
||||
Reference in New Issue
Block a user