mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
First odb file read and displayed
This commit is contained in:
parent
0f3d9ffa60
commit
c0217a68a4
@ -247,9 +247,10 @@ void RimGeoMechView::createDisplayModelAndRedraw()
|
|||||||
|
|
||||||
cvf::ref<cvf::Scene> scene = new cvf::Scene;
|
cvf::ref<cvf::Scene> scene = new cvf::Scene;
|
||||||
scene->addModel(cvfModel.p());
|
scene->addModel(cvfModel.p());
|
||||||
|
scene->updateBoundingBoxesRecursive();
|
||||||
|
|
||||||
m_viewer->setMainScene(scene.p());
|
m_viewer->setMainScene(scene.p());
|
||||||
|
m_viewer->zoomAll();
|
||||||
m_viewer->update();
|
m_viewer->update();
|
||||||
}
|
}
|
||||||
RiuMainWindow::instance()->refreshAnimationActions();
|
RiuMainWindow::instance()->refreshAnimationActions();
|
||||||
|
@ -531,7 +531,12 @@ void RiuViewer::pickPointAndFace(int winPosX, int winPosY, cvf::Vec3d* localInte
|
|||||||
{
|
{
|
||||||
CVF_ASSERT(hitItems.count() > 0);
|
CVF_ASSERT(hitItems.count() > 0);
|
||||||
|
|
||||||
double characteristicCellSize = m_reservoirView->eclipseCase()->reservoirData()->mainGrid()->characteristicIJCellSize();
|
double characteristicCellSize = 5.0;
|
||||||
|
if (m_reservoirView && m_reservoirView->eclipseCase())
|
||||||
|
{
|
||||||
|
characteristicCellSize = m_reservoirView->eclipseCase()->reservoirData()->mainGrid()->characteristicIJCellSize();
|
||||||
|
}
|
||||||
|
|
||||||
double pickDepthThresholdSquared = characteristicCellSize / 100.0;
|
double pickDepthThresholdSquared = characteristicCellSize / 100.0;
|
||||||
pickDepthThresholdSquared = pickDepthThresholdSquared * pickDepthThresholdSquared;
|
pickDepthThresholdSquared = pickDepthThresholdSquared * pickDepthThresholdSquared;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user