1 // Created on: 1998-12-08
2 // Created by: Xuan PHAM PHU
3 // Copyright (c) 1998-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _TopOpeBRepTool_REGUW_HeaderFile
18 #define _TopOpeBRepTool_REGUW_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <TopoDS_Shape.hxx>
25 #include <TopOpeBRepTool_CORRISO.hxx>
26 #include <Standard_Boolean.hxx>
27 #include <TopTools_DataMapOfShapeListOfShape.hxx>
28 #include <TopOpeBRepTool_IndexedDataMapOfShapeconnexity.hxx>
29 #include <TopTools_MapOfShape.hxx>
30 #include <TopTools_ListOfShape.hxx>
31 #include <Standard_Integer.hxx>
32 #include <Standard_Real.hxx>
33 #include <TopoDS_Vertex.hxx>
34 #include <gp_Pnt2d.hxx>
35 #include <TopoDS_Edge.hxx>
36 #include <gp_Dir2d.hxx>
41 class TopOpeBRepTool_connexity;
45 class TopOpeBRepTool_REGUW
52 Standard_EXPORT TopOpeBRepTool_REGUW(const TopoDS_Face& FRef);
54 Standard_EXPORT const TopoDS_Face& Fref() const;
56 Standard_EXPORT void SetEsplits (TopTools_DataMapOfShapeListOfShape& Esplits);
58 Standard_EXPORT void GetEsplits (TopTools_DataMapOfShapeListOfShape& Esplits) const;
60 Standard_EXPORT void SetOwNw (TopTools_DataMapOfShapeListOfShape& OwNw);
62 Standard_EXPORT void GetOwNw (TopTools_DataMapOfShapeListOfShape& OwNw) const;
64 Standard_EXPORT Standard_Boolean SplitEds();
66 Standard_EXPORT void Init (const TopoDS_Shape& S);
68 Standard_EXPORT const TopoDS_Shape& S() const;
70 Standard_EXPORT Standard_Boolean HasInit() const;
72 Standard_EXPORT Standard_Boolean MapS();
74 Standard_EXPORT Standard_Boolean REGU (const Standard_Integer istep, const TopoDS_Shape& Scur, TopTools_ListOfShape& Splits);
76 Standard_EXPORT Standard_Boolean REGU();
78 Standard_EXPORT Standard_Boolean GetSplits (TopTools_ListOfShape& Splits) const;
80 Standard_EXPORT Standard_Boolean InitBlock();
82 Standard_EXPORT Standard_Boolean NextinBlock();
84 Standard_EXPORT Standard_Boolean NearestE (const TopTools_ListOfShape& loe, TopoDS_Edge& efound) const;
86 Standard_EXPORT Standard_Boolean Connexity (const TopoDS_Vertex& v, TopOpeBRepTool_connexity& co) const;
88 Standard_EXPORT Standard_Boolean AddNewConnexity (const TopoDS_Vertex& v, const Standard_Integer OriKey, const TopoDS_Edge& e);
90 Standard_EXPORT Standard_Boolean RemoveOldConnexity (const TopoDS_Vertex& v, const Standard_Integer OriKey, const TopoDS_Edge& e);
92 Standard_EXPORT Standard_Boolean UpdateMultiple (const TopoDS_Vertex& v);
106 Standard_EXPORT void InitStep (const TopoDS_Shape& S);
110 TopOpeBRepTool_CORRISO myCORRISO;
111 Standard_Boolean hasnewsplits;
112 TopTools_DataMapOfShapeListOfShape myEsplits;
113 TopTools_DataMapOfShapeListOfShape myOwNw;
114 TopOpeBRepTool_IndexedDataMapOfShapeconnexity mymapvEds;
115 TopTools_MapOfShape mymapvmultiple;
116 TopTools_ListOfShape myListVmultiple;
117 Standard_Integer iStep;
118 Standard_Real mytol2d;
119 Standard_Boolean isinit0;
136 #endif // _TopOpeBRepTool_REGUW_HeaderFile