#2969 Fracture Truncations : Visualize fault truncations

This commit is contained in:
Magne Sjaastad
2018-05-30 14:01:50 +02:00
parent 61a7d5c7ba
commit b0ee5a2834
8 changed files with 81 additions and 35 deletions

View File

@@ -28,10 +28,12 @@
#include "RigWellPath.h"
#include "RimCase.h"
#include "RimEclipseCase.h"
#include "RimEclipseView.h"
#include "RimEllipseFractureTemplate.h"
#include "RimFracture.h"
#include "RimFractureContainment.h"
#include "RimFractureContainmentTools.h"
#include "RimFractureTemplate.h"
#include "RimRegularLegendConfig.h"
#include "RimSimWellInView.h"
@@ -662,9 +664,13 @@ cvf::ref<cvf::Part> RivWellFracturePartMgr::createContainmentMaskPart(const RimE
std::vector<cvf::Vec3f> maskTriangles;
RimEclipseCase* eclipseCase = nullptr;
activeView.firstAncestorOrThisOfType(eclipseCase);
auto containedFractureCells = RimFractureContainmentTools::fracturedCellsTruncatedByFaults(eclipseCase, m_rimFracture);
for (size_t resCellIdx : cellCandidates)
{
if (!m_rimFracture->isEclipseCellWithinContainment(activeView.mainGrid(), resCellIdx))
if (!m_rimFracture->isEclipseCellWithinContainment(activeView.mainGrid(), containedFractureCells, resCellIdx))
{
// Calculate Eclipse cell intersection with fracture plane