-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-
-// File: SolveSpaceSolver_ConstraintType.h
-// Created: 8 Dec 2015
-// Author: Artem ZHIDKOV
+// 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
+// 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
+//
#ifndef SolveSpaceSolver_ConstraintType_H_
#define SolveSpaceSolver_ConstraintType_H_
#include <SketchSolver_IConstraintWrapper.h>
#include <SolveSpaceSolver_Solver.h>
-#include <slvs.h>
namespace ConstraintType
{
case CONSTRAINT_PT_PT_COINCIDENT: return SLVS_C_POINTS_COINCIDENT;
case CONSTRAINT_PT_ON_LINE: return SLVS_C_PT_ON_LINE;
case CONSTRAINT_PT_ON_CIRCLE: return SLVS_C_PT_ON_CIRCLE;
+ case CONSTRAINT_MIDDLE_POINT: return SLVS_C_AT_MIDPOINT;
case CONSTRAINT_PT_PT_DISTANCE: return SLVS_C_PT_PT_DISTANCE;
case CONSTRAINT_PT_LINE_DISTANCE: return SLVS_C_PT_LINE_DISTANCE;
case CONSTRAINT_ANGLE: return SLVS_C_ANGLE;
case SLVS_C_POINTS_COINCIDENT: return CONSTRAINT_PT_PT_COINCIDENT;
case SLVS_C_PT_ON_LINE: return CONSTRAINT_PT_ON_LINE;
case SLVS_C_PT_ON_CIRCLE: return CONSTRAINT_PT_ON_CIRCLE;
+ case SLVS_C_AT_MIDPOINT: return CONSTRAINT_MIDDLE_POINT;
case SLVS_C_PT_PT_DISTANCE: return CONSTRAINT_PT_PT_DISTANCE;
case SLVS_C_PT_LINE_DISTANCE: return CONSTRAINT_PT_LINE_DISTANCE;
case SLVS_C_EQUAL_LENGTH_LINES: return CONSTRAINT_EQUAL_LINES;