mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7892 Basic support for display of surface lines and bands on intersections
Guard divide by zero issues 2D Intersection View: Do not add parts with wrong coordinates Add bounding box search tree Add support display of intersection lines for selected surfaces Show band between two first intersection lines
This commit is contained in:
@@ -132,6 +132,9 @@ void RivWindowEdgeAxesOverlayItem::updateFromCamera( const Camera* camera )
|
||||
windowMaxInDomain = m_dispalyCoordsTransform->transformToDomainCoord( windowMaxInDomain );
|
||||
}
|
||||
|
||||
// For extreme zoom factors we might end up with both variables as zero. Return to avoid divide by zero.
|
||||
if ( windowOrigoInDomain == windowMaxInDomain ) return;
|
||||
|
||||
double domainMinX = windowOrigoInDomain.x();
|
||||
double domainMaxX = windowMaxInDomain.x();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user