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:
Jacob Støren committed 2015-06-11 19:13:04 +02:00
1 parent b59695f352
commit ceeb38d13a
6 files changed
+42 -8

No files matched your search

@@ -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());
}
}