EgtMachKernel 2.5b3 :
- modifiche quote approccio e retrazione
This commit is contained in:
+10
-3
@@ -167,17 +167,23 @@ Machine::GetCurrTableDeltaRef1( Vector3d& vtDelta1) const
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
Machine::GetCurrTableIsTilting( bool& bTilting) const
|
||||
Machine::GetCurrTableIsTilting( bool& bTilting, Vector3d& vtTiltingAx) const
|
||||
{
|
||||
// default
|
||||
bTilting = false ;
|
||||
vtTiltingAx = V_NULL ;
|
||||
// verifico esistenza tavola
|
||||
if ( m_nCalcTabId == GDB_ID_NULL)
|
||||
return false ;
|
||||
// verifico se presente flag che lo forza come tale
|
||||
bool bTiltingLike ;
|
||||
if ( m_pGeomDB->GetInfo( m_nCalcTabId, MCH_TILTINGLIKE, bTiltingLike) && bTiltingLike) {
|
||||
int nTiltingLike ;
|
||||
if ( m_pGeomDB->GetInfo( m_nCalcTabId, MCH_TILTINGLIKE, nTiltingLike) && nTiltingLike != 0) {
|
||||
bTilting = true ;
|
||||
switch ( abs( nTiltingLike)) {
|
||||
default : vtTiltingAx = X_AX ; break ;
|
||||
case 2 : vtTiltingAx = Y_AX ; break ;
|
||||
case 3 : vtTiltingAx = Z_AX ; break ;
|
||||
}
|
||||
return true ;
|
||||
}
|
||||
// recupero gli eventuali assi rotanti della tavola
|
||||
@@ -192,6 +198,7 @@ Machine::GetCurrTableIsTilting( bool& bTilting) const
|
||||
// verifico se asse rotante orizzontale
|
||||
if ( pAx->GetType() == MCH_AT_ROTARY && abs( pAx->GetDir().z) < EPS_SMALL) {
|
||||
bTilting = true ;
|
||||
vtTiltingAx = pAx->GetDir() ;
|
||||
return true ;
|
||||
}
|
||||
// risalgo lungo la catena
|
||||
|
||||
Reference in New Issue
Block a user