]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomAlgoAPI/GeomAlgoAPI_EdgeBuilder.h
Salome HOME
Issue #17347: B-Splines in Sketcher
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_EdgeBuilder.h
index d6185f3f51511d26c108b6afee12f1b8039946e7..ac4ca0286a631b8b56dc9696c1da46c9151e2889 100644 (file)
@@ -29,6 +29,8 @@
 #include <memory>
 #include <vector>
 
+class GeomAPI_BSpline2d;
+
 /**\class GeomAlgoAPI_EdgeBuilder
  * \ingroup DataAlgo
  * \brief Allows to create face-shapes by different parameters
@@ -91,10 +93,15 @@ class GEOMALGOAPI_EXPORT GeomAlgoAPI_EdgeBuilder
       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);
+  /// Creates planar B-spline edge
+  static GeomEdgePtr bsplineOnPlane(const std::shared_ptr<GeomAPI_Pln>& thePlane,
+                                    const std::list<std::shared_ptr<GeomAPI_Pnt2d> >& thePoles,
+                                    const std::list<double>& theWeights,
+                                    const bool thePeriodic);
+
+  /// Creates planar B-spline edge
+  static GeomEdgePtr bsplineOnPlane(const std::shared_ptr<GeomAPI_Pln>& thePlane,
+                                    const std::shared_ptr<GeomAPI_BSpline2d>& theCurve);
 };
 
 #endif