Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryLoop.cs
===================================================================
diff -u -r4052 -r4184
--- DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryLoop.cs (.../GeometryLoop.cs) (revision 4052)
+++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryLoop.cs (.../GeometryLoop.cs) (revision 4184)
@@ -30,6 +30,8 @@
///
public class GeometryLoop : GeometryPointString
{
+ private readonly Routines2D routines2D = new Routines2D();
+
///
/// List of points that describe the physical surface line or surface.
///
@@ -120,7 +122,7 @@
public bool IsClockWise()
{
List polyGon = GetLocalPoint2DList();
- Clockwise isClockWise = Routines2D.IsClockWise(polyGon);
+ Clockwise isClockWise = routines2D.IsClockWise(polyGon);
if (isClockWise == Clockwise.NotEnoughUniquePoints)
{
throw new NotEnoughUniquePointsException();
@@ -141,7 +143,7 @@
///
public bool IsPointInLoopArea(Point2D aPoint)
{
- return Routines2D.CheckIfPointIsInPolygon(this, aPoint.X, aPoint.Z) != PointInPolygon.OutsidePolygon;
+ return routines2D.CheckIfPointIsInPolygon(this, aPoint.X, aPoint.Z) != PointInPolygon.OutsidePolygon;
}
///