Salome HOME
Merge branch 'master' of newgeom:newgeom
[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_H_
6 #define GeomAlgoAPI_FaceBuilder_H_
7
8 #include <GeomAlgoAPI.h>
9 #include <GeomAPI_Shape.h>
10 #include <GeomAPI_Pnt.h>
11 #include <GeomAPI_Pln.h>
12 #include <GeomAPI_Dir.h>
13 #include <boost/shared_ptr.hpp>
14
15 /**\class GeomAlgoAPI_FaceBuilder
16  * \ingroup DataAlgo
17  * \brief Allows to create face-shapes by different parameters
18  */
19
20 class GEOMALGOAPI_EXPORT GeomAlgoAPI_FaceBuilder
21 {
22 public:
23   /// Creates square planar face by given point of the center,
24   /// normal to the plane and size of square
25   static boost::shared_ptr<GeomAPI_Shape> square(boost::shared_ptr<GeomAPI_Pnt> theCenter,
26     boost::shared_ptr<GeomAPI_Dir> theNormal, const double theSize);
27
28   /// Returns the plane of the planar face. If it is not planar, returns empty ptr.
29   static boost::shared_ptr<GeomAPI_Pln> plane(boost::shared_ptr<GeomAPI_Shape> theFace);
30 };
31
32 #endif