mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2552 Minor refactoring
This commit is contained in:
parent
543c99371b
commit
e314450e2e
@ -104,6 +104,8 @@ void RivSimWellPipesPartMgr::buildWellPipeParts()
|
|||||||
m_rimWell->calculateWellPipeStaticCenterLine(m_pipeBranchesCLCoords, pipeBranchesCellIds);
|
m_rimWell->calculateWellPipeStaticCenterLine(m_pipeBranchesCLCoords, pipeBranchesCellIds);
|
||||||
|
|
||||||
double pipeRadius = m_rimWell->pipeRadius();
|
double pipeRadius = m_rimWell->pipeRadius();
|
||||||
|
int crossSectionVertexCount = m_rimWell->pipeCrossSectionVertexCount();
|
||||||
|
cvf::ref<caf::DisplayCoordTransform> displayCoordXf = m_rimReservoirView->displayCoordTransform();
|
||||||
|
|
||||||
for (size_t brIdx = 0; brIdx < pipeBranchesCellIds.size(); ++brIdx)
|
for (size_t brIdx = 0; brIdx < pipeBranchesCellIds.size(); ++brIdx)
|
||||||
{
|
{
|
||||||
@ -117,13 +119,12 @@ void RivSimWellPipesPartMgr::buildWellPipeParts()
|
|||||||
pbd.m_pipeGeomGenerator = new RivPipeGeometryGenerator;
|
pbd.m_pipeGeomGenerator = new RivPipeGeometryGenerator;
|
||||||
|
|
||||||
pbd.m_pipeGeomGenerator->setRadius(pipeRadius);
|
pbd.m_pipeGeomGenerator->setRadius(pipeRadius);
|
||||||
pbd.m_pipeGeomGenerator->setCrossSectionVertexCount(m_rimReservoirView->wellCollection()->pipeCrossSectionVertexCount());
|
pbd.m_pipeGeomGenerator->setCrossSectionVertexCount(crossSectionVertexCount);
|
||||||
|
|
||||||
cvf::ref<cvf::Vec3dArray> cvfCoords = new cvf::Vec3dArray;
|
cvf::ref<cvf::Vec3dArray> cvfCoords = new cvf::Vec3dArray;
|
||||||
cvfCoords->assign(m_pipeBranchesCLCoords[brIdx]);
|
cvfCoords->assign(m_pipeBranchesCLCoords[brIdx]);
|
||||||
|
|
||||||
// Scale the centerline coordinates using the Z-scale transform of the grid and correct for the display offset.
|
// Scale the centerline coordinates using the Z-scale transform of the grid and correct for the display offset.
|
||||||
cvf::ref<caf::DisplayCoordTransform> displayCoordXf = m_rimReservoirView->displayCoordTransform();
|
|
||||||
|
|
||||||
for (size_t cIdx = 0; cIdx < cvfCoords->size(); ++cIdx)
|
for (size_t cIdx = 0; cIdx < cvfCoords->size(); ++cIdx)
|
||||||
{
|
{
|
||||||
|
@ -281,6 +281,16 @@ double RimSimWellInView::pipeRadius()
|
|||||||
return pipeRadius;
|
return pipeRadius;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
int RimSimWellInView::pipeCrossSectionVertexCount()
|
||||||
|
{
|
||||||
|
RimSimWellInViewCollection* simWellCollection = nullptr;
|
||||||
|
this->firstAncestorOrThisOfTypeAsserted(simWellCollection);
|
||||||
|
return simWellCollection->pipeCrossSectionVertexCount();
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -72,6 +72,7 @@ public:
|
|||||||
|
|
||||||
void wellHeadTopBottomPosition(int frameIndex, cvf::Vec3d* top, cvf::Vec3d* bottom);
|
void wellHeadTopBottomPosition(int frameIndex, cvf::Vec3d* top, cvf::Vec3d* bottom);
|
||||||
double pipeRadius();
|
double pipeRadius();
|
||||||
|
int pipeCrossSectionVertexCount();
|
||||||
|
|
||||||
void schedule2dIntersectionViewUpdate();
|
void schedule2dIntersectionViewUpdate();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user