X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchSolver%2FPlaneGCSSolver%2FPlaneGCSSolver_Solver.h;h=42dd0b5470590b5a5d374bae9e1f1766301cbd10;hb=fc72d43b677baa05ae7fd317346fd8b723b799ed;hp=7f302d8b66011b4f119faebeb8c58e2caae7ff3a;hpb=138377e120674c0ba848b03e013f248d8bbcf20c;p=modules%2Fshaper.git diff --git a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Solver.h b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Solver.h index 7f302d8b6..42dd0b547 100644 --- a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Solver.h +++ b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Solver.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2023 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #ifndef PlaneGCSSolver_Solver_H_ @@ -35,6 +34,7 @@ public: STATUS_OK, STATUS_INCONSISTENT, STATUS_EMPTYSET, + STATUS_DEGENERATED, STATUS_FAILED, // set if no one other status is applicable STATUS_UNKNOWN // set for newly created groups }; @@ -77,7 +77,10 @@ public: bool isConflicting(const ConstraintID& theConstraint) const; /// \brief Check conflicting/redundant constraints and DoF - void diagnose(); + void diagnose(const GCS::Algorithm& theAlgo = GCS::DogLeg); + + /// \brief Return the list of modifiable parameters + void getFreeParameters(GCS::SET_pD& theFreeParams); /// \brief Degrees of freedom int dof(); @@ -91,7 +94,7 @@ private: void removeFictiveConstraint(); private: - typedef std::map > ConstraintMap; + typedef std::map > ConstraintMap; GCS::VEC_pD myParameters; ///< list of unknowns ConstraintMap myConstraints; ///< list of constraints