EgtGeomKernel 1.6b1 :

- aggiunte funzioni di costruzione superfici Stm da curve
- aggiunta funzione di svuota gruppo
- aggiunta funzione di inverti polilinea.
This commit is contained in:
Dario Sassi
2015-02-02 08:06:49 +00:00
parent 208f5e030e
commit 2dd5001940
10 changed files with 277 additions and 3 deletions
+32
View File
@@ -965,6 +965,38 @@ GeomDB::Erase( GdbObj* pGdbObj)
return true ;
}
//----------------------------------------------------------------------------
bool
GeomDB::EmptyGroup( int nId)
{
// escludo Id non validi
if ( nId < GDB_ID_ROOT)
return false ;
// recupero l'oggetto
GdbObj* pGdbObj ;
pGdbObj = m_IdManager.FindObj( nId) ;
if ( pGdbObj == nullptr)
return false ;
return EmptyGroup( pGdbObj) ;
}
//----------------------------------------------------------------------------
bool
GeomDB::EmptyGroup( GdbObj* pGdbObj)
{
// deve essere valido e non il gruppo radice
if ( pGdbObj == nullptr || pGdbObj == &m_GrpRadix)
return false ;
// deve essere un gruppo
GdbGroup* pGrp = ::GetGdbGroup( pGdbObj) ;
if ( pGrp == nullptr)
return false ;
// lo svuoto
return pGrp->Clear() ;
}
//----------------------------------------------------------------------------
bool
GeomDB::Translate( int nId, const Vector3d& vtMove)