File indexing completed on 2026-11-26 10:23:40
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _TopOpeBRepTool_REGUS_HeaderFile
0018 #define _TopOpeBRepTool_REGUS_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022
0023 #include <TopoDS_Shape.hxx>
0024 #include <NCollection_List.hxx>
0025 #include <TopTools_ShapeMapHasher.hxx>
0026 #include <NCollection_DataMap.hxx>
0027 #include <NCollection_IndexedMap.hxx>
0028 #include <Standard_Integer.hxx>
0029 #include <NCollection_Map.hxx>
0030 class TopoDS_Face;
0031 class TopoDS_Edge;
0032
0033 class TopOpeBRepTool_REGUS
0034 {
0035 public:
0036 DEFINE_STANDARD_ALLOC
0037
0038 Standard_EXPORT TopOpeBRepTool_REGUS();
0039
0040 Standard_EXPORT void Init(const TopoDS_Shape& S);
0041
0042 Standard_EXPORT const TopoDS_Shape& S() const;
0043
0044 Standard_EXPORT bool MapS();
0045
0046 Standard_EXPORT static bool WireToFace(const TopoDS_Face& Fanc,
0047 const NCollection_List<TopoDS_Shape>& nWs,
0048 NCollection_List<TopoDS_Shape>& nFs);
0049
0050 Standard_EXPORT static bool SplitF(const TopoDS_Face& Fanc,
0051 NCollection_List<TopoDS_Shape>& FSplits);
0052
0053 Standard_EXPORT bool SplitFaces();
0054
0055 Standard_EXPORT bool REGU();
0056
0057 Standard_EXPORT void SetFsplits(
0058 NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>&
0059 Fsplits);
0060
0061 Standard_EXPORT void GetFsplits(
0062 NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>&
0063 Fsplits) const;
0064
0065 Standard_EXPORT void SetOshNsh(
0066 NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>&
0067 OshNsh);
0068
0069 Standard_EXPORT void GetOshNsh(
0070 NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>&
0071 OshNsh) const;
0072
0073 Standard_EXPORT bool InitBlock();
0074
0075 Standard_EXPORT bool NextinBlock();
0076
0077 Standard_EXPORT bool NearestF(const TopoDS_Edge& e,
0078 const NCollection_List<TopoDS_Shape>& lof,
0079 TopoDS_Face& ffound) const;
0080
0081 private:
0082 bool hasnewsplits;
0083 NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>
0084 myFsplits;
0085 NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>
0086 myOshNsh;
0087 TopoDS_Shape myS;
0088 NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>
0089 mymapeFsstatic;
0090 NCollection_DataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>
0091 mymapeFs;
0092 NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher> mymapemult;
0093 int mynF;
0094 int myoldnF;
0095 TopoDS_Shape myf;
0096 NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> myedstoconnect;
0097 NCollection_List<TopoDS_Shape> mylFinBlock;
0098 };
0099
0100 #endif