Index: Ringtoets/Piping/src/Ringtoets.Piping.Primitives/RingtoetsPipingSurfaceLine.cs =================================================================== diff -u -r8a2d2653ceff765beecfcedab41a6be91df7d16e -r54e6baff4fab535777949f737314f052853e818a --- Ringtoets/Piping/src/Ringtoets.Piping.Primitives/RingtoetsPipingSurfaceLine.cs (.../RingtoetsPipingSurfaceLine.cs) (revision 8a2d2653ceff765beecfcedab41a6be91df7d16e) +++ Ringtoets/Piping/src/Ringtoets.Piping.Primitives/RingtoetsPipingSurfaceLine.cs (.../RingtoetsPipingSurfaceLine.cs) (revision 54e6baff4fab535777949f737314f052853e818a) @@ -23,9 +23,12 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; + using Core.Common.Base.Geometry; +using Core.Common.Base.Storage; using MathNet.Numerics.LinearAlgebra; + using Ringtoets.Piping.Primitives.Exceptions; using Ringtoets.Piping.Primitives.Properties; @@ -34,10 +37,8 @@ /// /// Definition of a surfaceline for piping. /// - public class RingtoetsPipingSurfaceLine + public class RingtoetsPipingSurfaceLine : IStorable { - private Point3D[] geometryPoints; - /// /// Initializes a new instance of the class. /// @@ -108,6 +109,8 @@ /// public Point2D ReferenceLineIntersectionWorldPoint { get; set; } + public long StorageId { get; set; } + /// /// Sets the geometry of the surfaceline. /// @@ -371,7 +374,7 @@ /// /// The array into which the projected X-coordinate /// values should be stored. Its should be the same as - /// the collection-size of . + /// the collection-size of . private void ProjectPointsAfterFirstOntoSpanningLine(double[] localCoordinatesX) { // Determine the vectors from the first coordinate to each other coordinate point @@ -391,9 +394,9 @@ // Project each vector onto the 'spanning vector' to determine it's X coordinate in local coordinates: for (int i = 0; i < worldCoordinateVectors.Length - 1; i++) { - double projectOnSpanningVectorFactor = (worldCoordinateVectors[i].DotProduct(spanningVector))/ + double projectOnSpanningVectorFactor = (worldCoordinateVectors[i].DotProduct(spanningVector)) / (spanningVectorDotProduct); - localCoordinatesX[i + 1] = projectOnSpanningVectorFactor*length; + localCoordinatesX[i + 1] = projectOnSpanningVectorFactor * length; } localCoordinatesX[localCoordinatesX.Length - 1] = length; }