(#166) WIP: First visible section with hacks

This commit is contained in:
Jacob Støren
2015-11-17 09:23:33 +01:00
parent 7845d9bd3c
commit 57f7c1229a
7 changed files with 358 additions and 6 deletions

View File

@@ -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)