File indexing completed on 2025-01-18 10:05:27
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _TopOpeBRepTool_REGUW_HeaderFile
0018 #define _TopOpeBRepTool_REGUW_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022
0023 #include <TopoDS_Shape.hxx>
0024 #include <TopOpeBRepTool_CORRISO.hxx>
0025 #include <TopTools_DataMapOfShapeListOfShape.hxx>
0026 #include <TopOpeBRepTool_IndexedDataMapOfShapeconnexity.hxx>
0027 #include <TopTools_MapOfShape.hxx>
0028 #include <TopTools_ListOfShape.hxx>
0029 #include <Standard_Integer.hxx>
0030 #include <TopoDS_Vertex.hxx>
0031 #include <gp_Pnt2d.hxx>
0032 #include <TopoDS_Edge.hxx>
0033 #include <gp_Dir2d.hxx>
0034 class TopoDS_Face;
0035 class TopOpeBRepTool_connexity;
0036
0037
0038
0039 class TopOpeBRepTool_REGUW
0040 {
0041 public:
0042
0043 DEFINE_STANDARD_ALLOC
0044
0045
0046 Standard_EXPORT TopOpeBRepTool_REGUW(const TopoDS_Face& FRef);
0047
0048 Standard_EXPORT const TopoDS_Face& Fref() const;
0049
0050 Standard_EXPORT void SetEsplits (TopTools_DataMapOfShapeListOfShape& Esplits);
0051
0052 Standard_EXPORT void GetEsplits (TopTools_DataMapOfShapeListOfShape& Esplits) const;
0053
0054 Standard_EXPORT void SetOwNw (TopTools_DataMapOfShapeListOfShape& OwNw);
0055
0056 Standard_EXPORT void GetOwNw (TopTools_DataMapOfShapeListOfShape& OwNw) const;
0057
0058 Standard_EXPORT Standard_Boolean SplitEds();
0059
0060 Standard_EXPORT void Init (const TopoDS_Shape& S);
0061
0062 Standard_EXPORT const TopoDS_Shape& S() const;
0063
0064 Standard_EXPORT Standard_Boolean HasInit() const;
0065
0066 Standard_EXPORT Standard_Boolean MapS();
0067
0068 Standard_EXPORT Standard_Boolean REGU (const Standard_Integer istep, const TopoDS_Shape& Scur, TopTools_ListOfShape& Splits);
0069
0070 Standard_EXPORT Standard_Boolean REGU();
0071
0072 Standard_EXPORT Standard_Boolean GetSplits (TopTools_ListOfShape& Splits) const;
0073
0074 Standard_EXPORT Standard_Boolean InitBlock();
0075
0076 Standard_EXPORT Standard_Boolean NextinBlock();
0077
0078 Standard_EXPORT Standard_Boolean NearestE (const TopTools_ListOfShape& loe, TopoDS_Edge& efound) const;
0079
0080 Standard_EXPORT Standard_Boolean Connexity (const TopoDS_Vertex& v, TopOpeBRepTool_connexity& co) const;
0081
0082 Standard_EXPORT Standard_Boolean AddNewConnexity (const TopoDS_Vertex& v, const Standard_Integer OriKey, const TopoDS_Edge& e);
0083
0084 Standard_EXPORT Standard_Boolean RemoveOldConnexity (const TopoDS_Vertex& v, const Standard_Integer OriKey, const TopoDS_Edge& e);
0085
0086 Standard_EXPORT Standard_Boolean UpdateMultiple (const TopoDS_Vertex& v);
0087
0088
0089
0090
0091 protected:
0092
0093
0094
0095
0096
0097 private:
0098
0099
0100 Standard_EXPORT void InitStep (const TopoDS_Shape& S);
0101
0102
0103 TopoDS_Shape myS;
0104 TopOpeBRepTool_CORRISO myCORRISO;
0105 Standard_Boolean hasnewsplits;
0106 TopTools_DataMapOfShapeListOfShape myEsplits;
0107 TopTools_DataMapOfShapeListOfShape myOwNw;
0108 TopOpeBRepTool_IndexedDataMapOfShapeconnexity mymapvEds;
0109 TopTools_MapOfShape mymapvmultiple;
0110 TopTools_ListOfShape myListVmultiple;
0111 Standard_Integer iStep;
0112 Standard_Real mytol2d;
0113 Standard_Boolean isinit0;
0114 TopoDS_Vertex myv0;
0115 gp_Pnt2d myp2d0;
0116 TopoDS_Vertex myv;
0117 TopoDS_Edge myed;
0118 gp_Pnt2d myp2d;
0119 gp_Dir2d mytg2d;
0120
0121
0122 };
0123
0124
0125
0126
0127
0128
0129
0130 #endif