Salome HOME
61ebfaeb6139ae0a172f1ab2a6c2213b7a82953d
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_FaceBuilder.h
1 // File:        GeomAlgoAPI_FaceBuilder.h
2 // Created:     23 Apr 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef GeomAlgoAPI_FaceBuilder_HeaderFile
6 #define GeomAlgoAPI_FaceBuilder_HeaderFile
7
8 #include <GeomAlgoAPI.h>
9 #include <GeomAPI_Shape.h>
10 #include <GeomAPI_Pnt.h>
11 #include <GeomAPI_Dir.h>
12 #include <boost/shared_ptr.hpp>
13
14 /**\class GeomAlgoAPI_FaceBuilder
15  * \ingroup DataAlgo
16  * \brief Allows to create face-shapes by different parameters
17  */
18
19 class GEOMALGOAPI_EXPORT GeomAlgoAPI_FaceBuilder
20 {
21 public:
22   /// Creates square planar face by given point of the center,
23   /// normal to the plane and size of square
24   static boost::shared_ptr<GeomAPI_Shape> square(boost::shared_ptr<GeomAPI_Pnt> theCenter,
25     boost::shared_ptr<GeomAPI_Dir> theNormal, const double theSize);
26 };
27
28 #endif