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)
|
||||
|
||||
Reference in New Issue
Block a user