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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
|
// 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 _BOP_ShellSolid_HeaderFile
#define _BOP_ShellSolid_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 _TopTools_ListOfShape_HeaderFile
#include <TopTools_ListOfShape.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _BOP_Builder_HeaderFile
#include <BOP_Builder.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _TopAbs_ShapeEnum_HeaderFile
#include <TopAbs_ShapeEnum.hxx>
#endif
#ifndef _BOP_Operation_HeaderFile
#include <BOP_Operation.hxx>
#endif
#ifndef _TopAbs_Orientation_HeaderFile
#include <TopAbs_Orientation.hxx>
#endif
#ifndef _Handle_BOP_HistoryCollector_HeaderFile
#include <Handle_BOP_HistoryCollector.hxx>
#endif
class BOPTools_DSFiller;
class BOP_WireEdgeSet;
class TopTools_IndexedMapOfShape;
class TopTools_IndexedDataMapOfShapeListOfShape;
class TColStd_IndexedMapOfInteger;
class TopoDS_Shape;
class TopoDS_Edge;
class TopoDS_Face;
class TopoDS_Shell;
class TopTools_ListOfShape;
class TopTools_DataMapOfShapeInteger;
class BOP_HistoryCollector;
//! Performs Boolean Operations (BO) <br>
//! Common,Cut,Fuse for arguments of <br>
//! shell/solid type <br>
class BOP_ShellSolid : public BOP_Builder {
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);
}
//! Empty constructor; <br>
Standard_EXPORT BOP_ShellSolid();
//! see base classes, please <br>
Standard_EXPORT virtual void Do() ;
//! see base classes, please <br>
Standard_EXPORT virtual void DoWithFiller(const BOPTools_DSFiller& aDSF) ;
//! Destructor <br>
Standard_EXPORT virtual void Destroy() ;
Standard_EXPORT virtual ~BOP_ShellSolid(){Destroy();}
//! see base classes, please <br>
Standard_EXPORT virtual void BuildResult() ;
//! see base classes, please <br>
Standard_EXPORT virtual void DoNewFaces() ;
//! Provides some preparing steps of algorithm <br>
//! 1. Compute the 3D-States <br>
//! 2. Compute P-Curves for section- and split- edges <br>
//! 3. Treat degenerated edges <br>
//! 4 Detect Same Domain faces <br>
Standard_EXPORT virtual void Prepare() ;
//! Check the types of arguments. <br>
//! Returns FALSE if types of arguments <br>
//! are non-valid to be treated by the <br>
//! agorithm <br>
Standard_EXPORT static Standard_Boolean CheckArgTypes(const TopAbs_ShapeEnum theType1,const TopAbs_ShapeEnum theType2,const BOP_Operation theOperation) ;
//! Check the types of arguments. <br>
//! Returns FALSE if types of arguments <br>
//! are non-valid to be treated by the <br>
//! agorithm <br>
Standard_EXPORT Standard_Boolean CheckArgTypes() const;
Standard_EXPORT Standard_Boolean SplitFace(const Standard_Integer theFaceIndex,TopTools_DataMapOfShapeInteger& theMapOfEdgeIndex,TopTools_ListOfShape& theListOfFace) const;
Standard_EXPORT virtual void SetHistoryCollector(const Handle(BOP_HistoryCollector)& theHistory) ;
protected:
//! The algo to find SameDomain Faces <br>
//! among interferred ones <br>
Standard_EXPORT void DetectSDFaces() ;
Standard_EXPORT void AddSplitPartsINOUT(const Standard_Integer nF1,BOP_WireEdgeSet& aWES) ;
Standard_EXPORT void AddSectionPartsSh(const Standard_Integer nF1,const Standard_Integer iFF,BOP_WireEdgeSet& aWES) ;
Standard_EXPORT void AddSplitPartsONSh(const Standard_Integer nF1,BOP_WireEdgeSet& aWES) ;
Standard_EXPORT void AddPartsEFSh(const Standard_Integer nF1,const Standard_Integer iFF,TopTools_IndexedMapOfShape& anEMap,BOP_WireEdgeSet& aWES) ;
Standard_EXPORT void AddINON2DPartsSh(const Standard_Integer nF1,const Standard_Integer iFF,BOP_WireEdgeSet& aWES) ;
Standard_EXPORT void AddINON2DPartsSh(const Standard_Integer nF1,const Standard_Integer iFF,BOP_WireEdgeSet& aWES,TopTools_IndexedMapOfShape& anEMap) ;
Standard_EXPORT void AddPartsEFNonSDSh(const Standard_Integer nF1,const Standard_Integer iFF,TopTools_IndexedMapOfShape& anEMap,BOP_WireEdgeSet& aWES) ;
Standard_EXPORT void AddPartsEENonSDSh(const Standard_Integer nF1,const Standard_Integer iFF,TopTools_IndexedMapOfShape& anEMap,BOP_WireEdgeSet& aWES) ;
Standard_EXPORT void AddSectionPartsSo(const Standard_Integer nF1,const Standard_Integer iFF,BOP_WireEdgeSet& aWES) ;
Standard_EXPORT void AddSplitPartsON3DSo(const Standard_Integer nF1,const Standard_Integer iFF,BOP_WireEdgeSet& aWES) ;
Standard_EXPORT void AddSplitPartsONSo(const Standard_Integer nF1,const TopTools_IndexedDataMapOfShapeListOfShape& aMEFObj,const TopTools_IndexedDataMapOfShapeListOfShape& aMEFTool,BOP_WireEdgeSet& aWES) ;
Standard_EXPORT void AddPartsEFSo(const Standard_Integer nF1,const Standard_Integer iFF,const TopTools_IndexedDataMapOfShapeListOfShape& aMEFObj,const TopTools_IndexedDataMapOfShapeListOfShape& aMEFTool,TopTools_IndexedMapOfShape& anEMap,BOP_WireEdgeSet& aWES) ;
Standard_EXPORT void AddINON2DPartsSo(const Standard_Integer iFF,const Standard_Integer nF1,const Standard_Integer nF2,BOP_WireEdgeSet& aWES) ;
Standard_EXPORT void AddPartsEFSDSo(const Standard_Integer nF1,const Standard_Integer iFF,const TopTools_IndexedDataMapOfShapeListOfShape& aMEFObj,const TopTools_IndexedDataMapOfShapeListOfShape& aMEFTool,BOP_WireEdgeSet& aWES) ;
Standard_EXPORT void AddPartsEFNonSDSo(const Standard_Integer nF1,const Standard_Integer iFF,const TopTools_IndexedDataMapOfShapeListOfShape& aMEFObj,const TopTools_IndexedDataMapOfShapeListOfShape& aMEFTool,const TColStd_IndexedMapOfInteger& aFFInMap,TopTools_IndexedMapOfShape& anEMap,BOP_WireEdgeSet& aWES) ;
Standard_EXPORT void AddPartsEENonSDSo(const Standard_Integer nF1,const Standard_Integer iFF,const TopTools_IndexedDataMapOfShapeListOfShape& aMEFObj,const TopTools_IndexedDataMapOfShapeListOfShape& aMEFTool,const TColStd_IndexedMapOfInteger& aFFInMap,TopTools_IndexedMapOfShape& anEMap,BOP_WireEdgeSet& aWES) ;
Standard_EXPORT void AddPartsEESDSo(const Standard_Integer nF1,const Standard_Integer iFF,const TopTools_IndexedDataMapOfShapeListOfShape& aMEFObj,const TopTools_IndexedDataMapOfShapeListOfShape& aMEFTool,BOP_WireEdgeSet& aWES) ;
//! Internal usage <br>
Standard_EXPORT static void Path(const TopoDS_Shape& aE,const TopTools_IndexedDataMapOfShapeListOfShape& aEFMap,TopTools_IndexedMapOfShape& aFaces,TopTools_IndexedMapOfShape& aProcE) ;
//! Internal usage <br>
Standard_EXPORT static TopAbs_Orientation Orientation(const TopoDS_Edge& aE,const TopoDS_Face& aF) ;
Standard_EXPORT static void OrientFacesOnShell(const TopoDS_Shell& aShell,TopoDS_Shell& aShellNew) ;
//! Internal usage <br>
Standard_EXPORT void DoInternalVertices(const Standard_Integer nF1,const TopTools_ListOfShape& aFaces) ;
//! Internal usage <br>
Standard_EXPORT const TopTools_ListOfShape& Internals() const;
//! Internal usage <br>
Standard_EXPORT void CollectInternals() ;
//! Internal usage <br>
Standard_EXPORT void FillSectionEdges() ;
TopoDS_Face myFace;
TopTools_ListOfShape myNewFaces;
TopTools_ListOfShape myInternals;
Standard_Integer myRank;
private:
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|