Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryCurve.cs
===================================================================
diff -u -r1974 -r3079
--- DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryCurve.cs (.../GeometryCurve.cs) (revision 1974)
+++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryCurve.cs (.../GeometryCurve.cs) (revision 3079)
@@ -125,6 +125,17 @@
}
///
+ /// Locations the equals.
+ ///
+ /// a curve.
+ ///
+ public bool LocationEquals(GeometryCurve aCurve)
+ {
+ return (headPoint.LocationEquals(aCurve.HeadPoint) && endPoint.LocationEquals(aCurve.EndPoint)) ||
+ (headPoint.LocationEquals(aCurve.EndPoint) && endPoint.LocationEquals(aCurve.HeadPoint));
+ }
+
+ ///
/// Swaps and .
///
public void Reverse()
@@ -186,7 +197,7 @@
/// The point.
/// The tolerance.
///
- public bool ContainsPoint(Point2D point, double tolerance)
+ public bool ContainsPoint(Point2D point, double tolerance = GeometryConstants.Accuracy * 0.5)
{
return HeadPoint != null && EndPoint != null &&
Routines2D.DoesPointExistInLine(HeadPoint.X, HeadPoint.Z, EndPoint.X, EndPoint.Z, point.X, point.Z, tolerance);
@@ -202,6 +213,18 @@
public override string ToString()
{
return string.Empty;
- }
+ }
+
+ ///
+ /// Gets or sets the surface at the Left.
+ ///
+ public virtual GeometrySurface SurfaceAtLeft { get; set; }
+
+
+ ///
+ /// Gets or sets the surface at the Right.
+ ///
+ public virtual GeometrySurface SurfaceAtRight { get; set; }
+
}
}
\ No newline at end of file