mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2663 Rename
This commit is contained in:
@@ -111,7 +111,7 @@ bool RivWellPathPartMgr::isWellPathWithinBoundingBox(const cvf::BoundingBox& wel
|
|||||||
relevantWellpathBBox.add(casemax + addSize);
|
relevantWellpathBBox.add(casemax + addSize);
|
||||||
relevantWellpathBBox.add(casemin - addSize);
|
relevantWellpathBBox.add(casemin - addSize);
|
||||||
|
|
||||||
if (!RigWellPath::isPolylineTouchingBBox(wellpathCenterLine, relevantWellpathBBox))
|
if (!RigWellPath::isAnyPointInsideBoundingBox(wellpathCenterLine, relevantWellpathBBox))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -282,18 +282,16 @@ std::vector<cvf::Vec3d> RigWellPath::wellPathPointsIncludingInterpolatedIntersec
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
bool RigWellPath::isPolylineTouchingBBox(const std::vector<cvf::Vec3d> &polyLine,
|
bool RigWellPath::isAnyPointInsideBoundingBox(const std::vector<cvf::Vec3d>& points, const cvf::BoundingBox& boundingBox)
|
||||||
const cvf::BoundingBox& caseBB)
|
|
||||||
{
|
{
|
||||||
for ( const cvf::Vec3d& point : polyLine )
|
for (const cvf::Vec3d& point : points)
|
||||||
{
|
{
|
||||||
if ( caseBB.contains(point) ) return true;
|
if (boundingBox.contains(point)) return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -60,8 +60,8 @@ public:
|
|||||||
|
|
||||||
std::vector<cvf::Vec3d> wellPathPointsIncludingInterpolatedIntersectionPoint(double intersectionMeasuredDepth) const;
|
std::vector<cvf::Vec3d> wellPathPointsIncludingInterpolatedIntersectionPoint(double intersectionMeasuredDepth) const;
|
||||||
|
|
||||||
static bool isPolylineTouchingBBox(const std::vector<cvf::Vec3d> &polyLine,
|
static bool isAnyPointInsideBoundingBox(const std::vector<cvf::Vec3d>& points, const cvf::BoundingBox& boundingBox);
|
||||||
const cvf::BoundingBox& caseBB);
|
|
||||||
static std::vector<cvf::Vec3d> clipPolylineStartAboveZ(const std::vector<cvf::Vec3d> &polyLine,
|
static std::vector<cvf::Vec3d> clipPolylineStartAboveZ(const std::vector<cvf::Vec3d> &polyLine,
|
||||||
double maxZ,
|
double maxZ,
|
||||||
double * horizontalLengthAlongWellToClipPoint,
|
double * horizontalLengthAlongWellToClipPoint,
|
||||||
|
|||||||
Reference in New Issue
Block a user