#3286 A simple default tangent calculation/adjustment when creating targets

Use distance weighted average of line segments
This commit is contained in:
Jacob Støren
2018-09-11 08:36:14 +02:00
parent 01673f31cb
commit be75fbc2c1
5 changed files with 52 additions and 6 deletions

View File

@@ -66,12 +66,12 @@ void RimWellPathTarget::setAsPointTargetXYD(const cvf::Vec3d& point)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellPathTarget::setAsPointAndTangentTarget(const cvf::Vec3d& point,
double azimuth,
double inclination)
void RimWellPathTarget::setAsPointXYZAndTangentTarget(const cvf::Vec3d& point,
double azimuth,
double inclination)
{
m_targetType = POINT_AND_TANGENT;
m_targetPoint = point;
m_targetType = POINT_AND_TANGENT;
m_targetPoint = cvf::Vec3d(point.x(), point.y(), -point.z());
m_azimuth = cvf::Math::toDegrees(azimuth);
m_inclination = cvf::Math::toDegrees(inclination);
}