mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add debug output of AABB tree
This commit is contained in:
@@ -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 ) );
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user