EgtGeomKernel 1.5a4 : Implementazione BoundingBox.

This commit is contained in:
Dario Sassi
2014-01-16 22:02:41 +00:00
parent 2e00faa02b
commit 7479cb4162
34 changed files with 982 additions and 233 deletions
+30
View File
@@ -405,6 +405,36 @@ GeomDB::GetParentId( int nId)
return pGdbNode->GetParentId() ;
}
//----------------------------------------------------------------------------
bool
GeomDB::GetLocalBBox( int nId, BBox3d& b3Loc) const
{
const GdbNode* pGdbNode ;
// recupero l'oggetto
if ( ( pGdbNode = (const_cast<GeomDB*> (this))->GetGdbNode( nId)) == nullptr)
return false ;
// eseguo l'operazione
return pGdbNode->GetLocalBBox( b3Loc) ;
}
//----------------------------------------------------------------------------
bool
GeomDB::GetBBox( int nId, const Frame3d& frRef, BBox3d& b3Ref) const
{
const GdbNode* pGdbNode ;
// recupero l'oggetto
if ( ( pGdbNode = (const_cast<GeomDB*> (this))->GetGdbNode( nId)) == nullptr)
return false ;
// eseguo l'operazione
return pGdbNode->GetBBox( frRef, b3Ref) ;
}
//----------------------------------------------------------------------------
int
GeomDB::Copy( int nIdSou, int nIdDest, int nParentIdDest)