1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: GeomAPI_Face.h
5 // Author: Artem ZHIDKOV
7 #ifndef GeomAPI_Face_H_
8 #define GeomAPI_Face_H_
10 #include <GeomAPI_Shape.h>
14 /**\class GeomAPI_Face
16 * \brief Interface to the face object
18 class GEOMAPI_EXPORT GeomAPI_Face : public GeomAPI_Shape
21 /// Creation of empty (null) shape
24 /// Creation of face by the face-shape
25 GeomAPI_Face(const std::shared_ptr<GeomAPI_Shape>& theShape);
27 /// Returns true if the current face is geometrically equal to the given face
28 virtual bool isEqual(const std::shared_ptr<GeomAPI_Shape> theFace) const;
30 /// Returns true if the face is a planar face
31 bool isPlanar() const;
33 /// Returns the base plane of the face (if it is planar) with location in the center of the face
34 std::shared_ptr<GeomAPI_Pln> getPlane() const;