mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2482 Add wellhead pipe piece to simulation wells.
This commit is contained in:
@@ -767,7 +767,7 @@ cvf::ref<cvf::Part> createStdLinePart(cvf::DrawableGeo* geometry,
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RivIntersectionPartMgr::appendWellPipePartsToModel(cvf::ModelBasicList* model, cvf::Transform* scaleTransform)
|
||||
{
|
||||
if (m_rimCrossSection.isNull()) return;
|
||||
if (m_rimCrossSection.isNull() || m_crossSectionGenerator.isNull()) return;
|
||||
|
||||
// Get information on how to draw the pipe
|
||||
|
||||
@@ -775,6 +775,7 @@ void RivIntersectionPartMgr::appendWellPipePartsToModel(cvf::ModelBasicList* mod
|
||||
double pipeRadius = 1;
|
||||
int pipeCrossSectionVxCount = 6;
|
||||
cvf::Color3f wellPipeColor = cvf::Color3f::GRAY;
|
||||
double characteristicCellSize = 0;
|
||||
|
||||
if ( m_rimCrossSection->type() == RimIntersection::CS_SIMULATION_WELL )
|
||||
{
|
||||
@@ -790,7 +791,7 @@ void RivIntersectionPartMgr::appendWellPipePartsToModel(cvf::ModelBasicList* mod
|
||||
wellPipeColor = simWellInView->wellPipeColor();
|
||||
|
||||
createSourceInfoFunc = [&](size_t brIdx) { return new RivSimWellPipeSourceInfo(simWellInView, brIdx); };
|
||||
|
||||
characteristicCellSize = eclView->eclipseCase()->characteristicCellSize();
|
||||
}
|
||||
else if (m_rimCrossSection->type() == RimIntersection::CS_WELL_PATH)
|
||||
{
|
||||
@@ -854,6 +855,8 @@ void RivIntersectionPartMgr::appendWellPipePartsToModel(cvf::ModelBasicList* mod
|
||||
(*cvfCoords)[cIdx].transformPoint(scaleTransform->worldTransform());
|
||||
}
|
||||
|
||||
(*cvfCoords)[0].z() += characteristicCellSize;
|
||||
|
||||
pbd.m_pipeGeomGenerator->setPipeCenterCoords(cvfCoords.p());
|
||||
auto surfaceDrawable = pbd.m_pipeGeomGenerator->createPipeSurface();
|
||||
auto centerLineDrawable = pbd.m_pipeGeomGenerator->createCenterLine();
|
||||
|
||||
Reference in New Issue
Block a user