mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 07:16:53 -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;
|
||||
|
||||
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;
|
||||
|
||||
@ -111,6 +114,12 @@ void RivWellHeadPartMgr::buildWellHeadParts(size_t frameIndex)
|
||||
cvf::Vec3d whEndPos = whStartPos;
|
||||
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;
|
||||
arrowPosition.z() += 2.0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user