1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: GeomAlgoAPI_FaceBuilder.h
4 // Created: 23 Apr 2014
5 // Author: Mikhail PONIKAROV
7 #ifndef GeomAlgoAPI_FaceBuilder_H_
8 #define GeomAlgoAPI_FaceBuilder_H_
10 #include "GeomAlgoAPI.h"
20 /// \class GeomAlgoAPI_FaceBuilder
22 /// \brief Allows to create face-shapes by different parameters
23 class GEOMALGOAPI_EXPORT GeomAlgoAPI_FaceBuilder
26 /// Creates square planar face by given point of the center,
27 /// normal to the plane and size of square
28 static std::shared_ptr<GeomAPI_Face> squareFace(const std::shared_ptr<GeomAPI_Pnt> theCenter,
29 const std::shared_ptr<GeomAPI_Dir> theNormal,
30 const double theSize);
31 /// Creates square planar face by given point of the center,
32 /// normal to the plane and size of square
33 static std::shared_ptr<GeomAPI_Face> squareFace(const std::shared_ptr<GeomAPI_Pln> thePlane,
34 const double theSize);
36 /// Creates the planar face by given point of the center and normal to the plane.
37 static std::shared_ptr<GeomAPI_Face> planarFace(const std::shared_ptr<GeomAPI_Pnt> theCenter,
38 const std::shared_ptr<GeomAPI_Dir> theNormal);
40 /// Creates a planar face by given plane, left lower point and size.
41 static std::shared_ptr<GeomAPI_Face> planarFace(const std::shared_ptr<GeomAPI_Pln> thePlane,
42 const double theX, const double theY,
43 const double theWidth, const double theHeight);
45 /// Creates a planar face by three vertices.
46 static std::shared_ptr<GeomAPI_Face> planarFaceByThreeVertices(
47 const std::shared_ptr<GeomAPI_Vertex> theVertex1,
48 const std::shared_ptr<GeomAPI_Vertex> theVertex2,
49 const std::shared_ptr<GeomAPI_Vertex> theVertex3);
51 /// Creates a planar face parallel to theFace and passing through theVertex.
52 static std::shared_ptr<GeomAPI_Face> planarFaceByFaceAndVertex(
53 const std::shared_ptr<GeomAPI_Face> theFace,
54 const std::shared_ptr<GeomAPI_Vertex> theVertex);