mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#11109 Improve visualization of MSW with valve branches
Increase default segment threshold to 4 Add an optional setting to override the default value Use this threshold to merge short branches into parent branch
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "RigCell.h"
|
||||
#include "RigEclipseCaseData.h"
|
||||
#include "RigMainGrid.h"
|
||||
#include "RigMswCenterLineCalculator.h"
|
||||
#include "RigSimWellData.h"
|
||||
#include "RigSimulationWellCenterLineCalculator.h"
|
||||
#include "RigWellResultFrame.h"
|
||||
@@ -188,6 +189,21 @@ std::vector<const RigWellPath*> RimSimWellInView::wellPipeBranches() const
|
||||
return std::vector<const RigWellPath*>();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<SimulationWellCellBranch> RimSimWellInView::wellBranchesForVisualization() const
|
||||
{
|
||||
const RigSimWellData* simWellData = this->simWellData();
|
||||
|
||||
if ( simWellData && simWellData->isMultiSegmentWell() )
|
||||
{
|
||||
return RigMswCenterLineCalculator::calculateMswWellPipeGeometry( this );
|
||||
}
|
||||
|
||||
return RigSimulationWellCenterLineCalculator::calculateWellPipeStaticCenterline( this );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// frameIndex = -1 will use the static well frame
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user