Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityCommon/PlLinesToWaternetConverter.cs =================================================================== diff -u -r5025 -r5027 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityCommon/PlLinesToWaternetConverter.cs (.../PlLinesToWaternetConverter.cs) (revision 5025) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityCommon/PlLinesToWaternetConverter.cs (.../PlLinesToWaternetConverter.cs) (revision 5027) @@ -319,18 +319,6 @@ return line; } - private static WaternetLine CreateWaternetLine(double levelTop, double levelBottom, double xLeft, double xRight) - { - var waternetLine = new WaternetLine(); - waternetLine.Points.Add(new GeometryPoint(xLeft, levelTop)); - waternetLine.Points.Add(new GeometryPoint(xRight, levelTop)); - waternetLine.Points.Add(new GeometryPoint(xRight, levelBottom)); - waternetLine.Points.Add(new GeometryPoint(xLeft, levelBottom)); - waternetLine.Points.Add(new GeometryPoint(xLeft, levelTop)); - waternetLine.SyncCalcPoints(); - return waternetLine; - } - private static WaternetLine CreateWaternetLine(IEnumerable coordinates, double zOffSet = 0) { var line = new WaternetLine(); @@ -348,36 +336,6 @@ return line; } - private static WaternetLine CreateWaternetLine(IEnumerable upperCoordinates, IEnumerable lowerCoordinates) - { - var line = new WaternetLine(); - List upperCoordList = upperCoordinates.ToList(); - upperCoordList.Sort(); - GeometryPoint point; - foreach (Point2D upperCoord in upperCoordList) - { - point = new GeometryPoint(upperCoord.X, upperCoord.Z); - line.Points.Add(point); - } - - List lowerCoordList = lowerCoordinates.ToList(); - lowerCoordList.Sort(); - for (int i = lowerCoordList.Count - 1; i >= 0; i--) - { - point = new GeometryPoint(lowerCoordList[i].X, lowerCoordList[i].Z); - line.Points.Add(point); - } - - point = new GeometryPoint(upperCoordList[0].X, upperCoordList[0].Z); - line.Points.Add(point); - - line.SyncCalcPoints(); - line.RemoveUnnecessaryPoints(); - line.SyncPoints(); - - return line; - } - /// /// Determines all the points of the layer boundary for the specified layer type: /// - For LayerType = BottomAquifer, it will return the top boundary of the bottom aquifer (= waternet line for PL3)