mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Adjust an argument order in RigWellPathGeometryTools
This commit is contained in:
@@ -133,7 +133,7 @@ void Riv3dWellLogCurveGeometryGenerator::createCurveVerticesAndIndices(const std
|
||||
resultValues.end());
|
||||
|
||||
std::vector<cvf::Vec3d> pairsOfWellPathPoints;
|
||||
RigWellPathGeometryTools::calculatePairsOfClosestSamplingPointsAlongWellPath(wellPathGeometry(), &pairsOfWellPathPoints, interpolatedWellPathPoints);
|
||||
RigWellPathGeometryTools::calculatePairsOfClosestSamplingPointsAlongWellPath(wellPathGeometry(), interpolatedWellPathPoints, &pairsOfWellPathPoints);
|
||||
|
||||
std::vector<cvf::Vec3d> pointNormals = RigWellPathGeometryTools::calculateLineSegmentNormals(wellPathGeometry(), planeAngle, pairsOfWellPathPoints, RigWellPathGeometryTools::LINE_SEGMENTS);
|
||||
if (interpolatedWellPathPoints.size() != pointNormals.size()) return;
|
||||
|
||||
@@ -89,7 +89,7 @@ cvf::ref<cvf::DrawableGeo> Riv3dWellLogGridGeometryGenerator::createGrid(const c
|
||||
std::vector<cvf::Vec3d> pointNormals;
|
||||
|
||||
std::vector<cvf::Vec3d> closestPoints;
|
||||
RigWellPathGeometryTools::calculatePairsOfClosestSamplingPointsAlongWellPath(wellPathGeometry(), &closestPoints, gridPoints);
|
||||
RigWellPathGeometryTools::calculatePairsOfClosestSamplingPointsAlongWellPath(wellPathGeometry(), gridPoints, &closestPoints);
|
||||
|
||||
pointNormals = RigWellPathGeometryTools::calculateLineSegmentNormals(wellPathGeometry(), planeAngle, closestPoints, RigWellPathGeometryTools::LINE_SEGMENTS);
|
||||
if (pointNormals.size() != gridPoints.size()) return nullptr;
|
||||
|
||||
@@ -94,7 +94,9 @@ std::vector<cvf::Vec3d> RigWellPathGeometryTools::calculateLineSegmentNormals(co
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigWellPathGeometryTools::calculatePairsOfClosestSamplingPointsAlongWellPath(const RigWellPath* wellPathGeometry, std::vector<cvf::Vec3d>* closestWellPathPoints, std::vector<cvf::Vec3d>& points)
|
||||
void RigWellPathGeometryTools::calculatePairsOfClosestSamplingPointsAlongWellPath(const RigWellPath* wellPathGeometry,
|
||||
const std::vector<cvf::Vec3d>& points,
|
||||
std::vector<cvf::Vec3d>* closestWellPathPoints)
|
||||
{
|
||||
CVF_ASSERT(closestWellPathPoints != nullptr);
|
||||
|
||||
|
||||
@@ -44,6 +44,6 @@ public:
|
||||
VertexOrganization organization);
|
||||
|
||||
static void calculatePairsOfClosestSamplingPointsAlongWellPath(const RigWellPath* wellPathGeometry,
|
||||
std::vector<cvf::Vec3d>* closestWellPathPoints,
|
||||
std::vector<cvf::Vec3d>& points);
|
||||
const std::vector<cvf::Vec3d>& points,
|
||||
std::vector<cvf::Vec3d>* closestWellPathPoints);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user