#2601 Well CF Visualization: Support regeneration of viz on time step changes

This commit is contained in:
Magne Sjaastad
2018-03-15 07:52:54 +01:00
parent ab67dcfd1f
commit c8b92a0c89
5 changed files with 20 additions and 21 deletions

View File

@@ -681,15 +681,7 @@ void Rim3dView::addDynamicWellPathsToModel(cvf::ModelBasicList* wellPathModelBas
cvf::ref<caf::DisplayCoordTransform> transForm = displayCoordTransform();
QDateTime currentTimeStamp;
std::vector<QDateTime> timeStamps = ownerCase()->timeStepDates();
if (currentTimeStep() < static_cast<int>(timeStamps.size()))
{
currentTimeStamp = timeStamps[currentTimeStep()];
}
m_wellPathsPartManager->appendDynamicGeometryPartsToModel(wellPathModelBasicList,
currentTimeStamp,
this->ownerCase()->characteristicCellSize(),
wellPathClipBoundingBox,
transForm.p());