From 4f40b3de1f1a2d62c346a303703dde57568a85e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20St=C3=B8ren?= Date: Wed, 18 Nov 2015 11:47:52 +0100 Subject: [PATCH] (#166) Test code commented out of EclipseView --- .../ProjectDataModel/RimEclipseView.cpp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimEclipseView.cpp b/ApplicationCode/ProjectDataModel/RimEclipseView.cpp index a98f24b1a5..2d02523ede 100644 --- a/ApplicationCode/ProjectDataModel/RimEclipseView.cpp +++ b/ApplicationCode/ProjectDataModel/RimEclipseView.cpp @@ -417,13 +417,19 @@ void RimEclipseView::createDisplayModel() } + // Hack to do testing of cross section { - if (m_csPartmgr.isNull()) m_csPartmgr = new RivCrossSectionPartMgr(m_reservoir->reservoirData()->mainGrid(), NULL, NULL); +#if 0 + cvf::ref tempMod = new cvf::ModelBasicList; + + m_pipesPartManager->appendDynamicGeometryPartsToModel(tempMod.p(), 3); + if (m_csPartmgr.isNull()) m_csPartmgr = new RivCrossSectionPartMgr(m_reservoir->reservoirData()->mainGrid(), NULL, NULL, + (*m_pipesPartManager->centerLineOfWellBranches(0))[0]); for (size_t frameIdx = 0; frameIdx < frameModels.size(); ++frameIdx) { - m_csPartmgr->appendNativeCrossSectionFacesToModel(frameModels[frameIdx].p()); - frameModels[frameIdx]->part(frameModels[frameIdx]->partCount()-1)->setTransform(m_reservoirGridPartManager->scaleTransform()); + m_csPartmgr->appendNativeCrossSectionFacesToModel(frameModels[frameIdx].p(), m_reservoirGridPartManager->scaleTransform()); } +#endif } // Compute triangle count, Debug only @@ -652,6 +658,11 @@ void RimEclipseView::updateCurrentTimeStep() this->updateFaultColors(); + // Hack to do testing of cross section + { + // this->m_csPartmgr->updateCellResultColor(m_currentTimeStep, this->cellResult()); + } + // Well pipes if (m_viewer) {