Salome HOME
Rework Sketch Rectangle feature.
[modules/shaper.git] / src / SketchAPI / SketchAPI_Sketch.h
index 3f77ba084436c0afeaefd27af859123405ebbf83..5f3b4e430134d03fa47208f6d5938ef34b91eb2d 100644 (file)
@@ -181,13 +181,9 @@ public:
       const std::shared_ptr<GeomAPI_Pnt2d> & theEndPoint);
   /// Add rectangle
   SKETCHAPI_EXPORT
-  std::shared_ptr<SketchAPI_Rectangle> addRectangle(
-      double theX1, double theY1, double theX2, double theY2, bool isFirstPointCenter);
-  /// Add rectangle
-  SKETCHAPI_EXPORT
-  std::shared_ptr<SketchAPI_Rectangle> addRectangle(
-      const std::shared_ptr<GeomAPI_Pnt2d> & theFirstPoint,
-      const std::shared_ptr<GeomAPI_Pnt2d> & theEndPoint,  bool isFirstPointCenter);
+  std::shared_ptr<SketchAPI_Rectangle> addRectangleCentered(
+      const std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> & theCenter,
+      const std::pair<std::shared_ptr<GeomAPI_Pnt2d>, ModelHighAPI_RefAttr> & theCorner);
 
   /// Add circle
   SKETCHAPI_EXPORT