Salome HOME
updated copyright message
[modules/shaper.git] / src / SketchSolver / PlaneGCSSolver / PlaneGCSSolver_Tools.h
index 846db6d21ba3b3c0fdb8adbfd5748e6d89274d08..3e615dcf142678ea724885b4547eab0e251260be 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  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
@@ -24,6 +24,7 @@
 #include <SketchSolver_ConstraintMovement.h>
 #include <SketchPlugin_Constraint.h>
 
+class GeomAPI_BSpline2d;
 class GeomAPI_Circ2d;
 class GeomAPI_Ellipse2d;
 class GeomAPI_Lin2d;
@@ -88,6 +89,9 @@ namespace PlaneGCSSolver_Tools
   /// \brief Convert entity to ellipse
   /// \return empty pointer if the entity is not an ellipse
   std::shared_ptr<GeomAPI_Ellipse2d> ellipse(EntityWrapperPtr theEntity);
+  /// \brief Convert entity to Bs-pline
+  /// \return empty pointer if the entity is not an ellipse
+  std::shared_ptr<GeomAPI_BSpline2d> bspline(EntityWrapperPtr theEntity);
 
   /// \brief Convert entity to line
   /// \return empty pointer if the entity is not a line
@@ -104,7 +108,7 @@ namespace PlaneGCSSolver_Tools
   /// \brief Update value in theDest if theSource is differ more than theTolerance
   /// \return \c true if the value was updated.
   bool updateValue(const double& theSource, double& theDest,
-                   const double theTolerance = 1.e-4 * tolerance);
+                   const double theTolerance = 1.e4 * tolerance);
 
   double distance(const GCS::Point& thePnt1, const GCS::Point& thePnt2);