#3727 Additional packer fixes

This commit is contained in:
Gaute Lindkvist 2018-11-22 11:58:37 +01:00
parent 9dc2452ba1
commit 132408ab6f
2 changed files with 5 additions and 2 deletions

View File

@ -208,8 +208,7 @@ void RivWellPathPartMgr::appendWellPathAttributesToModel(cvf::ModelBasicList*
{
double wellPathRadius = this->wellPathRadius(characteristicCellSize, this->wellPathCollection());
double startMD = attribute->startMD();
double packerLength = wellPathRadius;
double endMD = attribute->startMD() + packerLength;
double endMD = attribute->endMD();
std::vector<cvf::Vec3d> displayCoords;
displayCoords.push_back(displayCoordTransform->transformToDisplayCoord(m_rimWellPath->wellPathGeometry()->interpolatedPointAlongWellPath(startMD)));

View File

@ -217,6 +217,10 @@ void RimWellPathAttribute::fieldChangedByUi(const caf::PdmFieldHandle* changedFi
this->firstAncestorOrThisOfTypeAsserted(wellPath);
m_startMD = wellPath->wellPathGeometry()->measureDepths().front();
}
else if (m_type() == RiaDefines::PACKER)
{
m_endMD = m_startMD + 50;
}
}
if (changedField == &m_startMD)
{