Index: Ringtoets/Integration/src/Ringtoets.Integration.IO/Helpers/ExportableFailureMechanismSectionHelper.cs
===================================================================
diff -u -r83d814cc1cd1d6944d065ed27f54b459c729199b -r6cf42b92f47cb984c4a2f08936b74b9aba7a4d38
--- Ringtoets/Integration/src/Ringtoets.Integration.IO/Helpers/ExportableFailureMechanismSectionHelper.cs (.../ExportableFailureMechanismSectionHelper.cs) (revision 83d814cc1cd1d6944d065ed27f54b459c729199b)
+++ Ringtoets/Integration/src/Ringtoets.Integration.IO/Helpers/ExportableFailureMechanismSectionHelper.cs (.../ExportableFailureMechanismSectionHelper.cs) (revision 6cf42b92f47cb984c4a2f08936b74b9aba7a4d38)
@@ -77,7 +77,7 @@
/// The end of the section from the beginning of the reference line in meters.
/// A geometry based on the reference line and the section start and end.
/// Thrown when is null.
- public static IEnumerable GetFailureMechanismSectionGeometry(ReferenceLine referenceLine, int sectionStart, int sectionEnd)
+ public static IEnumerable GetFailureMechanismSectionGeometry(ReferenceLine referenceLine, double sectionStart, double sectionEnd)
{
if (referenceLine == null)
{
@@ -92,7 +92,7 @@
startPoint
};
- int sectionLength = sectionEnd - sectionStart;
+ double sectionLength = sectionEnd - sectionStart;
double sectionLengthOnReferenceLine = 0;
Point2D lastPoint = startPoint;
@@ -126,12 +126,12 @@
return sectionPoints;
}
- private static Point2D GetStartPoint(Point2D[] referenceLinePoints, int sectionStart, out int index)
+ private static Point2D GetStartPoint(Point2D[] referenceLinePoints, double sectionStart, out int index)
{
index = 0;
Point2D startPoint = null;
- if (sectionStart == 0)
+ if (Math.Abs(sectionStart) < 1e-6)
{
return referenceLinePoints[0];
}