20 #ifndef GEOMALGOAPI_BOX_H_
21 #define GEOMALGOAPI_BOX_H_
23 #include <GeomAPI_Pnt.h>
24 #include <GeomAlgoAPI_MakeShape.h>
46 GEOMALGOAPI_EXPORT
GeomAlgoAPI_Box(
const double theDx,
const double theDy,
const double theDz);
51 GEOMALGOAPI_EXPORT
GeomAlgoAPI_Box(std::shared_ptr<GeomAPI_Pnt> theFirstPoint,
52 std::shared_ptr<GeomAPI_Pnt> theSecondPoint);
61 GEOMALGOAPI_EXPORT
GeomAlgoAPI_Box(
const double theOx,
const double theOy,
const double theOz,
62 const double theDx,
const double theDy,
const double theDz);
65 GEOMALGOAPI_EXPORT
bool check();
68 GEOMALGOAPI_EXPORT
void build();
75 void buildWithDimensions();
77 void buildWithPoints();
79 void buildWithPointAndDims();
87 std::shared_ptr<GeomAPI_Pnt> myFirstPoint;
88 std::shared_ptr<GeomAPI_Pnt> mySecondPoint;
90 std::string headError;
Allows to create Box Primitives.
Definition: GeomAlgoAPI_Box.h:31
GEOMALGOAPI_EXPORT bool check()
Checks if data for the box construction is OK.
Definition: GeomAlgoAPI_Box.cpp:65
GEOMALGOAPI_EXPORT void prepareNamingFaces()
Prepare the naming (redifined because it is specific for a box).
Definition: GeomAlgoAPI_Box.cpp:202
GEOMALGOAPI_EXPORT void build()
Builds the box.
Definition: GeomAlgoAPI_Box.cpp:109
MethodType
Type of box operation.
Definition: GeomAlgoAPI_Box.h:34
@ BOX_POINTS
Box with points.
Definition: GeomAlgoAPI_Box.h:36
@ BOX_DIM
Box with dimensions.
Definition: GeomAlgoAPI_Box.h:35
@ BOX_POINT_DIMS
Box with coordinates of a point and dimensions.
Definition: GeomAlgoAPI_Box.h:37
Interface to the root class of all topological shapes constructions.
Definition: GeomAlgoAPI_MakeShape.h:35