Skip bounding box check when drawing seismic outline, as it could go far above reservoir

This commit is contained in:
jonjenssen
2023-05-08 17:01:40 +02:00
committed by jonjenssen
parent 54e901b79b
commit 00e533ab10
4 changed files with 29 additions and 2 deletions

View File

@@ -479,9 +479,13 @@ cvf::ref<RigPolyLinesData> RimSeismicSection::polyLinesData() const
if ( m_showSeismicOutline() && m_seismicData() != nullptr )
{
std::vector<cvf::Vec3d> outline = m_seismicData()->worldOutline();
auto outline = m_seismicData()->worldOutline();
if ( outline.size() == 8 )
{
// seismic bounding box could be all the way up to the sea surface,
// make sure to skip bounding box check in drawing code
pld->setSkipBoundingBoxCheck( true );
std::vector<cvf::Vec3d> box;
for ( auto i : { 4, 0, 1, 3, 2, 0 } )