EgtMachKernel :

- modifiche per visualizzazione utensili con lavorazioni.
This commit is contained in:
Dario Sassi
2017-07-01 19:21:38 +00:00
parent 0be287551f
commit d598c1a66b
14 changed files with 177 additions and 38 deletions
+9
View File
@@ -738,6 +738,15 @@ Machine::AdjustExitFrames( int nLay, const MUEXITVECTOR& vMuExit, const Vector3d
string sOut = " Exit " + sName + " with frame not adjustable for AuxDir" ;
LOG_ERROR( GetEMkLogger(), sOut.c_str()) ;
}
// se prima uscita, aggiungo vettore ausiliario
if ( i == 0) {
PtrOwner<IGeoVector3d> pGVec( CreateGeoVector3d()) ;
if ( ! IsNull( pGVec) && pGVec->Set( vtAuxL, frFrame.Orig())) {
int nAvId = m_pGeomDB->AddGeoObj( GDB_ID_NULL, nLay, Release( pGVec)) ;
m_pGeomDB->SetName( nAvId, MCH_AUX_VECT) ;
m_pGeomDB->SetStatus( nAvId, GDB_ST_OFF) ;
}
}
}
}
return true ;