EgtExecutor 1.9g1 :
- aggiunta gestione import punti in Exe e LUA - corretta gestione regione sotto con lati inclinati interni di pezzi piatti (flatParts) - aggiunta funzione Exe e Lua CAvGetToolOutline per avere profilo di utensile in uso nella CollisionAvoidance.
This commit is contained in:
@@ -66,6 +66,29 @@ ExeCAvSetGenTool( int nToolSectId)
|
||||
return s_pCAvTlStm->SetGenTool( pCC) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
int
|
||||
ExeCAvGetToolOutline( int nDestGrpId)
|
||||
{
|
||||
if ( IsNull( s_pCAvTlStm))
|
||||
return GDB_ID_NULL ;
|
||||
// verifico DB geometrico
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, GDB_ID_NULL)
|
||||
// recupero outline dell'utensile
|
||||
const ICurveComposite* pCC = s_pCAvTlStm->GetToolOutline() ;
|
||||
if ( pCC == nullptr || ! pCC->IsValid())
|
||||
return GDB_ID_NULL ;
|
||||
// ne faccio una copia
|
||||
PtrOwner<ICurveComposite> pCopy( pCC->Clone()) ;
|
||||
if ( IsNull( pCopy))
|
||||
return GDB_ID_NULL ;
|
||||
// inserisco la copia nel DB geometrico
|
||||
int nId = pGeomDB->AddGeoObj( GDB_ID_NULL, nDestGrpId, Release( pCopy)) ;
|
||||
ExeSetModified() ;
|
||||
return nId ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
double
|
||||
ExeCAvToolPosStm( const Point3d& ptP, const Vector3d& vtAx, int nSurfTmId, const Vector3d& vtMove, int nRefType)
|
||||
|
||||
Reference in New Issue
Block a user