Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryObject.cs
===================================================================
diff -u -r5564 -r6404
--- DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryObject.cs (.../GeometryObject.cs) (revision 5564)
+++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryObject.cs (.../GeometryObject.cs) (revision 6404)
@@ -1,4 +1,4 @@
-// Copyright (C) Stichting Deltares 2024. All rights reserved.
+// Copyright (C) Stichting Deltares 2025. All rights reserved.
//
// This file is part of the Dam Engine.
//
@@ -49,12 +49,14 @@
set
{
if (value != null)
+ {
name = value;
+ }
}
}
#endregion
-
+
///
/// Gets the geometry bounds.
///
@@ -65,6 +67,14 @@
}
///
+ /// Rounds given value to given accuracy (by default the geometry accuracy is used)
+ ///
+ ///
+ ///
+ /// the value rounded to the requested accuracy
+ public static double RoundValue(double originalValue, double accuracy = GeometryConstants.Accuracy) => Math.Round(originalValue / accuracy) * accuracy;
+
+ ///
/// Returns a that represents this instance.
///
///
@@ -74,12 +84,4 @@
{
return Name;
}
-
- ///
- /// Rounds given value to given accuracy (by default the geometry accuracy is used)
- ///
- ///
- ///
- /// the value rounded to the requested accuracy
- public static double RoundValue(double originalValue, double accuracy = GeometryConstants.Accuracy) => Math.Round(originalValue / accuracy) * accuracy;
}
\ No newline at end of file