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
22 /// \param theCenterPoint The center point of the sphere
23 /// \param theRadius The radius of the sphere
24 GEOMALGOAPI_EXPORT GeomAlgoAPI_Sphere(std::shared_ptr<GeomAPI_Pnt> theCenterPoint,
25 const double theRadius);
27 /// Checks if data for the sphere construction is OK.
28 GEOMALGOAPI_EXPORT bool check();
30 /// Builds the sphere.
31 GEOMALGOAPI_EXPORT void build();
34 std::shared_ptr<GeomAPI_Pnt> myCenterPoint; /// Center of the sphere.
38 #endif // GEOMALGOAPI_SPHERE_H_