File indexing completed on 2026-07-24 09:16:04
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepPrimAPI_MakeBox_HeaderFile
0018 #define _BRepPrimAPI_MakeBox_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022
0023 #include <BRepPrim_Wedge.hxx>
0024 #include <BRepBuilderAPI_MakeShape.hxx>
0025 class gp_Pnt;
0026 class gp_Ax2;
0027 class TopoDS_Shell;
0028 class TopoDS_Solid;
0029 class TopoDS_Face;
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050 class BRepPrimAPI_MakeBox : public BRepBuilderAPI_MakeShape
0051 {
0052 public:
0053 DEFINE_STANDARD_ALLOC
0054
0055
0056 BRepPrimAPI_MakeBox() {}
0057
0058
0059 Standard_EXPORT BRepPrimAPI_MakeBox(const Standard_Real dx,
0060 const Standard_Real dy,
0061 const Standard_Real dz);
0062
0063
0064 Standard_EXPORT BRepPrimAPI_MakeBox(const gp_Pnt& P,
0065 const Standard_Real dx,
0066 const Standard_Real dy,
0067 const Standard_Real dz);
0068
0069
0070 Standard_EXPORT BRepPrimAPI_MakeBox(const gp_Pnt& P1, const gp_Pnt& P2);
0071
0072
0073 Standard_EXPORT BRepPrimAPI_MakeBox(const gp_Ax2& Axes,
0074 const Standard_Real dx,
0075 const Standard_Real dy,
0076 const Standard_Real dz);
0077
0078
0079 Standard_EXPORT void Init(const Standard_Real theDX,
0080 const Standard_Real theDY,
0081 const Standard_Real theDZ);
0082
0083
0084 Standard_EXPORT void Init(const gp_Pnt& thePnt,
0085 const Standard_Real theDX,
0086 const Standard_Real theDY,
0087 const Standard_Real theDZ);
0088
0089
0090 Standard_EXPORT void Init(const gp_Pnt& thePnt1, const gp_Pnt& thePnt2);
0091
0092
0093 Standard_EXPORT void Init(const gp_Ax2& theAxes,
0094 const Standard_Real theDX,
0095 const Standard_Real theDY,
0096 const Standard_Real theDZ);
0097
0098
0099 Standard_EXPORT BRepPrim_Wedge& Wedge();
0100
0101
0102 Standard_EXPORT virtual void Build(
0103 const Message_ProgressRange& theRange = Message_ProgressRange()) Standard_OVERRIDE;
0104
0105
0106 Standard_EXPORT const TopoDS_Shell& Shell();
0107 Standard_EXPORT operator TopoDS_Shell();
0108
0109
0110 Standard_EXPORT const TopoDS_Solid& Solid();
0111 Standard_EXPORT operator TopoDS_Solid();
0112
0113
0114 Standard_EXPORT const TopoDS_Face& BottomFace();
0115
0116
0117 Standard_EXPORT const TopoDS_Face& BackFace();
0118
0119
0120 Standard_EXPORT const TopoDS_Face& FrontFace();
0121
0122
0123 Standard_EXPORT const TopoDS_Face& LeftFace();
0124
0125
0126 Standard_EXPORT const TopoDS_Face& RightFace();
0127
0128
0129 Standard_EXPORT const TopoDS_Face& TopFace();
0130
0131 protected:
0132 BRepPrim_Wedge myWedge;
0133
0134 private:
0135 };
0136
0137 #endif