Updated file paths in regression tests

p4#: 22097
This commit is contained in:
Magne Sjaastad 2013-08-06 09:52:01 +02:00
parent f2be4dedaf
commit 3f61c26f0b

View File

@ -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;