This commit is contained in:
Magne Sjaastad
2018-04-23 23:06:21 +02:00
parent a9b1883dc8
commit 9ac3d806e2
3 changed files with 6 additions and 8 deletions

View File

@@ -282,18 +282,16 @@ std::vector<cvf::Vec3d> RigWellPath::wellPathPointsIncludingInterpolatedIntersec
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RigWellPath::isPolylineTouchingBBox(const std::vector<cvf::Vec3d> &polyLine,
const cvf::BoundingBox& caseBB)
bool RigWellPath::isAnyPointInsideBoundingBox(const std::vector<cvf::Vec3d>& points, const cvf::BoundingBox& boundingBox)
{
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;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------