mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
3D Well path plots: clean up some indentation and remove an unnecessary epsilon
This commit is contained in:
@@ -47,7 +47,7 @@ Riv3dWellLogGridGeometryGenerator::Riv3dWellLogGridGeometryGenerator(RimWellPath
|
||||
std::map< Riv3dWellLogGridGeometryGenerator::DrawableId, cvf::ref<cvf::DrawableGeo> >
|
||||
Riv3dWellLogGridGeometryGenerator::createGrid(const caf::DisplayCoordTransform* displayCoordTransform,
|
||||
const cvf::BoundingBox& wellPathClipBoundingBox,
|
||||
double planeAngle,
|
||||
double planeAngle,
|
||||
double planeOffsetFromWellPathCenter,
|
||||
double planeWidth,
|
||||
double gridIntervalSize) const
|
||||
|
@@ -53,7 +53,7 @@ public:
|
||||
std::map<DrawableId, cvf::ref<cvf::DrawableGeo> >
|
||||
createGrid(const caf::DisplayCoordTransform* displayCoordTransform,
|
||||
const cvf::BoundingBox& wellPathClipBoundingBox,
|
||||
double planeAngle,
|
||||
double planeAngle,
|
||||
double planeOffsetFromWellPathCenter,
|
||||
double planeWidth,
|
||||
double gridIntervalSize) const;
|
||||
|
@@ -138,7 +138,7 @@ cvf::Vec3d RigWellPathGeometryTools::estimateDominantDirectionInXYPlane(const Ri
|
||||
{
|
||||
cvf::Vec3d vec = points[i] - points[i - 1];
|
||||
vec.z() = 0.0;
|
||||
if (directionSum.length() > 0.0 && (directionSum * vec) < std::numeric_limits<double>::epsilon())
|
||||
if (directionSum.length() > 0.0 && (directionSum * vec) < 0.0)
|
||||
{
|
||||
vec *= -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user