mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Check for valid bounding boxes before testing for intersection
This commit is contained in:
@@ -698,6 +698,8 @@ void RimView::setScaleZAndUpdate(double scaleZ)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimView::isBoundingBoxesOverlappingOrClose(const cvf::BoundingBox& sourceBB, const cvf::BoundingBox& destBB)
|
||||
{
|
||||
if (!sourceBB.isValid() || !destBB.isValid()) return false;
|
||||
|
||||
if (sourceBB.intersects(destBB)) return true;
|
||||
|
||||
double largestExtent = sourceBB.extent().length();
|
||||
|
||||
Reference in New Issue
Block a user