1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: GeomAlgoAPI_Rotation.h
4 // Created: 12 May 2015
5 // Author: Dmitry Bobylev
7 #ifndef GeomAlgoAPI_Rotation_H_
8 #define GeomAlgoAPI_Rotation_H_
10 #include <GeomAlgoAPI.h>
11 #include <GeomAlgoAPI_MakeShape.h>
13 #include <GeomAPI_Ax1.h>
14 #include <GeomAPI_Shape.h>
16 /// \class GeomAlgoAPI_Rotation
18 /// \brief Creates a copy of the object by rotating it around the axis.
19 class GeomAlgoAPI_Rotation : public GeomAlgoAPI_MakeShape
22 /// \brief Creates an object which is obtained from current object by rotating it around the axis.
23 /// \param[in] theSourceShape a shape to be rotated.
24 /// \param[in] theAxis rotation axis.
25 /// \param[in] theAngle rotation angle(in degree).
26 GEOMALGOAPI_EXPORT GeomAlgoAPI_Rotation(std::shared_ptr<GeomAPI_Shape> theSourceShape,
27 std::shared_ptr<GeomAPI_Ax1> theAxis,
31 /// Builds resulting shape.
32 void build(std::shared_ptr<GeomAPI_Shape> theSourceShape,
33 std::shared_ptr<GeomAPI_Ax1> theAxis,