From: azv Date: Wed, 18 Jun 2014 12:54:43 +0000 (+0400) Subject: Merge branch 'SketchSolver' X-Git-Tag: V_0.4.4~281 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b088ac567eda79830c071c32443896ad59d56628;p=modules%2Fshaper.git Merge branch 'SketchSolver' --- b088ac567eda79830c071c32443896ad59d56628 diff --cc src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp index 08f39e8c0,051ac4f64..5941efbec --- a/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp @@@ -29,13 -30,11 +30,17 @@@ #include #include + +#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(