Files
ResInsight/ApplicationLibCode/ReservoirDataModel/Well/RigWellPathGeometryTools.h
T

49 lines
1.8 KiB
C++
Raw Normal View History

/////////////////////////////////////////////////////////////////////////////////
//
2019-01-09 15:21:38 +01:00
// Copyright (C) 2018- Equinor ASA
//
// ResInsight is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "cvfVector3.h"
2022-03-18 13:16:07 +01:00
#include <QPolygon>
2019-08-30 15:23:11 +02:00
2021-08-13 16:48:33 +02:00
#include <gsl/gsl>
2022-03-18 13:16:07 +01:00
#include <vector>
2021-08-13 16:48:33 +02:00
class RigWellPath;
//==================================================================================================
2019-09-04 10:54:41 +02:00
///
//==================================================================================================
namespace RigWellPathGeometryTools
{
enum VertexOrganization
{
LINE_SEGMENTS,
POLYLINE
};
2019-09-02 15:11:00 +02:00
std::vector<cvf::Vec3d> calculateLineSegmentNormals( const std::vector<cvf::Vec3d>& vertices, double angle );
std::vector<double> interpolateMdFromTvd( const std::vector<double>& originalMdValues,
const std::vector<double>& originalTvdValues,
const std::vector<double>& tvdValuesToInterpolateFrom );
2022-03-18 13:16:07 +01:00
std::pair<double, double> calculateAzimuthAndInclinationAtMd( double measuredDepth, gsl::not_null<const RigWellPath*> wellPathGeometry );
2022-03-18 13:16:07 +01:00
std::vector<double> calculateMeasuredDepth( const std::vector<cvf::Vec3d>& wellPathPoints, double startMd = 0.0 );
} // namespace RigWellPathGeometryTools