Create Intersection: Crash for Intersection along Simulation well

Check if any geometry is present before accessing geometry data
This commit is contained in:
Magne Sjaastad
2023-12-08 08:34:55 +01:00
parent 47e9046785
commit 681acfb0e0

View File

@@ -240,6 +240,8 @@ void RigVisibleCategoriesCalculator::appendVisibleIntersectionCells( RimEclipseV
for ( const auto geoGenerator : intersectionGeoGenerators )
{
if ( !geoGenerator->isAnyGeometryPresent() ) continue;
for ( const auto& cIdx : geoGenerator->triangleToCellIndex() )
{
visibleCells.insert( cIdx );