Add debug output of AABB tree

This commit is contained in:
Magne Sjaastad
2022-12-16 14:51:56 +01:00
parent 529c9af9a4
commit befab37588
5 changed files with 34 additions and 17 deletions

View File

@@ -651,7 +651,11 @@ void RimEclipseCase::computeCachedData()
{
auto task = pInf.task( "Calculating Cell Search Tree", 10 );
rigEclipseCase->mainGrid()->computeCachedData();
std::string aabbTreeInfo;
rigEclipseCase->mainGrid()->computeCachedData( &aabbTreeInfo );
RiaLogging::info( QString::fromStdString( aabbTreeInfo ) );
}
{

View File

@@ -264,13 +264,14 @@ void RigMainGrid::setDisplayModelOffset( cvf::Vec3d offset )
/// Compute cell ranges for active and valid cells
/// Compute bounding box in world coordinates based on node coordinates
//--------------------------------------------------------------------------------------------------
void RigMainGrid::computeCachedData()
void RigMainGrid::computeCachedData( std::string* aabbTreeInfo )
{
initAllSubGridsParentGridPointer();
initAllSubCellsMainGridCellIndex();
m_cellSearchTree = nullptr;
buildCellSearchTree();
if ( aabbTreeInfo ) *aabbTreeInfo = m_cellSearchTree->info();
}
//--------------------------------------------------------------------------------------------------

View File

@@ -88,7 +88,7 @@ public:
cvf::StructGridInterface::FaceType face ) const;
bool isFaceNormalsOutwards() const;
void computeCachedData();
void computeCachedData( std::string* aabbTreeInfo = nullptr );
void initAllSubGridsParentGridPointer();
cvf::Vec3d displayModelOffset() const override;