#include <TopoDS_Wire.hxx>
#include <Precision.hxx>
+
+#ifndef DBL_MAX
+#define DBL_MAX 1.7976931348623158e+308
+#endif
+
+
const double tolerance = Precision::Confusion();
+ // This value helps to find direction on the boundaries of curve.
+ // It is not significant for lines, but is used for circles to avoid
+ // wrong directions of movement (when two edges are tangent on the certain vertex)
+ const double shift = acos(1.0 - 2.0 * tolerance);
/// \brief Search first vertex - the vertex with lowest x coordinate, which is used in 2 edges at least
static const TopoDS_Shape& findStartVertex(