Index: Ringtoets/Common/src/Ringtoets.Common.Data/FailureMechanism/FailureMechanismSection.cs =================================================================== diff -u -r4bb55feac151da4010e81849de3103327f7f40ae -rdec46d5efaad5332ffb2a96e67ec11209ddc5515 --- Ringtoets/Common/src/Ringtoets.Common.Data/FailureMechanism/FailureMechanismSection.cs (.../FailureMechanismSection.cs) (revision 4bb55feac151da4010e81849de3103327f7f40ae) +++ Ringtoets/Common/src/Ringtoets.Common.Data/FailureMechanism/FailureMechanismSection.cs (.../FailureMechanismSection.cs) (revision dec46d5efaad5332ffb2a96e67ec11209ddc5515) @@ -87,6 +87,8 @@ /// public IEnumerable Points { get; private set; } + public long StorageId { get; set; } + /// /// Gets the geometric start of the section. /// @@ -103,6 +105,12 @@ return geometryEnd; } - public long StorageId { get; set; } + /// + /// Gets the length of the section. + /// + public double GetSectionLength() + { + return Math2D.ConvertLinePointsToLineSegments(Points).Sum(segment => segment.Length); + } } } \ No newline at end of file