mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add seismic 3d view (#10472)
* Show seismic, surfaces, annotations and wellpaths in new view not requiring a grid loaded first.
This commit is contained in:
@@ -252,7 +252,7 @@ void RiuViewer::clearRimView()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuViewer::setDefaultView()
|
||||
void RiuViewer::setDefaultView( const cvf::Vec3d& dir, const cvf::Vec3d& up )
|
||||
{
|
||||
cvf::BoundingBox bb = m_mainRendering->boundingBox();
|
||||
if ( !bb.isValid() )
|
||||
@@ -273,7 +273,7 @@ void RiuViewer::setDefaultView()
|
||||
}
|
||||
}
|
||||
|
||||
m_mainCamera->fitView( bb, -cvf::Vec3d::Z_AXIS, cvf::Vec3d::Y_AXIS );
|
||||
m_mainCamera->fitView( bb, dir, up );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user