Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryLoop.cs =================================================================== diff -u -r4540 -r4884 --- DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryLoop.cs (.../GeometryLoop.cs) (revision 4540) +++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryLoop.cs (.../GeometryLoop.cs) (revision 4884) @@ -137,6 +137,22 @@ } /// + /// Determines whether this loop is continuous (i.e. the end point of a curve is the start point of the next curve). + /// + /// True if continuous, false if not + public bool IsContinuous() + { + for (int i = 0; i < CurveList.Count - 1; i++) + { + if (CurveList[i].EndPoint != CurveList[i + 1].HeadPoint) + { + return false; + } + } + return true; + } + + /// /// See if a point lies in a closed surface /// ///