Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Geometry2DImporter/SoilProfile2DImporter.cs =================================================================== diff -u -r5906 -r5910 --- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Geometry2DImporter/SoilProfile2DImporter.cs (.../SoilProfile2DImporter.cs) (revision 5906) +++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Geometry2DImporter/SoilProfile2DImporter.cs (.../SoilProfile2DImporter.cs) (revision 5910) @@ -157,7 +157,8 @@ private static Soil FindSoilInOldSurfaces(List originalSurfaces, GeometryPoint point, double xSoilGeometry2DOrigin) { - var np = new GeometryPoint(point.X, point.Y, point.Z); + //var np = new GeometryPoint(point.X, point.Y, point.Z); + var np = point.Clone(); np.X -= xSoilGeometry2DOrigin; np.Z -= GeometryConstants.Accuracy; foreach (var soilLayer2D in originalSurfaces) @@ -173,8 +174,8 @@ st = st + " " + geometryPoint.ToString(); } - throw new InvalidOperationException("Soil should always be found at org point X =" + point.X + " point Z = " + point.Z + - " in surface " + st + " point X =" + np.X + " point Z = " + np.Z + "with offset" + xSoilGeometry2DOrigin); + throw new InvalidOperationException("Soil should always be found at org point X =" + np.X + " point Z = " + np.Z + + " in " + st + " for new mid point X =" + point.X + " mid point Z = " + point.Z + "with offset" + xSoilGeometry2DOrigin); return null; } @@ -198,7 +199,7 @@ } private static void MoveXCoordinatePointInCurvesWithCoincidingInputPoint(SoilProfile2D profile2D, - Deltares.Geometry.GeometryPoint inputPoint, + GeometryPoint inputPoint, double xSoilGeometry2DOrigin) { foreach (Deltares.Geometry.GeometryCurve curve in profile2D.Geometry.Curves)