#1040 Established basis for fracture visualization

This commit is contained in:
Magne Sjaastad
2017-01-04 08:10:02 +01:00
parent f8ef9bddc7
commit d1bf189154
17 changed files with 491 additions and 12 deletions

View File

@@ -19,16 +19,19 @@
/////////////////////////////////////////////////////////////////////////////////
#include "RivWellPathPartMgr.h"
#include "RiaApplication.h"
#include "RigWellPath.h"
#include "RimFracture.h"
#include "RimWellPath.h"
#include "RimWellPathCollection.h"
#include "RimWellPathFracture.h"
#include "RimWellPathFractureCollection.h"
#include "RivPipeGeometryGenerator.h"
#include "RivWellFracturesPartMgr.h"
#include "RivWellPathPartMgr.h"
#include "RivWellPathSourceInfo.h"
#include "cafEffectGenerator.h"
@@ -81,6 +84,26 @@ RivWellPathPartMgr::~RivWellPathPartMgr()
clearAllBranchData();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RivWellPathPartMgr::appendFracturePartsToModel(cvf::ModelBasicList* model)
{
// Append well path fractures
std::vector<RimFracture*> fractures;
for (RimWellPathFracture* f : m_rimWellPath->fractureCollection->fractures)
{
if (!f->hasValidGeometry())
{
f->computeGeometry();
}
fractures.push_back(f);
}
RivWellFracturesPartMgr::appendFracturePartsToModel(fractures, model);
}
//--------------------------------------------------------------------------------------------------
/// The pipe geometry needs to be rebuilt on scale change to keep the pipes round
//--------------------------------------------------------------------------------------------------
@@ -265,6 +288,8 @@ void RivWellPathPartMgr::appendStaticGeometryPartsToModel(cvf::ModelBasicList* m
{
model->addPart(m_wellLabelPart.p());
}
appendFracturePartsToModel(model);
}
//--------------------------------------------------------------------------------------------------