mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
3D Well Log Curves (#2668): Implement Draw-plane width control
* Apply a factor between 0.25 and 2.5 times the characteristic cell size * Make the offset from the pipe scale with the plane width up to a maximum offset. * Organise the CurveCollection settings into two groups.
This commit is contained in:
@@ -173,7 +173,8 @@ double Riv3dWellLogPlanePartMgr::wellPathCenterToPlotStartOffset(Rim3dWellLogCur
|
||||
|
||||
if (planePosition == Rim3dWellLogCurveCollection::ALONG_WELLPATH)
|
||||
{
|
||||
return m_wellPath->wellPathRadius(cellSize) * 2;
|
||||
double wellPathOffset = std::min(m_wellPath->wellPathRadius(cellSize), 0.1 * planeWidth());
|
||||
return m_wellPath->wellPathRadius(cellSize) + wellPathOffset;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -189,8 +190,8 @@ double Riv3dWellLogPlanePartMgr::planeWidth() const
|
||||
if (!m_gridView) return 0;
|
||||
|
||||
double cellSize = m_gridView->ownerCase()->characteristicCellSize();
|
||||
|
||||
return cellSize * 1.0;
|
||||
const Rim3dWellLogCurveCollection* curveCollection = m_wellPath->rim3dWellLogCurveCollection();
|
||||
return cellSize * curveCollection->planeWidthScaling();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user