File indexing completed on 2025-01-18 10:03:16
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
0051 class BRepPrimAPI_MakeBox : public BRepBuilderAPI_MakeShape
0052 {
0053 public:
0054
0055 DEFINE_STANDARD_ALLOC
0056
0057
0058
0059 BRepPrimAPI_MakeBox() {}
0060
0061
0062 Standard_EXPORT BRepPrimAPI_MakeBox(const Standard_Real dx, const Standard_Real dy, const Standard_Real dz);
0063
0064
0065 Standard_EXPORT BRepPrimAPI_MakeBox(const gp_Pnt& P, const Standard_Real dx, const Standard_Real dy, const Standard_Real dz);
0066
0067
0068 Standard_EXPORT BRepPrimAPI_MakeBox(const gp_Pnt& P1, const gp_Pnt& P2);
0069
0070
0071 Standard_EXPORT BRepPrimAPI_MakeBox(const gp_Ax2& Axes, const Standard_Real dx, const Standard_Real dy, const Standard_Real dz);
0072
0073
0074 Standard_EXPORT void Init (const Standard_Real theDX, const Standard_Real theDY, const Standard_Real theDZ);
0075
0076
0077 Standard_EXPORT void Init (const gp_Pnt& thePnt,
0078 const Standard_Real theDX,
0079 const Standard_Real theDY,
0080 const Standard_Real theDZ);
0081
0082
0083 Standard_EXPORT void Init (const gp_Pnt& thePnt1, const gp_Pnt& thePnt2);
0084
0085
0086 Standard_EXPORT void Init (const gp_Ax2& theAxes,
0087 const Standard_Real theDX,
0088 const Standard_Real theDY,
0089 const Standard_Real theDZ);
0090
0091
0092 Standard_EXPORT BRepPrim_Wedge& Wedge();
0093
0094
0095 Standard_EXPORT virtual void Build(const Message_ProgressRange& theRange = Message_ProgressRange()) Standard_OVERRIDE;
0096
0097
0098 Standard_EXPORT const TopoDS_Shell& Shell();
0099 Standard_EXPORT operator TopoDS_Shell();
0100
0101
0102 Standard_EXPORT const TopoDS_Solid& Solid();
0103 Standard_EXPORT operator TopoDS_Solid();
0104
0105
0106 Standard_EXPORT const TopoDS_Face& BottomFace();
0107
0108
0109 Standard_EXPORT const TopoDS_Face& BackFace();
0110
0111
0112 Standard_EXPORT const TopoDS_Face& FrontFace();
0113
0114
0115 Standard_EXPORT const TopoDS_Face& LeftFace();
0116
0117
0118 Standard_EXPORT const TopoDS_Face& RightFace();
0119
0120
0121 Standard_EXPORT const TopoDS_Face& TopFace();
0122
0123
0124
0125
0126 protected:
0127
0128
0129 BRepPrim_Wedge myWedge;
0130
0131
0132
0133 private:
0134
0135
0136
0137
0138
0139 };
0140
0141
0142
0143
0144
0145
0146
0147 #endif