summaryrefslogtreecommitdiff
path: root/inc/TopOpeBRepTool_CORRISO.hxx
blob: bda6cf03d39e17dd1981b0233ddc62ff6b05fd84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _TopOpeBRepTool_CORRISO_HeaderFile
#define _TopOpeBRepTool_CORRISO_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _TopoDS_Face_HeaderFile
#include <TopoDS_Face.hxx>
#endif
#ifndef _GeomAdaptor_Surface_HeaderFile
#include <GeomAdaptor_Surface.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _TopoDS_Shape_HeaderFile
#include <TopoDS_Shape.hxx>
#endif
#ifndef _TopTools_ListOfShape_HeaderFile
#include <TopTools_ListOfShape.hxx>
#endif
#ifndef _TopOpeBRepTool_DataMapOfOrientedShapeC2DF_HeaderFile
#include <TopOpeBRepTool_DataMapOfOrientedShapeC2DF.hxx>
#endif
#ifndef _TopTools_DataMapOfShapeListOfShape_HeaderFile
#include <TopTools_DataMapOfShapeListOfShape.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
class TopoDS_Face;
class GeomAdaptor_Surface;
class TopoDS_Shape;
class TopTools_ListOfShape;
class TopoDS_Edge;
class TopTools_DataMapOfOrientedShapeInteger;
class TopOpeBRepTool_C2DF;
class TopoDS_Vertex;


//! Fref is built on x-periodic surface (x=u,v). <br>
//!           S built on Fref's geometry, should be UVClosed. <br>
//! <br>
//!           Give us E, an edge of S. 2drep(E) is not UV connexed. <br>
//!           We translate 2drep(E) in xdir*xperiod if necessary. <br>
//! <br>
//!           call : TopOpeBRepTool_CORRISO Tool(Fref); <br>
//!                  Tool.Init(S); <br>
//!                  if (!Tool.UVClosed()) { <br>
//!                     // initialize EdsToCheck,nfybounds,stopatfirst <br>
//! <br>
//!                     Tool.EdgeWithFaultyUV(EdsToCheck,nfybounds,FyEds,stopatfirst); <br>
//!                     if (Tool.SetUVClosed()) S = Tool.GetnewS(); <br>
//!                  } <br>
class TopOpeBRepTool_CORRISO  {
public:

  void* operator new(size_t,void* anAddress) 
  {
    return anAddress;
  }
  void* operator new(size_t size) 
  {
    return Standard::Allocate(size); 
  }
  void  operator delete(void *anAddress) 
  {
    if (anAddress) Standard::Free((Standard_Address&)anAddress); 
  }

  
  Standard_EXPORT   TopOpeBRepTool_CORRISO();
  
  Standard_EXPORT   TopOpeBRepTool_CORRISO(const TopoDS_Face& FRef);
  
  Standard_EXPORT    const TopoDS_Face& Fref() const;
  
  Standard_EXPORT    const GeomAdaptor_Surface& GASref() const;
  
  Standard_EXPORT     Standard_Boolean Refclosed(const Standard_Integer x,Standard_Real& xperiod) const;
  
  Standard_EXPORT     Standard_Boolean Init(const TopoDS_Shape& S) ;
  
  Standard_EXPORT    const TopoDS_Shape& S() const;
  
  Standard_EXPORT    const TopTools_ListOfShape& Eds() const;
  
  Standard_EXPORT     Standard_Boolean UVClosed() const;
  
  Standard_EXPORT     Standard_Real Tol(const Standard_Integer I,const Standard_Real tol3d) const;
  
  Standard_EXPORT     Standard_Boolean PurgeFyClosingE(const TopTools_ListOfShape& ClEds,TopTools_ListOfShape& fyClEds) const;
  
  Standard_EXPORT     Standard_Integer EdgeOUTofBoundsUV(const TopoDS_Edge& E,const Standard_Boolean onU,const Standard_Real tolx,Standard_Real& parspE) const;
  
  Standard_EXPORT     Standard_Boolean EdgesOUTofBoundsUV(const TopTools_ListOfShape& EdsToCheck,const Standard_Boolean onU,const Standard_Real tolx,TopTools_DataMapOfOrientedShapeInteger& FyEds) const;
  
  Standard_EXPORT     Standard_Boolean EdgeWithFaultyUV(const TopoDS_Edge& E,Standard_Integer& Ivfaulty) const;
  
  Standard_EXPORT     Standard_Boolean EdgesWithFaultyUV(const TopTools_ListOfShape& EdsToCheck,const Standard_Integer nfybounds,TopTools_DataMapOfOrientedShapeInteger& FyEds,const Standard_Boolean stopatfirst = Standard_False) const;
  
  Standard_EXPORT     Standard_Boolean EdgeWithFaultyUV(const TopTools_ListOfShape& EdsToCheck,const Standard_Integer nfybounds,TopoDS_Shape& fyE,Standard_Integer& Ifaulty) const;
  
  Standard_EXPORT     Standard_Boolean TrslUV(const Standard_Boolean onU,const TopTools_DataMapOfOrientedShapeInteger& FyEds) ;
  
  Standard_EXPORT     Standard_Boolean GetnewS(TopoDS_Face& newS) const;
  
  Standard_EXPORT     Standard_Boolean UVRep(const TopoDS_Edge& E,TopOpeBRepTool_C2DF& C2DF) const;
  
  Standard_EXPORT     Standard_Boolean SetUVRep(const TopoDS_Edge& E,const TopOpeBRepTool_C2DF& C2DF) ;
  
  Standard_EXPORT     Standard_Boolean Connexity(const TopoDS_Vertex& V,TopTools_ListOfShape& Eds) const;
  
  Standard_EXPORT     Standard_Boolean SetConnexity(const TopoDS_Vertex& V,const TopTools_ListOfShape& Eds) ;
  
  Standard_EXPORT     Standard_Boolean AddNewConnexity(const TopoDS_Vertex& V,const TopoDS_Edge& E) ;
  
  Standard_EXPORT     Standard_Boolean RemoveOldConnexity(const TopoDS_Vertex& V,const TopoDS_Edge& E) ;





protected:





private:



TopoDS_Face myFref;
GeomAdaptor_Surface myGAS;
Standard_Boolean myUclosed;
Standard_Boolean myVclosed;
Standard_Real myUper;
Standard_Real myVper;
TopoDS_Shape myS;
TopTools_ListOfShape myEds;
TopOpeBRepTool_DataMapOfOrientedShapeC2DF myERep2d;
TopTools_DataMapOfShapeListOfShape myVEds;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif