mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2431 : Refactor of well part manager
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
|
||||
#include "RimCase.h"
|
||||
#include "RimWellPath.h"
|
||||
#include "Rim3dView.h"
|
||||
#include "RimWellPathCollection.h"
|
||||
|
||||
#include "RivWellPathPartMgr.h"
|
||||
@@ -32,9 +33,10 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RivWellPathSourceInfo::RivWellPathSourceInfo(RimWellPath* wellPath)
|
||||
RivWellPathSourceInfo::RivWellPathSourceInfo(RimWellPath* wellPath, Rim3dView* view)
|
||||
{
|
||||
m_wellPath = wellPath;
|
||||
m_view = view;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -103,6 +105,8 @@ void RivWellPathSourceInfo::normalizedIntersection(size_t triangleIndex, const c
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t RivWellPathSourceInfo::segmentIndex(size_t triangleIndex) const
|
||||
{
|
||||
return m_wellPath->partMgr()->segmentIndexFromTriangleIndex(triangleIndex);
|
||||
return -1;
|
||||
|
||||
//return m_view->wellPathSegmentIndexFromTriangleIndex(triangleIndex, m_wellPath);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user