Commit 9f5013b4 authored by Jesse Mapel's avatar Jesse Mapel Committed by Makayla Shepherd
Browse files

Changed how surface point radii are set in ControlNetVersioner

parent 0de2c9e5
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -1377,10 +1377,6 @@ namespace Isis {
        // note: setting lat/lon/rad constrained happens when we call SetAprioriSurfacePoint()
      }

      if ( equatorialRadius.isValid() && polarRadius.isValid() ) {
        aprioriSurfacePoint.SetRadii(equatorialRadius, equatorialRadius, polarRadius);
      }

      controlPoint->SetAprioriSurfacePoint(aprioriSurfacePoint);
    }

@@ -1406,10 +1402,16 @@ namespace Isis {
        adjustedSurfacePoint.SetRectangularMatrix(adjustedCovarianceMatrix);
      }

      controlPoint->SetAdjustedSurfacePoint(adjustedSurfacePoint);
    }

    if ( equatorialRadius.isValid() && polarRadius.isValid() ) {
      SurfacePoint aprioriSurfacePoint = controlPoint->GetAprioriSurfacePoint();
      SurfacePoint adjustedSurfacePoint = controlPoint->GetAdjustedSurfacePoint();
      aprioriSurfacePoint.SetRadii(equatorialRadius, equatorialRadius, polarRadius);
      adjustedSurfacePoint.SetRadii(equatorialRadius, equatorialRadius, polarRadius);
      }
      controlPoint->SetAdjustedSurfacePoint(adjustedSurfacePoint);
      controlPoint->SetAprioriSurfacePoint(aprioriSurfacePoint);
    }

    // adding measure information