Index: DamEngine/trunk/src/Deltares.DamEngine.Interface/FillXmlOutputFromDam.cs =================================================================== diff -u -r3406 -r3414 --- DamEngine/trunk/src/Deltares.DamEngine.Interface/FillXmlOutputFromDam.cs (.../FillXmlOutputFromDam.cs) (revision 3406) +++ DamEngine/trunk/src/Deltares.DamEngine.Interface/FillXmlOutputFromDam.cs (.../FillXmlOutputFromDam.cs) (revision 3414) @@ -19,6 +19,7 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System.Linq; using Deltares.DamEngine.Data.General; using Deltares.DamEngine.Data.General.TimeSeries; using Deltares.DamEngine.Io.XmlOutput; @@ -313,6 +314,33 @@ } break; } + if (designResult.StabilityDesignResults.StabilityModelType == MStabModelType.Bishop || + designResult.StabilityDesignResults.StabilityModelType == MStabModelType.UpliftVan) + { + if (designResult.StabilityDesignResults.ResultSlices != null && + designResult.StabilityDesignResults.ResultSlices.Count > 0) + { + desResult.StabilityDesignResults.SlipCircleDefinition.Slices = + new MinimumSafetyCurveBaseTypeSlice[designResult.StabilityDesignResults.ResultSlices.Count]; + var index = 0; + foreach (var slice in designResult.StabilityDesignResults.ResultSlices) + { + var resultSlice = new MinimumSafetyCurveBaseTypeSlice + { + TopLeftPoint = new Point2DType {X = slice.TopLeftPoint.X, Z = slice.TopLeftPoint.Z}, + TopRightPoint = new Point2DType {X = slice.TopRightPoint.X, Z = slice.TopRightPoint.Z}, + BottomLeftPoint = + new Point2DType {X = slice.BottomLeftPoint.X, Z = slice.BottomLeftPoint.Z}, + BottomRightPoint = new Point2DType + { + X = slice.BottomRightPoint.X, Z = slice.BottomRightPoint.Z + } + }; + desResult.StabilityDesignResults.SlipCircleDefinition.Slices[index] = resultSlice; + index++; + } + } + } }