1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: GeomAlgoAPI_Sphere.h
4 // Created: 16 Mar 2017
5 // Author: Clarisse Genrault (CEA)
7 #ifndef GEOMALGOAPI_SPHERE_H_
8 #define GEOMALGOAPI_SPHERE_H_
10 #include <GeomAlgoAPI_MakeShape.h>
12 #include <GeomAPI_Pnt.h>
14 /**\class GeomAlgoAPI_Sphere
16 * \brief Allows to create Sphere Primitives
18 class GeomAlgoAPI_Sphere : public GeomAlgoAPI_MakeShape
21 GEOMALGOAPI_EXPORT GeomAlgoAPI_Sphere();
24 /// \param theCenterPoint The center point of the sphere
25 /// \param theRadius The radius of the sphere
26 GEOMALGOAPI_EXPORT GeomAlgoAPI_Sphere(std::shared_ptr<GeomAPI_Pnt> theCenterPoint,
27 const double theRadius);
29 /// Checks if data for the sphere construction is OK.
30 GEOMALGOAPI_EXPORT bool check();
32 /// Builds the sphere.
33 GEOMALGOAPI_EXPORT void build();
36 std::shared_ptr<GeomAPI_Pnt> myCenterPoint; /// Center of the sphere.
40 #endif // GEOMALGOAPI_SPHERE_H_