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 _BRepPrim_GWedge_HeaderFile
0018 #define _BRepPrim_GWedge_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <BRepPrim_Builder.hxx>
0025 #include <gp_Ax2.hxx>
0026 #include <TopoDS_Shell.hxx>
0027 #include <Standard_Boolean.hxx>
0028 #include <TopoDS_Vertex.hxx>
0029 #include <TopoDS_Edge.hxx>
0030 #include <TopoDS_Wire.hxx>
0031 #include <TopoDS_Face.hxx>
0032 #include <BRepPrim_Direction.hxx>
0033 class gp_Pln;
0034 class gp_Lin;
0035 class gp_Pnt;
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057 class BRepPrim_GWedge
0058 {
0059 public:
0060
0061 DEFINE_STANDARD_ALLOC
0062
0063
0064 Standard_EXPORT BRepPrim_GWedge();
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076
0077 Standard_EXPORT BRepPrim_GWedge(const BRepPrim_Builder& B, const gp_Ax2& Axes, const Standard_Real dx, const Standard_Real dy, const Standard_Real dz);
0078
0079
0080
0081
0082
0083
0084
0085
0086
0087
0088
0089
0090
0091 Standard_EXPORT BRepPrim_GWedge(const BRepPrim_Builder& B, const gp_Ax2& Axes, const Standard_Real dx, const Standard_Real dy, const Standard_Real dz, const Standard_Real ltx);
0092
0093
0094
0095
0096
0097
0098
0099 Standard_EXPORT BRepPrim_GWedge(const BRepPrim_Builder& B, const gp_Ax2& Axes, const Standard_Real xmin, const Standard_Real ymin, const Standard_Real zmin, const Standard_Real z2min, const Standard_Real x2min, const Standard_Real xmax, const Standard_Real ymax, const Standard_Real zmax, const Standard_Real z2max, const Standard_Real x2max);
0100
0101
0102 Standard_EXPORT gp_Ax2 Axes() const;
0103
0104
0105 Standard_EXPORT Standard_Real GetXMin() const;
0106
0107
0108 Standard_EXPORT Standard_Real GetYMin() const;
0109
0110
0111 Standard_EXPORT Standard_Real GetZMin() const;
0112
0113
0114 Standard_EXPORT Standard_Real GetZ2Min() const;
0115
0116
0117 Standard_EXPORT Standard_Real GetX2Min() const;
0118
0119
0120 Standard_EXPORT Standard_Real GetXMax() const;
0121
0122
0123 Standard_EXPORT Standard_Real GetYMax() const;
0124
0125
0126 Standard_EXPORT Standard_Real GetZMax() const;
0127
0128
0129 Standard_EXPORT Standard_Real GetZ2Max() const;
0130
0131
0132 Standard_EXPORT Standard_Real GetX2Max() const;
0133
0134
0135
0136 Standard_EXPORT void Open (const BRepPrim_Direction d1);
0137
0138
0139
0140 Standard_EXPORT void Close (const BRepPrim_Direction d1);
0141
0142
0143 Standard_EXPORT Standard_Boolean IsInfinite (const BRepPrim_Direction d1) const;
0144
0145
0146 Standard_EXPORT const TopoDS_Shell& Shell();
0147
0148
0149 Standard_EXPORT Standard_Boolean HasFace (const BRepPrim_Direction d1) const;
0150
0151
0152 Standard_EXPORT const TopoDS_Face& Face (const BRepPrim_Direction d1);
0153
0154
0155
0156 Standard_EXPORT gp_Pln Plane (const BRepPrim_Direction d1);
0157
0158
0159 Standard_EXPORT Standard_Boolean HasWire (const BRepPrim_Direction d1) const;
0160
0161
0162 Standard_EXPORT const TopoDS_Wire& Wire (const BRepPrim_Direction d1);
0163
0164
0165 Standard_EXPORT Standard_Boolean HasEdge (const BRepPrim_Direction d1, const BRepPrim_Direction d2) const;
0166
0167
0168 Standard_EXPORT const TopoDS_Edge& Edge (const BRepPrim_Direction d1, const BRepPrim_Direction d2);
0169
0170
0171
0172 Standard_EXPORT gp_Lin Line (const BRepPrim_Direction d1, const BRepPrim_Direction d2);
0173
0174
0175
0176 Standard_EXPORT Standard_Boolean HasVertex (const BRepPrim_Direction d1, const BRepPrim_Direction d2, const BRepPrim_Direction d3) const;
0177
0178
0179
0180 Standard_EXPORT const TopoDS_Vertex& Vertex (const BRepPrim_Direction d1, const BRepPrim_Direction d2, const BRepPrim_Direction d3);
0181
0182
0183
0184 Standard_EXPORT gp_Pnt Point (const BRepPrim_Direction d1, const BRepPrim_Direction d2, const BRepPrim_Direction d3);
0185
0186
0187
0188 Standard_EXPORT Standard_Boolean IsDegeneratedShape();
0189
0190
0191 protected:
0192
0193
0194
0195
0196
0197 private:
0198
0199
0200
0201 BRepPrim_Builder myBuilder;
0202 gp_Ax2 myAxes;
0203 Standard_Real XMin;
0204 Standard_Real XMax;
0205 Standard_Real YMin;
0206 Standard_Real YMax;
0207 Standard_Real ZMin;
0208 Standard_Real ZMax;
0209 Standard_Real Z2Min;
0210 Standard_Real Z2Max;
0211 Standard_Real X2Min;
0212 Standard_Real X2Max;
0213 TopoDS_Shell myShell;
0214 Standard_Boolean ShellBuilt;
0215 TopoDS_Vertex myVertices[8];
0216 Standard_Boolean VerticesBuilt[8];
0217 TopoDS_Edge myEdges[12];
0218 Standard_Boolean EdgesBuilt[12];
0219 TopoDS_Wire myWires[6];
0220 Standard_Boolean WiresBuilt[6];
0221 TopoDS_Face myFaces[6];
0222 Standard_Boolean FacesBuilt[6];
0223 Standard_Boolean myInfinite[6];
0224
0225
0226 };
0227
0228
0229
0230
0231
0232
0233
0234 #endif