EgtGeomKernel 1.5a4 : Implementazione BoundingBox.
This commit is contained in:
+30
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user