File indexing completed on 2025-01-18 10:03:13
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepLib_MakeFace_HeaderFile
0018 #define _BRepLib_MakeFace_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <BRepLib_FaceError.hxx>
0025 #include <BRepLib_MakeShape.hxx>
0026 class TopoDS_Face;
0027 class gp_Pln;
0028 class gp_Cylinder;
0029 class gp_Cone;
0030 class gp_Sphere;
0031 class gp_Torus;
0032 class Geom_Surface;
0033 class TopoDS_Wire;
0034 class Geom_Curve;
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062 class BRepLib_MakeFace : public BRepLib_MakeShape
0063 {
0064 public:
0065
0066 DEFINE_STANDARD_ALLOC
0067
0068
0069
0070 Standard_EXPORT BRepLib_MakeFace();
0071
0072
0073 Standard_EXPORT BRepLib_MakeFace(const TopoDS_Face& F);
0074
0075
0076 Standard_EXPORT BRepLib_MakeFace(const gp_Pln& P);
0077
0078
0079 Standard_EXPORT BRepLib_MakeFace(const gp_Cylinder& C);
0080
0081
0082 Standard_EXPORT BRepLib_MakeFace(const gp_Cone& C);
0083
0084
0085 Standard_EXPORT BRepLib_MakeFace(const gp_Sphere& S);
0086
0087
0088 Standard_EXPORT BRepLib_MakeFace(const gp_Torus& C);
0089
0090
0091
0092 Standard_EXPORT BRepLib_MakeFace(const Handle(Geom_Surface)& S, const Standard_Real TolDegen);
0093
0094
0095 Standard_EXPORT BRepLib_MakeFace(const gp_Pln& P, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax);
0096
0097
0098 Standard_EXPORT BRepLib_MakeFace(const gp_Cylinder& C, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax);
0099
0100
0101 Standard_EXPORT BRepLib_MakeFace(const gp_Cone& C, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax);
0102
0103
0104 Standard_EXPORT BRepLib_MakeFace(const gp_Sphere& S, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax);
0105
0106
0107 Standard_EXPORT BRepLib_MakeFace(const gp_Torus& C, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax);
0108
0109
0110
0111
0112 Standard_EXPORT BRepLib_MakeFace(const Handle(Geom_Surface)& S, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax, const Standard_Real TolDegen);
0113
0114
0115
0116
0117
0118 Standard_EXPORT BRepLib_MakeFace(const TopoDS_Wire& W, const Standard_Boolean OnlyPlane = Standard_False);
0119
0120
0121 Standard_EXPORT BRepLib_MakeFace(const gp_Pln& P, const TopoDS_Wire& W, const Standard_Boolean Inside = Standard_True);
0122
0123
0124 Standard_EXPORT BRepLib_MakeFace(const gp_Cylinder& C, const TopoDS_Wire& W, const Standard_Boolean Inside = Standard_True);
0125
0126
0127 Standard_EXPORT BRepLib_MakeFace(const gp_Cone& C, const TopoDS_Wire& W, const Standard_Boolean Inside = Standard_True);
0128
0129
0130 Standard_EXPORT BRepLib_MakeFace(const gp_Sphere& S, const TopoDS_Wire& W, const Standard_Boolean Inside = Standard_True);
0131
0132
0133 Standard_EXPORT BRepLib_MakeFace(const gp_Torus& C, const TopoDS_Wire& W, const Standard_Boolean Inside = Standard_True);
0134
0135
0136 Standard_EXPORT BRepLib_MakeFace(const Handle(Geom_Surface)& S, const TopoDS_Wire& W, const Standard_Boolean Inside = Standard_True);
0137
0138
0139 Standard_EXPORT BRepLib_MakeFace(const TopoDS_Face& F, const TopoDS_Wire& W);
0140
0141
0142 Standard_EXPORT void Init (const TopoDS_Face& F);
0143
0144
0145
0146
0147
0148 Standard_EXPORT void Init (const Handle(Geom_Surface)& S, const Standard_Boolean Bound, const Standard_Real TolDegen);
0149
0150
0151
0152
0153 Standard_EXPORT void Init (const Handle(Geom_Surface)& S, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax, const Standard_Real TolDegen);
0154
0155
0156 Standard_EXPORT void Add (const TopoDS_Wire& W);
0157
0158 Standard_EXPORT BRepLib_FaceError Error() const;
0159
0160
0161 Standard_EXPORT const TopoDS_Face& Face() const;
0162 Standard_EXPORT operator TopoDS_Face() const;
0163
0164
0165
0166
0167
0168
0169 Standard_EXPORT static Standard_Boolean IsDegenerated (const Handle(Geom_Curve)& theCurve, const Standard_Real theMaxTol, Standard_Real& theActTol);
0170
0171
0172
0173
0174 protected:
0175
0176
0177
0178
0179
0180 private:
0181
0182
0183
0184
0185 Standard_EXPORT void CheckInside();
0186
0187
0188 BRepLib_FaceError myError;
0189
0190
0191 };
0192
0193
0194
0195
0196
0197
0198
0199 #endif