Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryData.cs =================================================================== diff -u -r5541 -r5612 --- DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryData.cs (.../GeometryData.cs) (revision 5541) +++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryData.cs (.../GeometryData.cs) (revision 5612) @@ -742,6 +742,20 @@ /// public List Loops { get; } = []; + public int InnerLoopsCount + { + get + { + var innerLoopsCount = 0; + foreach (GeometrySurface surface in Surfaces) + { + innerLoopsCount += surface.InnerLoops.Count; + } + + return innerLoopsCount; + } + } + /// /// gets the Surface data list. /// @@ -1122,7 +1136,25 @@ #endregion #region other functions + + /// + /// Determines if there is already a surface with the same outer loop. + /// + /// + /// + public bool HasSurfaceWithSameOuterLoop(GeometryLoop outerLoop) + { + foreach (GeometrySurface geometrySurface in Surfaces) + { + if (geometrySurface.OuterLoop.HasSameCurvesByReference(outerLoop)) + { + return true; + } + } + return false; + } + #region calculation function private int GetDependentCurveCount(Point2D point)