EgtMachKernel :
- layer per frame ora è AVIEW e alla creazione viene nascosto.
This commit is contained in:
+4
-4
@@ -637,14 +637,14 @@ SurfFinishing::MyApply( bool bRecalc, bool bPostApply)
|
||||
UpdateFrameAndToolDir( nAuxId, bRecalc) ;
|
||||
|
||||
// recupero il gruppo per posizionamento Frame e versore utensile
|
||||
int nFrameId = m_pGeomDB->GetFirstNameInGroup( m_nOwnerId, MCH_FRAME) ;
|
||||
int nFrameId = m_pGeomDB->GetFirstNameInGroup( m_nOwnerId, MCH_AUXVIEW) ;
|
||||
// se non c'è lo aggiungo
|
||||
if ( nFrameId == GDB_ID_NULL) {
|
||||
nFrameId = m_pGeomDB->AddGroup( GDB_ID_NULL, m_nOwnerId, Frame3d()) ;
|
||||
if ( nFrameId == GDB_ID_NULL)
|
||||
return false ;
|
||||
m_pGeomDB->SetName( nFrameId, MCH_FRAME) ;
|
||||
m_pGeomDB->SetStatus( nFrameId, GDB_ST_ON) ;
|
||||
m_pGeomDB->SetName( nFrameId, MCH_AUXVIEW) ;
|
||||
m_pGeomDB->SetStatus( nFrameId, GDB_ST_OFF) ;
|
||||
}
|
||||
// se richiesto il ricalcolo lo aggiorno
|
||||
else if ( bRecalc)
|
||||
@@ -7334,7 +7334,7 @@ SurfFinishing::GetLocalToolDir( Vector3d& vtToolLoc) const
|
||||
return false ;
|
||||
|
||||
// ricerca del vettore direzione utensile locale all'interno del gruppo Owner della lavorazione di finitura corrente
|
||||
int nFrameId = m_pGeomDB->GetFirstNameInGroup( m_nOwnerId, MCH_FRAME) ;
|
||||
int nFrameId = m_pGeomDB->GetFirstNameInGroup( m_nOwnerId, MCH_AUXVIEW) ;
|
||||
if ( nFrameId == GDB_ID_NULL)
|
||||
return false ;
|
||||
int nId = m_pGeomDB->GetFirstInGroup( nFrameId) ;
|
||||
|
||||
Reference in New Issue
Block a user