1 // Copyright (C) 2014-2016 CEA/DEN, EDF R&D
3 // File: GeomAlgoAPI_DirectAPI.h
4 // Created: 17 Mar 2016
5 // Author: Clarisse Genrault (CEA)
7 #ifndef GEOMALGOAPI_DIRECTAPI_H
8 #define GEOMALGOAPI_DIRECTAPI_H
10 #include <GeomAPI_Shape.h>
11 #include <GeomAPI_Pnt.h>
12 #include <GeomAPI_Edge.h>
14 #include <GeomAlgoAPI_Exception.h>
16 namespace GeomAlgoAPI_DirectAPI
18 /**\class GeomAlgoAPI_DirectAPI
20 * \brief Allows to access the direct API
22 class GEOMALGOAPI_EXPORT GeomAlgoAPI_DirectAPI
25 /// Creates a box using the dimensions.
26 /// \param theDx The dimension on X
27 /// \param theDy The dimension on Y
28 /// \param theDz The dimension on Z
30 static std::shared_ptr<GeomAPI_Shape> makeBox(const double theDx, const double theDy, const double theDz) throw (GeomAlgoAPI_Exception);
32 /// Creates a box using the two points that defined a diagonal.
33 /// \param theFirstPoint One extermity of the diagonal
34 /// \param theSecondPoint The other extremity of the diagonal
36 static std::shared_ptr<GeomAPI_Shape> makeBox(std::shared_ptr<GeomAPI_Pnt> theFirstPoint,
37 std::shared_ptr<GeomAPI_Pnt> theSecondPoint) throw (GeomAlgoAPI_Exception);