mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added bbox calculation on the fem part for #312
This concludes #312 for now. Wellpaths are now shown in the Geomech views
This commit is contained in:
@@ -244,9 +244,10 @@ void RimGeoMechView::createDisplayModel()
|
||||
else
|
||||
m_viewer->addFrame(scene.p());
|
||||
|
||||
// !! TODO: Compute characteristic cell size
|
||||
double characteristicCellSize_HARDCODED = 300;
|
||||
addWellPathsToScene(scene.p(), cvf::Vec3d(0, 0, 0), characteristicCellSize_HARDCODED, m_viewer->mainScene()->boundingBox(), scaleTransform());
|
||||
double characteristicCellSize = geoMechCase()->geoMechData()->femParts()->characteristicElementSize();
|
||||
cvf::BoundingBox femBBox = geoMechCase()->geoMechData()->femParts()->boundingBox();
|
||||
|
||||
addWellPathsToScene(scene.p(), cvf::Vec3d(0, 0, 0), characteristicCellSize, femBBox, scaleTransform());
|
||||
}
|
||||
|
||||
// If the animation was active before recreating everything, make viewer view current frame
|
||||
@@ -283,9 +284,9 @@ void RimGeoMechView::updateCurrentTimeStep()
|
||||
frameScene->removeAllModels();
|
||||
frameScene->addModel(frameParts.p());
|
||||
|
||||
// !! TODO: Compute characteristic cell size
|
||||
double characteristicCellSize_HARDCODED = 300;
|
||||
addWellPathsToScene(frameScene, cvf::Vec3d(0, 0, 0), characteristicCellSize_HARDCODED, m_viewer->mainScene()->boundingBox(), scaleTransform());
|
||||
double characteristicCellSize = geoMechCase()->geoMechData()->femParts()->characteristicElementSize();
|
||||
cvf::BoundingBox femBBox = geoMechCase()->geoMechData()->femParts()->boundingBox();
|
||||
addWellPathsToScene(frameScene, cvf::Vec3d(0, 0, 0), characteristicCellSize, femBBox, scaleTransform());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user