Janitor: Make sure NNC connections are computed before visibility is evaluated

This commit is contained in:
Magne Sjaastad 2022-01-05 15:58:41 +01:00
parent 87780b2b8a
commit f99bfb04b9

View File

@ -155,6 +155,12 @@ void RivFaultGeometryGenerator::computeArrays( bool onlyShowFacesWithDefinedNeig
cvf::Vec3d offset = m_grid->displayModelOffset();
if ( onlyShowFacesWithDefinedNeighbors )
{
// Make sure the connection polygon is computed, as this is used as criteria for visibility
m_nncData->ensureAllConnectionDataIsProcessed();
}
auto connIndices = m_fault->connectionIndices();
auto& connections = m_nncData->availableConnections();