Salome HOME
Updated copyright comment
[modules/shaper.git] / src / SketchSolver / SketchSolver_ConstraintFixed.cpp
index 7e7c6aab1c27e8b302aa0d82cfcc78b65d5c6f24..cb9ad10bc72983ca3ce87a288dbe688854a1bef4 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2024  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -151,7 +151,7 @@ GCS::VEC_pD toParameters(const EntityWrapperPtr& theEntity)
     aParameters.push_back(anEllipse->radmin);
     break;
     }
-  case ENTITY_ELLIPTICAL_ARC: {
+  case ENTITY_ELLIPTIC_ARC: {
     std::shared_ptr<GCS::ArcOfEllipse> anEllArc =
         std::dynamic_pointer_cast<GCS::ArcOfEllipse>(anEntity->entity());
     aParameters.push_back(anEllArc->center.x);
@@ -163,6 +163,16 @@ GCS::VEC_pD toParameters(const EntityWrapperPtr& theEntity)
     aParameters.push_back(anEllArc->endAngle);
     break;
     }
+  case ENTITY_BSPLINE: {
+    std::shared_ptr<GCS::BSpline> aBSpline =
+        std::dynamic_pointer_cast<GCS::BSpline>(anEntity->entity());
+    for (GCS::VEC_P::iterator anIt = aBSpline->poles.begin();
+         anIt != aBSpline->poles.end(); ++anIt) {
+      aParameters.push_back(anIt->x);
+      aParameters.push_back(anIt->y);
+    }
+    break;
+  }
   default:
     break;
   }