#3132 Increase legend sample line lengths and scale by curve thickness

* Otherwise we can't distinguish between curves in the legend.
This commit is contained in:
Gaute Lindkvist
2018-07-02 14:49:09 +02:00
parent a898f909e1
commit 3dec239c99
3 changed files with 48 additions and 6 deletions

View File

@@ -134,15 +134,16 @@ void RigGeoMechWellLogExtractor::wellPathAngles(const RigFemResultAddress& resAd
cvf::Vec3d projectedTangentXY = wellPathTangent;
projectedTangentXY.z() = 0.0;
// Do tangentXY to true north for counter clockwise angles.
// Do tangentXY to true north for clockwise angles.
double dotProduct = projectedTangentXY * trueNorth;
double crossProduct = (projectedTangentXY ^ trueNorth) * up;
// http://www.glossary.oilfield.slb.com/Terms/a/azimuth.aspx
azimuth = cvf::Math::toDegrees(std::atan2(crossProduct, dotProduct));
if (azimuth < 0.0)
{
// Straight atan2 gives angle from -PI to PI yielding angles from -180 to 180.
// We want angles from 0 to 360, so add 180 degrees.
// Straight atan2 gives angle from -PI to PI yielding angles from -180 to 180
// where the negative angles are counter clockwise.
// To get all positive clockwise angles, we add 360 degrees to negative angles.
azimuth = azimuth + 360.0;
}
}