]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.h
Salome HOME
Added rotation by three points.
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_ShapeAPI.h
index 81dbfd70557648d35fdeb631a64a3c012a1b917c..3f137c4fe033d332c836e1fc6ae937a74042fcd6 100644 (file)
@@ -103,6 +103,28 @@ public:
                      std::shared_ptr<GeomAPI_Pnt> theStartPoint,
                      std::shared_ptr<GeomAPI_Pnt> theEndPoint) throw (GeomAlgoAPI_Exception);
 
+  /// Performs a rotation from an axis and an angle.
+  /// \param theSourceShape Shape to be rotated
+  /// \param theAxis Movement axis
+  /// \param theAngle Movement angle
+  /// \return a shape
+  static std::shared_ptr<GeomAPI_Shape> makeRotation(
+                     std::shared_ptr<GeomAPI_Shape> theSourceShape,
+                     std::shared_ptr<GeomAPI_Ax1> theAxis,
+                     const double theAngle) throw (GeomAlgoAPI_Exception);
+
+  /// Performs a rotation from three points.
+  /// \param theSourceShape Shape to be rotated
+  /// \param theCenterPoint Movement center point
+  /// \param theStartPoint Movement start point
+  /// \param theEndPoint Movement end point
+  /// \return a shape
+  static std::shared_ptr<GeomAPI_Shape> makeRotation(
+                     std::shared_ptr<GeomAPI_Shape> theSourceShape,
+                     std::shared_ptr<GeomAPI_Pnt> theCenterPoint,
+                     std::shared_ptr<GeomAPI_Pnt> theStartPoint,
+                     std::shared_ptr<GeomAPI_Pnt> theEndPoint) throw (GeomAlgoAPI_Exception);
+
   /// Performs a symmetry by a point.
   /// \param theSourceShape Shape be symmetrized
   /// \param thePoint Point of symmetry