Index: Ringtoets/Piping/src/Ringtoets.Piping.IO/SoilProfiles/PipingSoilLayerTransformer.cs =================================================================== diff -u -r8a2a6c4adbac218bdc9289fb2906758fcee2a7a2 -r8b7222a9d9d039e0c8d9e10864ddcdfaa7f972d4 --- Ringtoets/Piping/src/Ringtoets.Piping.IO/SoilProfiles/PipingSoilLayerTransformer.cs (.../PipingSoilLayerTransformer.cs) (revision 8a2a6c4adbac218bdc9289fb2906758fcee2a7a2) +++ Ringtoets/Piping/src/Ringtoets.Piping.IO/SoilProfiles/PipingSoilLayerTransformer.cs (.../PipingSoilLayerTransformer.cs) (revision 8b7222a9d9d039e0c8d9e10864ddcdfaa7f972d4) @@ -118,7 +118,7 @@ return; } - IEnumerable> innerLoopsIntersectionHeights = GetLayersRecursively(soilLayer).Select(l => GetLoopIntersectionHeights(l.OuterLoop.Segments, atX)); + IEnumerable> innerLoopsIntersectionHeights = GetNestedLayersRecursively(soilLayer).Select(l => GetLoopIntersectionHeights(l.OuterLoop.Segments, atX)); IEnumerable> innerLoopIntersectionHeightPairs = GetOrderedStartAndEndPairsIn1D(innerLoopsIntersectionHeights).ToList(); IEnumerable> outerLoopIntersectionHeightPairs = GetOrderedStartAndEndPairsIn1D(outerLoopIntersectionHeights).ToList(); @@ -148,14 +148,14 @@ } } - private static IEnumerable GetLayersRecursively(SoilLayer2D layer) + private static IEnumerable GetNestedLayersRecursively(SoilLayer2D layer) { var layers = new List(); foreach (SoilLayer2D nestedLayer in layer.NestedLayers) { layers.Add(nestedLayer); - layers.AddRange(GetLayersRecursively(nestedLayer)); + layers.AddRange(GetNestedLayersRecursively(nestedLayer)); } return layers;