mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#166) WIP: First visible section with hacks
This commit is contained in:
@@ -70,6 +70,7 @@
|
||||
#include <QMessageBox>
|
||||
|
||||
#include <limits.h>
|
||||
#include "RivCrossSectionPartMgr.h"
|
||||
|
||||
|
||||
|
||||
@@ -416,6 +417,15 @@ void RimEclipseView::createDisplayModel()
|
||||
|
||||
}
|
||||
|
||||
{
|
||||
if (m_csPartmgr.isNull()) m_csPartmgr = new RivCrossSectionPartMgr(m_reservoir->reservoirData()->mainGrid(), NULL, NULL);
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
// Compute triangle count, Debug only
|
||||
/*
|
||||
if (false)
|
||||
|
||||
@@ -55,6 +55,7 @@ class RimEclipseCellColors;
|
||||
class RimEclipseWellCollection;
|
||||
class RiuViewer;
|
||||
class RivReservoirPipesPartMgr;
|
||||
class RivCrossSectionPartMgr;
|
||||
|
||||
namespace cvf
|
||||
{
|
||||
@@ -181,6 +182,7 @@ private:
|
||||
|
||||
cvf::ref<RivReservoirViewPartMgr> m_reservoirGridPartManager;
|
||||
cvf::ref<RivReservoirPipesPartMgr> m_pipesPartManager;
|
||||
cvf::ref<RivCrossSectionPartMgr> m_csPartmgr;
|
||||
|
||||
std::vector<RivCellSetEnum> m_visibleGridParts;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user