diff --git a/src/Lib/Geometry/point3d.hxx b/src/Lib/Geometry/point3d.hxx index 930a276d..eb3c9a35 100644 --- a/src/Lib/Geometry/point3d.hxx +++ b/src/Lib/Geometry/point3d.hxx @@ -137,6 +137,14 @@ public: bool IsEqual2D(const Point3D& a) const; // equality check in X,Y only bool HasElevation() const; // does point have elevation data? + +#ifdef _MSC_VER + double round(double d) + { + return floor(d + 0.5); + } +#endif + };