3D Well path plots: clean up some indentation and remove an unnecessary epsilon

This commit is contained in:
Gaute Lindkvist
2018-04-13 15:29:13 +02:00
parent b48adbbaa9
commit fd63ae7531
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -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;
}