Salome HOME
Python API for periodic B-splines and unit-tests for creation and modification.
[modules/shaper.git] / src / SketchAPI / SketchAPI_Sketch.h
index 4ea404be6dc10a01ddc3b8fc55c09470132da644..ddbb1829186f83da593adb0520b1716aeed821cd 100644 (file)
@@ -30,6 +30,7 @@
 
 #include <ModelHighAPI_Interface.h>
 #include <ModelHighAPI_Macro.h>
+#include <ModelHighAPI_Selection.h>
 //--------------------------------------------------------------------------------------
 class ModelAPI_CompositeFeature;
 class ModelAPI_Object;
@@ -37,7 +38,6 @@ class ModelHighAPI_Double;
 class ModelHighAPI_Integer;
 class ModelHighAPI_RefAttr;
 class ModelHighAPI_Reference;
-class ModelHighAPI_Selection;
 class SketchAPI_Arc;
 class SketchAPI_MacroArc;
 class SketchAPI_Circle;
@@ -328,22 +328,14 @@ public:
   /// Add B-spline
   SKETCHAPI_EXPORT
   std::shared_ptr<SketchAPI_BSpline> addSpline(
-      const std::list<std::shared_ptr<GeomAPI_Pnt2d> >& thePoles,
-      const std::list<ModelHighAPI_Double>& theWeights = std::list<ModelHighAPI_Double>());
-  /// Add B-spline
-  SKETCHAPI_EXPORT
-  std::shared_ptr<SketchAPI_BSpline> addSpline(
-      const int theDegree,
-      const std::list<std::shared_ptr<GeomAPI_Pnt2d> >& thePoles,
-      const std::list<ModelHighAPI_Double>& theWeights = std::list<ModelHighAPI_Double>(),
-      const std::list<ModelHighAPI_Double>& theKnots = std::list<ModelHighAPI_Double>(),
-      const std::list<ModelHighAPI_Integer>& theMults = std::list<ModelHighAPI_Integer>());
-  /// Add B-spline
-  SKETCHAPI_EXPORT
-  std::shared_ptr<SketchAPI_BSpline> addSpline(const ModelHighAPI_Selection & theExternal);
-  /// Add B-spline
-  SKETCHAPI_EXPORT
-  std::shared_ptr<SketchAPI_BSpline> addSpline(const std::string & theExternalName);
+      const ModelHighAPI_Selection & external = ModelHighAPI_Selection(),
+      const int degree = -1,
+      const std::list<std::shared_ptr<GeomAPI_Pnt2d> >& poles =
+                                          std::list<std::shared_ptr<GeomAPI_Pnt2d> >(),
+      const std::list<ModelHighAPI_Double>& weights = std::list<ModelHighAPI_Double>(),
+      const std::list<ModelHighAPI_Double>& knots = std::list<ModelHighAPI_Double>(),
+      const std::list<ModelHighAPI_Integer>& multiplicities = std::list<ModelHighAPI_Integer>(),
+      const bool periodic = false);
 
   /// Add projection
   SKETCHAPI_EXPORT