EgtGeomKernel 1.5a4 : Implementazione BoundingBox.
This commit is contained in:
@@ -93,3 +93,28 @@ GeoPoint3d::Load( Scanner& TheScanner)
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
GeoPoint3d::GetLocalBBox( BBox3d& b3Loc) const
|
||||
{
|
||||
// assegno il box in locale
|
||||
b3Loc.Set( m_ptP) ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
GeoPoint3d::GetBBox( const Frame3d& frRef, BBox3d& b3Ref) const
|
||||
{
|
||||
// verifico validità del frame
|
||||
if ( frRef.GetType() == Frame3d::ERR)
|
||||
return false ;
|
||||
// porto il punto nel riferimento passato
|
||||
Point3d ptP = m_ptP ;
|
||||
ptP.ToGlob( frRef) ;
|
||||
// assegno il box nel riferimento
|
||||
b3Ref.Set( ptP) ;
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user