///////////////////////////////////////////////////////////////////////////////// // // 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 // for more details. // ///////////////////////////////////////////////////////////////////////////////// #pragma once #include "cvfVector3.h" #include #include #include class RigWellPath; //================================================================================================== /// //================================================================================================== namespace RigWellPathGeometryTools { enum VertexOrganization { LINE_SEGMENTS, POLYLINE }; std::vector calculateLineSegmentNormals( const std::vector& vertices, double angle ); std::vector interpolateMdFromTvd( const std::vector& originalMdValues, const std::vector& originalTvdValues, const std::vector& tvdValuesToInterpolateFrom ); std::pair calculateAzimuthAndInclinationAtMd( double measuredDepth, gsl::not_null wellPathGeometry ); std::vector calculateMeasuredDepth( const std::vector& wellPathPoints, double startMd = 0.0 ); } // namespace RigWellPathGeometryTools