]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelGeomAlgo/ModelGeomAlgo_Shape.cpp
Salome HOME
updated copyright message
[modules/shaper.git] / src / ModelGeomAlgo / ModelGeomAlgo_Shape.cpp
index b92bf677bd3b6a590c1ae8564098be036e91186c..182e0f40d13af7a97cc335f6642d4cad2c3dd340 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2020  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -87,7 +87,7 @@ namespace ModelGeomAlgo_Shape
       bool isFound = aDistance < theTolerance;
       // issue #19019: special workaround for faces, because if the face contains B-spline contour,
       // the middle point is calculated with respect to its poles, but not a curve itself.
-      // Thus is some operations (like BOP) the curve may have different number of poles
+      // Thus, in some operations (like BOP) the curve may have different number of poles
       // from time to time, as a result, the face parametric boundaries are floating
       // as well as the middle point.
       // The workaround is to find a distance from the picking point to the face, if the distance
@@ -118,7 +118,7 @@ namespace ModelGeomAlgo_Shape
       if (!anEdge)
         continue;
 
-      if (anEdge->isCircle()) {
+      if (anEdge->isCircle() || anEdge->isArc()) {
         GeomCirclePtr aCircle = anEdge->circle();
         if (aCircle->center()->distance(theCenter) < theTolerance) {
           theCenterType = (int)ModelAPI_AttributeSelection::CIRCLE_CENTER;
@@ -216,7 +216,7 @@ namespace ModelGeomAlgo_Shape
                            const GeomAPI_Shape::ShapeType& theShapeType,
                            std::list<SubshapeOfResult>& theSelected)
   {
-    static const double TOLERANCE = 1.e-6;
+    static const double TOLERANCE = 1.5e-6;
 
     theSelected.clear();