mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Updated file paths in regression tests
p4#: 22097
This commit is contained in:
parent
f2be4dedaf
commit
3f61c26f0b
@ -84,6 +84,9 @@ void RivWellHeadPartMgr::buildWellHeadParts(size_t frameIndex)
|
|||||||
if (m_rimReservoirView.isNull()) return;
|
if (m_rimReservoirView.isNull()) return;
|
||||||
|
|
||||||
RigCaseData* rigReservoir = m_rimReservoirView->eclipseCase()->reservoirData();
|
RigCaseData* rigReservoir = m_rimReservoirView->eclipseCase()->reservoirData();
|
||||||
|
cvf::Vec3d activeCellsBoundingBoxMax = rigReservoir->activeCellInfo(RifReaderInterface::MATRIX_RESULTS)->geometryBoundingBox().max();
|
||||||
|
activeCellsBoundingBoxMax -= rigReservoir->mainGrid()->displayModelOffset();
|
||||||
|
activeCellsBoundingBoxMax.transformPoint(m_scaleTransform->worldTransform());
|
||||||
|
|
||||||
RimWell* well = m_rimWell;
|
RimWell* well = m_rimWell;
|
||||||
|
|
||||||
@ -111,6 +114,12 @@ void RivWellHeadPartMgr::buildWellHeadParts(size_t frameIndex)
|
|||||||
cvf::Vec3d whEndPos = whStartPos;
|
cvf::Vec3d whEndPos = whStartPos;
|
||||||
whEndPos.z() += characteristicCellSize * m_rimReservoirView->wellCollection()->wellHeadScaleFactor();
|
whEndPos.z() += characteristicCellSize * m_rimReservoirView->wellCollection()->wellHeadScaleFactor();
|
||||||
|
|
||||||
|
// Move well head top arrow point at the top of active cell region to make sure all well heads are visible
|
||||||
|
if (whEndPos.z() < activeCellsBoundingBoxMax.z())
|
||||||
|
{
|
||||||
|
whEndPos.z() = activeCellsBoundingBoxMax.z();
|
||||||
|
}
|
||||||
|
|
||||||
cvf::Vec3d arrowPosition = whEndPos;
|
cvf::Vec3d arrowPosition = whEndPos;
|
||||||
arrowPosition.z() += 2.0;
|
arrowPosition.z() += 2.0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user