Salome HOME
Issue #17347: B-Splines in Sketcher
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_EdgeBuilder.h
index 245e97f05888c0795f2d21e37dde3f242ae10e05..d6185f3f51511d26c108b6afee12f1b8039946e7 100644 (file)
@@ -27,6 +27,7 @@
 #include <GeomAPI_Lin.h>
 #include <GeomAPI_Circ.h>
 #include <memory>
+#include <vector>
 
 /**\class GeomAlgoAPI_EdgeBuilder
  * \ingroup DataAlgo
@@ -89,6 +90,11 @@ class GEOMALGOAPI_EXPORT GeomAlgoAPI_EdgeBuilder
       const double                        theMinorRadius,
       const std::shared_ptr<GeomAPI_Pnt>& theStart,
       const std::shared_ptr<GeomAPI_Pnt>& theEnd);
+
+  /// Creates B-spline edge
+  static GeomEdgePtr bspline(const std::vector<GeomPointPtr>& thePoles,
+                             const std::vector<double>& theWeights,
+                             const bool thePeriodic);
 };
 
 #endif