forked from tpaviot/pythonocc-core
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathBRepClass.i
More file actions
415 lines (375 loc) · 11.4 KB
/
BRepClass.i
File metadata and controls
415 lines (375 loc) · 11.4 KB
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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
/*
Copyright 2008-2017 Thomas Paviot (tpaviot@gmail.com)
This file is part of pythonOCC.
pythonOCC is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
pythonOCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with pythonOCC. If not, see <http://www.gnu.org/licenses/>.
*/
%define BREPCLASSDOCSTRING
"The BRepClass packages provides classification
algorithms for the BRep topology. It instantiates
the algorithms from the package TopClass.
"
%enddef
%module (package="OCC.Core", docstring=BREPCLASSDOCSTRING) BRepClass
#pragma SWIG nowarn=504,325,503
%{
#ifdef WNT
#pragma warning(disable : 4716)
#endif
%}
%include ../common/CommonIncludes.i
%include ../common/ExceptionCatcher.i
%include ../common/FunctionTransformers.i
%include ../common/Operators.i
%include ../common/OccHandle.i
%include BRepClass_headers.i
/* typedefs */
/* end typedefs declaration */
/* public enums */
/* end public enums declaration */
%nodefaultctor BRepClass_Edge;
class BRepClass_Edge {
public:
%feature("compactdefaultargs") BRepClass_Edge;
%feature("autodoc", " :rtype: None
") BRepClass_Edge;
BRepClass_Edge ();
%feature("compactdefaultargs") BRepClass_Edge;
%feature("autodoc", " :param E:
:type E: TopoDS_Edge &
:param F:
:type F: TopoDS_Face &
:rtype: None
") BRepClass_Edge;
BRepClass_Edge (const TopoDS_Edge & E,const TopoDS_Face & F);
%feature("compactdefaultargs") Edge;
%feature("autodoc", " :rtype: TopoDS_Edge
") Edge;
TopoDS_Edge Edge ();
%feature("compactdefaultargs") Edge;
%feature("autodoc", " :rtype: TopoDS_Edge
") Edge;
const TopoDS_Edge Edge ();
%feature("compactdefaultargs") Face;
%feature("autodoc", " :rtype: TopoDS_Face
") Face;
TopoDS_Face Face ();
%feature("compactdefaultargs") Face;
%feature("autodoc", " :rtype: TopoDS_Face
") Face;
const TopoDS_Face Face ();
};
%extend BRepClass_Edge {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor BRepClass_FClass2dOfFClassifier;
class BRepClass_FClass2dOfFClassifier {
public:
%feature("compactdefaultargs") BRepClass_FClass2dOfFClassifier;
%feature("autodoc", " :rtype: None
") BRepClass_FClass2dOfFClassifier;
BRepClass_FClass2dOfFClassifier ();
%feature("compactdefaultargs") Reset;
%feature("autodoc", " :param L:
:type L: gp_Lin2d
:param P:
:type P: float
:param Tol:
:type Tol: float
:rtype: None
") Reset;
void Reset (const gp_Lin2d & L,const Standard_Real P,const Standard_Real Tol);
%feature("compactdefaultargs") Compare;
%feature("autodoc", " :param E:
:type E: BRepClass_Edge &
:param Or:
:type Or: TopAbs_Orientation
:rtype: None
") Compare;
void Compare (const BRepClass_Edge & E,const TopAbs_Orientation Or);
%feature("compactdefaultargs") Parameter;
%feature("autodoc", " :rtype: float
") Parameter;
Standard_Real Parameter ();
%feature("compactdefaultargs") Intersector;
%feature("autodoc", " :rtype: BRepClass_Intersector
") Intersector;
BRepClass_Intersector & Intersector ();
%feature("compactdefaultargs") ClosestIntersection;
%feature("autodoc", " :rtype: int
") ClosestIntersection;
Standard_Integer ClosestIntersection ();
%feature("compactdefaultargs") State;
%feature("autodoc", " :rtype: TopAbs_State
") State;
TopAbs_State State ();
%feature("compactdefaultargs") IsHeadOrEnd;
%feature("autodoc", " :rtype: bool
") IsHeadOrEnd;
Standard_Boolean IsHeadOrEnd ();
};
%extend BRepClass_FClass2dOfFClassifier {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor BRepClass_FClassifier;
class BRepClass_FClassifier {
public:
%feature("compactdefaultargs") BRepClass_FClassifier;
%feature("autodoc", " :rtype: None
") BRepClass_FClassifier;
BRepClass_FClassifier ();
%feature("compactdefaultargs") BRepClass_FClassifier;
%feature("autodoc", " :param F:
:type F: BRepClass_FaceExplorer &
:param P:
:type P: gp_Pnt2d
:param Tol:
:type Tol: float
:rtype: None
") BRepClass_FClassifier;
BRepClass_FClassifier (BRepClass_FaceExplorer & F,const gp_Pnt2d & P,const Standard_Real Tol);
%feature("compactdefaultargs") Perform;
%feature("autodoc", " :param F:
:type F: BRepClass_FaceExplorer &
:param P:
:type P: gp_Pnt2d
:param Tol:
:type Tol: float
:rtype: None
") Perform;
void Perform (BRepClass_FaceExplorer & F,const gp_Pnt2d & P,const Standard_Real Tol);
%feature("compactdefaultargs") State;
%feature("autodoc", " :rtype: TopAbs_State
") State;
TopAbs_State State ();
%feature("compactdefaultargs") Rejected;
%feature("autodoc", " :rtype: bool
") Rejected;
Standard_Boolean Rejected ();
%feature("compactdefaultargs") NoWires;
%feature("autodoc", " :rtype: bool
") NoWires;
Standard_Boolean NoWires ();
%feature("compactdefaultargs") Edge;
%feature("autodoc", " :rtype: BRepClass_Edge
") Edge;
const BRepClass_Edge & Edge ();
%feature("compactdefaultargs") EdgeParameter;
%feature("autodoc", " :rtype: float
") EdgeParameter;
Standard_Real EdgeParameter ();
%feature("compactdefaultargs") Position;
%feature("autodoc", " :rtype: IntRes2d_Position
") Position;
IntRes2d_Position Position ();
};
%extend BRepClass_FClassifier {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor BRepClass_FaceExplorer;
class BRepClass_FaceExplorer {
public:
%feature("compactdefaultargs") BRepClass_FaceExplorer;
%feature("autodoc", " :param F:
:type F: TopoDS_Face &
:rtype: None
") BRepClass_FaceExplorer;
BRepClass_FaceExplorer (const TopoDS_Face & F);
%feature("compactdefaultargs") Reject;
%feature("autodoc", " * Should return True if the point is outside a bounding volume of the face.
:param P:
:type P: gp_Pnt2d
:rtype: bool
") Reject;
Standard_Boolean Reject (const gp_Pnt2d & P);
%feature("compactdefaultargs") Segment;
%feature("autodoc", " * Returns in <L>, <Par> a segment having at least one intersection with the face boundary to compute intersections.
:param P:
:type P: gp_Pnt2d
:param L:
:type L: gp_Lin2d
:param Par:
:type Par: float &
:rtype: bool
") Segment;
Standard_Boolean Segment (const gp_Pnt2d & P,gp_Lin2d & L,Standard_Real &OutValue);
%feature("compactdefaultargs") OtherSegment;
%feature("autodoc", " * Returns in <L>, <Par> a segment having at least one intersection with the face boundary to compute intersections. Each call gives another segment.
:param P:
:type P: gp_Pnt2d
:param L:
:type L: gp_Lin2d
:param Par:
:type Par: float &
:rtype: bool
") OtherSegment;
Standard_Boolean OtherSegment (const gp_Pnt2d & P,gp_Lin2d & L,Standard_Real &OutValue);
%feature("compactdefaultargs") InitWires;
%feature("autodoc", " * Starts an exploration of the wires.
:rtype: None
") InitWires;
void InitWires ();
%feature("compactdefaultargs") MoreWires;
%feature("autodoc", " * Returns True if there is a current wire.
:rtype: bool
") MoreWires;
Standard_Boolean MoreWires ();
%feature("compactdefaultargs") NextWire;
%feature("autodoc", " * Sets the explorer to the next wire.
:rtype: None
") NextWire;
void NextWire ();
%feature("compactdefaultargs") RejectWire;
%feature("autodoc", " * Returns True if the wire bounding volume does not intersect the segment.
:param L:
:type L: gp_Lin2d
:param Par:
:type Par: float
:rtype: bool
") RejectWire;
Standard_Boolean RejectWire (const gp_Lin2d & L,const Standard_Real Par);
%feature("compactdefaultargs") InitEdges;
%feature("autodoc", " * Starts an exploration of the edges of the current wire.
:rtype: None
") InitEdges;
void InitEdges ();
%feature("compactdefaultargs") MoreEdges;
%feature("autodoc", " * Returns True if there is a current edge.
:rtype: bool
") MoreEdges;
Standard_Boolean MoreEdges ();
%feature("compactdefaultargs") NextEdge;
%feature("autodoc", " * Sets the explorer to the next edge.
:rtype: None
") NextEdge;
void NextEdge ();
%feature("compactdefaultargs") RejectEdge;
%feature("autodoc", " * Returns True if the edge bounding volume does not intersect the segment.
:param L:
:type L: gp_Lin2d
:param Par:
:type Par: float
:rtype: bool
") RejectEdge;
Standard_Boolean RejectEdge (const gp_Lin2d & L,const Standard_Real Par);
%feature("compactdefaultargs") CurrentEdge;
%feature("autodoc", " * Current edge in current wire and its orientation.
:param E:
:type E: BRepClass_Edge &
:param Or:
:type Or: TopAbs_Orientation &
:rtype: None
") CurrentEdge;
void CurrentEdge (BRepClass_Edge & E,TopAbs_Orientation & Or);
};
%extend BRepClass_FaceExplorer {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor BRepClass_FacePassiveClassifier;
class BRepClass_FacePassiveClassifier {
public:
%feature("compactdefaultargs") BRepClass_FacePassiveClassifier;
%feature("autodoc", " :rtype: None
") BRepClass_FacePassiveClassifier;
BRepClass_FacePassiveClassifier ();
%feature("compactdefaultargs") Reset;
%feature("autodoc", " :param L:
:type L: gp_Lin2d
:param P:
:type P: float
:param Tol:
:type Tol: float
:rtype: None
") Reset;
void Reset (const gp_Lin2d & L,const Standard_Real P,const Standard_Real Tol);
%feature("compactdefaultargs") Compare;
%feature("autodoc", " :param E:
:type E: BRepClass_Edge &
:param Or:
:type Or: TopAbs_Orientation
:rtype: None
") Compare;
void Compare (const BRepClass_Edge & E,const TopAbs_Orientation Or);
%feature("compactdefaultargs") Parameter;
%feature("autodoc", " :rtype: float
") Parameter;
Standard_Real Parameter ();
%feature("compactdefaultargs") Intersector;
%feature("autodoc", " :rtype: BRepClass_Intersector
") Intersector;
BRepClass_Intersector & Intersector ();
%feature("compactdefaultargs") ClosestIntersection;
%feature("autodoc", " :rtype: int
") ClosestIntersection;
Standard_Integer ClosestIntersection ();
%feature("compactdefaultargs") State;
%feature("autodoc", " :rtype: TopAbs_State
") State;
TopAbs_State State ();
%feature("compactdefaultargs") IsHeadOrEnd;
%feature("autodoc", " :rtype: bool
") IsHeadOrEnd;
Standard_Boolean IsHeadOrEnd ();
};
%extend BRepClass_FacePassiveClassifier {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor BRepClass_Intersector;
class BRepClass_Intersector : public Geom2dInt_IntConicCurveOfGInter {
public:
%feature("compactdefaultargs") BRepClass_Intersector;
%feature("autodoc", " :rtype: None
") BRepClass_Intersector;
BRepClass_Intersector ();
%feature("compactdefaultargs") Perform;
%feature("autodoc", " * Intersect the line segment and the edge.
:param L:
:type L: gp_Lin2d
:param P:
:type P: float
:param Tol:
:type Tol: float
:param E:
:type E: BRepClass_Edge &
:rtype: None
") Perform;
void Perform (const gp_Lin2d & L,const Standard_Real P,const Standard_Real Tol,const BRepClass_Edge & E);
%feature("compactdefaultargs") LocalGeometry;
%feature("autodoc", " * Returns in <T>, <N> and <C> the tangent, normal and curvature of the edge <E> at parameter value <U>.
:param E:
:type E: BRepClass_Edge &
:param U:
:type U: float
:param T:
:type T: gp_Dir2d
:param N:
:type N: gp_Dir2d
:param C:
:type C: float &
:rtype: None
") LocalGeometry;
void LocalGeometry (const BRepClass_Edge & E,const Standard_Real U,gp_Dir2d & T,gp_Dir2d & N,Standard_Real &OutValue);
};
%extend BRepClass_Intersector {
%pythoncode {
__repr__ = _dumps_object
}
};