File indexing completed on 2025-01-18 10:03:10
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepClass_FaceExplorer_HeaderFile
0018 #define _BRepClass_FaceExplorer_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
0023
0024 #include <TopAbs_Orientation.hxx>
0025 #include <TopoDS_Face.hxx>
0026 #include <TopExp_Explorer.hxx>
0027 #include <Standard_Integer.hxx>
0028 class gp_Pnt2d;
0029 class gp_Lin2d;
0030 class BRepClass_Edge;
0031
0032
0033
0034
0035 class BRepClass_FaceExplorer
0036 {
0037 public:
0038
0039 DEFINE_STANDARD_ALLOC
0040
0041
0042 Standard_EXPORT BRepClass_FaceExplorer(const TopoDS_Face& F);
0043
0044
0045
0046
0047
0048 Standard_EXPORT Standard_Boolean CheckPoint (gp_Pnt2d& thePoint);
0049
0050
0051
0052 Standard_EXPORT Standard_Boolean Reject (const gp_Pnt2d& P) const;
0053
0054
0055
0056
0057 Standard_EXPORT Standard_Boolean Segment (const gp_Pnt2d& P, gp_Lin2d& L, Standard_Real& Par);
0058
0059
0060
0061
0062 Standard_EXPORT Standard_Boolean OtherSegment (const gp_Pnt2d& P, gp_Lin2d& L, Standard_Real& Par);
0063
0064
0065 Standard_EXPORT void InitWires();
0066
0067
0068 Standard_Boolean MoreWires() const;
0069
0070
0071 void NextWire();
0072
0073
0074
0075 Standard_EXPORT Standard_Boolean RejectWire (const gp_Lin2d& L, const Standard_Real Par) const;
0076
0077
0078
0079 Standard_EXPORT void InitEdges();
0080
0081
0082 Standard_Boolean MoreEdges() const;
0083
0084
0085 void NextEdge();
0086
0087
0088
0089 Standard_EXPORT Standard_Boolean RejectEdge (const gp_Lin2d& L, const Standard_Real Par) const;
0090
0091
0092 Standard_EXPORT void CurrentEdge (BRepClass_Edge& E, TopAbs_Orientation& Or) const;
0093
0094
0095 Standard_Real MaxTolerance() const
0096 {
0097 return myMaxTolerance;
0098 }
0099
0100
0101
0102 void SetMaxTolerance(const Standard_Real theValue)
0103 {
0104 myMaxTolerance = theValue;
0105 }
0106
0107
0108
0109 Standard_Boolean UseBndBox() const
0110 {
0111 return myUseBndBox;
0112 }
0113
0114
0115
0116 void SetUseBndBox(const Standard_Boolean theValue)
0117 {
0118 myUseBndBox = theValue;
0119 }
0120
0121
0122
0123
0124 protected:
0125
0126
0127 Standard_EXPORT void ComputeFaceBounds();
0128
0129
0130 private:
0131
0132
0133
0134 TopoDS_Face myFace;
0135 TopExp_Explorer myWExplorer;
0136 TopExp_Explorer myEExplorer;
0137 Standard_Integer myCurEdgeInd;
0138 Standard_Real myCurEdgePar;
0139 Standard_Real myMaxTolerance;
0140 Standard_Boolean myUseBndBox;
0141 TopTools_IndexedDataMapOfShapeListOfShape myMapVE;
0142
0143 Standard_Real myUMin;
0144 Standard_Real myUMax;
0145 Standard_Real myVMin;
0146 Standard_Real myVMax;
0147 };
0148
0149
0150 #include <BRepClass_FaceExplorer.lxx>
0151
0152
0153
0154
0155
0156 #endif