mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improve 3D Well path plots
* Always generate in up-direction and rotate to left/right/down
* Generate a "dominant direction" by interrogating the whole curve, not
just the first and last item.
* Improve maths:
- Generate a projection plane spanned by UP and the dominant direction.
- Project the tangent onto this projection plane.
- Generate normal as the cross product between the projected tangent and
the normal to the projection plane.
- Rotate the normal into left/right/down if required.
This commit is contained in:
@@ -158,13 +158,13 @@ double Riv3dWellLogPlanePartMgr::planeAngle(const Rim3dWellLogCurve::DrawPlane&
|
||||
switch (drawPlane)
|
||||
{
|
||||
case Rim3dWellLogCurve::HORIZONTAL_LEFT:
|
||||
return cvf::PI_D;
|
||||
case Rim3dWellLogCurve::HORIZONTAL_RIGHT:
|
||||
return 0.0;
|
||||
case Rim3dWellLogCurve::VERTICAL_ABOVE:
|
||||
return cvf::PI_D / 2.0;
|
||||
case Rim3dWellLogCurve::VERTICAL_BELOW:
|
||||
case Rim3dWellLogCurve::HORIZONTAL_RIGHT:
|
||||
return -cvf::PI_D / 2.0;
|
||||
case Rim3dWellLogCurve::VERTICAL_ABOVE:
|
||||
return 0.0;
|
||||
case Rim3dWellLogCurve::VERTICAL_BELOW:
|
||||
return cvf::PI_D;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user