X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FSketchSolver%2FSolveSpaceSolver%2FSolveSpaceSolver_Solver.cpp;h=d98440bae804772a75ef9c2cfc861d0060296fae;hb=b857d9ea753bef79dbbadaeb990b54aae56e488d;hp=f1d72c8bac59a8de424a3c96f09464fa0f1f8600;hpb=9ddc291385b55eb7efd9a560a1a5c468a98dc324;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Solver.cpp b/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Solver.cpp index f1d72c8ba..d98440bae 100644 --- a/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Solver.cpp +++ b/src/SketchSolver/SolveSpaceSolver/SolveSpaceSolver_Solver.cpp @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: SolveSpaceSolver_Solver.cpp -// Created: 07 May 2014 -// Author: Artem ZHIDKOV +// Copyright (C) 2014-2020 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 +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// 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 +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #include "SolveSpaceSolver_Solver.h" #include @@ -97,7 +110,7 @@ SketchSolver_SolveStatus SolveSpaceSolver_Solver::solve() } Events_LongOp::start(this); - Slvs_Solve(&myEquationsSystem, myGroup); + Slvs_Solve(&myEquationsSystem, (Slvs_hGroup)myGroup); Events_LongOp::end(this); SketchSolver_SolveStatus aStatus; @@ -205,3 +218,8 @@ bool SolveSpaceSolver_Solver::isConflicting(const ConstraintID& theConstraint) c return true; return false; } + +int SolveSpaceSolver_Solver::dof() const +{ + return myEquationsSystem.dof; +}