forked from tpaviot/pythonocc-core
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathBRepAlgoAPI.i
More file actions
834 lines (728 loc) · 30.8 KB
/
BRepAlgoAPI.i
File metadata and controls
834 lines (728 loc) · 30.8 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
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
/*
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 BREPALGOAPIDOCSTRING
"The BRepAlgoAPI package provides a full range of
services to perform Boolean Operations on arguments (shapes
that are defined in the BRep data structures). The
implemented new algorithm is intended to replace the Old
Boolean Operations algorithm in the BRepAlgoAPI package.
The New algorithm is free of a large number of weak spots
and limitations characteristics of the Old algorithm.
It is more powerful and flexible.
It can process arguments the Old algorithm was not adapted for.
The new algorithm is based on a new approach to operations
with interfered shapes. The advantages of the new algorithm
include an ability to treat arguments that have shared
entities. It can properly process two solids with shared
faces (in terms of TopoDS_Shape::IsSame()), two
faces that have shared edges and so on. Now the New Boolean
Operation algorithm can treat a wide range of shapes while the
Old one fails on them.
A generalization of treatment of same-domain faces
was included into the New algorithm. Two faces that share
the same domain are processed according to the common rule
even if the underlying surfaces are of different types. This
allows to execute Boolean Operations properly for the same
domain faces. It also concerns solids and shells that have the
same domain faces. It is quite frequent when two faces share
the same domain. And the New algorithm successfully copes
with it in contrast to the Old one.
Generalization oftreatment of degenerated edges
gives a possibility to process them properly. Although there
are still some difficulties with processing faces in areas close
to degenerated edges.
Now the processing of arguments having internal sub-shapes gives
a correct result. Internal sub-shape means a sub-shape of a
shape with the orientation TopAbs_INTERNAL and is located
inside the shape boundaries. The New algorithm processes faces
with internal edges properly. The new API of the Boolean
Operations (in addition to the old API) allows to reuse the
already computed interference between arguments in different
types of Boolean Operations. It is possible to use once computed
interference in FUSE, CUT and COMMON operations on given
arguments. So there is no need to re-compute the interference
between the arguments. It allows to reduce time for more than one
operation on given arguments.
The shape type of a Boolean Operation result and types of the arguments:
- For arguments with the same shape type (e.g. SOLID /
SOLID) the type of the resulting shape will be a
COMPOUND, containing shapes of this type;
- For arguments with different shape types (e.g.
SHELL / SOLID) the type of the resulting shape will be a
COMPOUND, containing shapes of the type that is the same as
that of the low type of the argument. Example: For
SHELL/SOLID the result is a COMPOUND of SHELLs.
- For arguments with different shape types some of
Boolean Operations can not be done using the default
implementation, because of a non-manifold type of the
result. Example: the FUSE operation for SHELL and SOLID
can not be done, but the CUT operation can be done, where
SHELL is the object and SOLID is the tool.
It is possible to perform Boolean Operations on arguments
of the COMPOUND shape type. In this case each compound must not
be heterogeneous, i.e. it must contain equidimensional shapes
(EDGEs or/and WIREs, FACEs or/and SHELLs, SOLIDs). SOLIDs
inside the COMPOUND must not contact (intersect or touch)
each other. The same condition is true for SHELLs or FACEs,
WIREs or EDGEs.
It does not support Boolean Operations for COMPSOLID type of shape.
"
%enddef
%module (package="OCC.Core", docstring=BREPALGOAPIDOCSTRING) BRepAlgoAPI
#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 BRepAlgoAPI_headers.i
/* typedefs */
/* end typedefs declaration */
/* public enums */
/* end public enums declaration */
%nodefaultctor BRepAlgoAPI_Algo;
%ignore BRepAlgoAPI_Algo::~BRepAlgoAPI_Algo();
class BRepAlgoAPI_Algo : public BRepBuilderAPI_MakeShape {
public:
%feature("compactdefaultargs") ErrorStatus;
%feature("autodoc", " * Returns error status of the algorithm ==0 - no errors occured !=0 - is in the event of various error conditions
:rtype: int
") ErrorStatus;
Standard_Integer ErrorStatus ();
%feature("compactdefaultargs") WarningStatus;
%feature("autodoc", " * Returns warning status of the algorithm ==0 - no warning occured !=0 - is in the event of various warning conditions
:rtype: int
") WarningStatus;
Standard_Integer WarningStatus ();
%feature("compactdefaultargs") Allocator;
%feature("autodoc", " :rtype: BOPCol_BaseAllocator
") Allocator;
const BOPCol_BaseAllocator & Allocator ();
%feature("compactdefaultargs") SetRunParallel;
%feature("autodoc", " * Set the flag of parallel processing if <theFlag> is true the parallel processing is switched on if <theFlag> is false the parallel processing is switched off
:param theFlag:
:type theFlag: bool
:rtype: None
") SetRunParallel;
void SetRunParallel (const Standard_Boolean theFlag);
%feature("compactdefaultargs") RunParallel;
%feature("autodoc", " * Returns the flag of parallel processing
:rtype: bool
") RunParallel;
Standard_Boolean RunParallel ();
%feature("compactdefaultargs") SetProgressIndicator;
%feature("autodoc", " * Set the Progress Indicator object.
:param theObj:
:type theObj: Handle_Message_ProgressIndicator &
:rtype: None
") SetProgressIndicator;
void SetProgressIndicator (const Handle_Message_ProgressIndicator & theObj);
%feature("compactdefaultargs") Shape;
%feature("autodoc", " :rtype: TopoDS_Shape
") Shape;
virtual const TopoDS_Shape Shape ();
};
%extend BRepAlgoAPI_Algo {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor BRepAlgoAPI_BuilderAlgo;
class BRepAlgoAPI_BuilderAlgo : public BRepAlgoAPI_Algo {
public:
%feature("compactdefaultargs") BRepAlgoAPI_BuilderAlgo;
%feature("autodoc", " * Empty constructor
:rtype: None
") BRepAlgoAPI_BuilderAlgo;
BRepAlgoAPI_BuilderAlgo ();
%feature("compactdefaultargs") BRepAlgoAPI_BuilderAlgo;
%feature("autodoc", " * Empty constructor
:param thePF:
:type thePF: BOPAlgo_PaveFiller &
:rtype: None
") BRepAlgoAPI_BuilderAlgo;
BRepAlgoAPI_BuilderAlgo (const BOPAlgo_PaveFiller & thePF);
%feature("compactdefaultargs") SetFuzzyValue;
%feature("autodoc", " * Sets the additional tolerance
:param theFuzz:
:type theFuzz: float
:rtype: None
") SetFuzzyValue;
void SetFuzzyValue (const Standard_Real theFuzz);
%feature("compactdefaultargs") FuzzyValue;
%feature("autodoc", " * Returns the additional tolerance
:rtype: float
") FuzzyValue;
Standard_Real FuzzyValue ();
%feature("compactdefaultargs") SetArguments;
%feature("autodoc", " * Sets the arguments
:param theLS:
:type theLS: TopTools_ListOfShape &
:rtype: None
") SetArguments;
void SetArguments (const TopTools_ListOfShape & theLS);
%feature("compactdefaultargs") Arguments;
%feature("autodoc", " * Gets the arguments
:rtype: TopTools_ListOfShape
") Arguments;
const TopTools_ListOfShape & Arguments ();
%feature("compactdefaultargs") Build;
%feature("autodoc", " * Performs the algorithm //! H I S T O R Y
:rtype: void
") Build;
virtual void Build ();
%feature("compactdefaultargs") Modified;
%feature("autodoc", " * Returns the list of shapes modified from the shape <S>.
:param aS:
:type aS: TopoDS_Shape &
:rtype: TopTools_ListOfShape
") Modified;
virtual const TopTools_ListOfShape & Modified (const TopoDS_Shape & aS);
%feature("compactdefaultargs") IsDeleted;
%feature("autodoc", " * Returns true if the shape S has been deleted. The result shape of the operation does not contain the shape S.
:param aS:
:type aS: TopoDS_Shape &
:rtype: bool
") IsDeleted;
virtual Standard_Boolean IsDeleted (const TopoDS_Shape & aS);
%feature("compactdefaultargs") Generated;
%feature("autodoc", " * Returns the list of shapes generated from the shape <S>. For use in BRepNaming.
:param S:
:type S: TopoDS_Shape &
:rtype: TopTools_ListOfShape
") Generated;
virtual const TopTools_ListOfShape & Generated (const TopoDS_Shape & S);
%feature("compactdefaultargs") HasModified;
%feature("autodoc", " * Returns true if there is at least one modified shape. For use in BRepNaming.
:rtype: bool
") HasModified;
virtual Standard_Boolean HasModified ();
%feature("compactdefaultargs") HasGenerated;
%feature("autodoc", " * Returns true if there is at least one generated shape. For use in BRepNaming.
:rtype: bool
") HasGenerated;
virtual Standard_Boolean HasGenerated ();
%feature("compactdefaultargs") HasDeleted;
%feature("autodoc", " * Returns true if there is at least one deleted shape. For use in BRepNaming. //! protected methods
:rtype: bool
") HasDeleted;
virtual Standard_Boolean HasDeleted ();
};
%extend BRepAlgoAPI_BuilderAlgo {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor BRepAlgoAPI_Check;
class BRepAlgoAPI_Check : public BRepAlgoAPI_Algo {
public:
%feature("compactdefaultargs") BRepAlgoAPI_Check;
%feature("autodoc", " * Empty constructor.
:rtype: None
") BRepAlgoAPI_Check;
BRepAlgoAPI_Check ();
%feature("compactdefaultargs") BRepAlgoAPI_Check;
%feature("autodoc", " * Constructor for checking single shape. It calls methods Init(theS, TopoDS_Shape(), BOPAlgo_UNKNOWN, bTestSE, bTestSI) and Perform(). Params: theS - the shape that should be checked; bTestSE - flag that specifies whether check on small edges should be performed; by default it is set to True; bTestSI - flag that specifies whether check on self-interference should be performed; by default it is set to True;
:param theS:
:type theS: TopoDS_Shape &
:param bTestSE: default value is Standard_True
:type bTestSE: bool
:param bTestSI: default value is Standard_True
:type bTestSI: bool
:rtype: None
") BRepAlgoAPI_Check;
BRepAlgoAPI_Check (const TopoDS_Shape & theS,const Standard_Boolean bTestSE = Standard_True,const Standard_Boolean bTestSI = Standard_True);
%feature("compactdefaultargs") BRepAlgoAPI_Check;
%feature("autodoc", " * Constructor for couple of shapes. It calls methods Init(theS1, theS2, theOp, bTestSE, bTestSI) and Perform(). Params: theS1, theS2 - the initial shapes. theOp - the type of Boolean Operation; if it is not defined (set to UNKNOWN) for each shape performed check as for single shape. bTestSE - flag that specifies whether check on small edges should be performed; by default it is set to True; bTestSI - flag that specifies whether check on self-interference should be performed; by default it is set to True;
:param theS1:
:type theS1: TopoDS_Shape &
:param theS2:
:type theS2: TopoDS_Shape &
:param theOp: default value is BOPAlgo_UNKNOWN
:type theOp: BOPAlgo_Operation
:param bTestSE: default value is Standard_True
:type bTestSE: bool
:param bTestSI: default value is Standard_True
:type bTestSI: bool
:rtype: None
") BRepAlgoAPI_Check;
BRepAlgoAPI_Check (const TopoDS_Shape & theS1,const TopoDS_Shape & theS2,const BOPAlgo_Operation theOp = BOPAlgo_UNKNOWN,const Standard_Boolean bTestSE = Standard_True,const Standard_Boolean bTestSI = Standard_True);
%feature("compactdefaultargs") SetData;
%feature("autodoc", " * Sets data for check by Init method. The method provides alternative way for checking single shape.
:param theS:
:type theS: TopoDS_Shape &
:param bTestSE: default value is Standard_True
:type bTestSE: bool
:param bTestSI: default value is Standard_True
:type bTestSI: bool
:rtype: None
") SetData;
void SetData (const TopoDS_Shape & theS,const Standard_Boolean bTestSE = Standard_True,const Standard_Boolean bTestSI = Standard_True);
%feature("compactdefaultargs") SetData;
%feature("autodoc", " * Sets data for check by Init method. The method provides alternative way for checking couple of shapes.
:param theS1:
:type theS1: TopoDS_Shape &
:param theS2:
:type theS2: TopoDS_Shape &
:param theOp: default value is BOPAlgo_UNKNOWN
:type theOp: BOPAlgo_Operation
:param bTestSE: default value is Standard_True
:type bTestSE: bool
:param bTestSI: default value is Standard_True
:type bTestSI: bool
:rtype: None
") SetData;
void SetData (const TopoDS_Shape & theS1,const TopoDS_Shape & theS2,const BOPAlgo_Operation theOp = BOPAlgo_UNKNOWN,const Standard_Boolean bTestSE = Standard_True,const Standard_Boolean bTestSI = Standard_True);
%feature("compactdefaultargs") Perform;
%feature("autodoc", " * Performs the check.
:rtype: None
") Perform;
void Perform ();
%feature("compactdefaultargs") IsValid;
%feature("autodoc", " * Shows whether shape(s) valid or not.
:rtype: bool
") IsValid;
Standard_Boolean IsValid ();
%feature("compactdefaultargs") Result;
%feature("autodoc", " * Returns faulty shapes.
:rtype: BOPAlgo_ListOfCheckResult
") Result;
const BOPAlgo_ListOfCheckResult & Result ();
%feature("compactdefaultargs") SetFuzzyValue;
%feature("autodoc", " * Sets the additional tolerance
:param theFuzz:
:type theFuzz: float
:rtype: None
") SetFuzzyValue;
void SetFuzzyValue (const Standard_Real theFuzz);
%feature("compactdefaultargs") FuzzyValue;
%feature("autodoc", " * Returns the additional tolerance
:rtype: float
") FuzzyValue;
Standard_Real FuzzyValue ();
};
%extend BRepAlgoAPI_Check {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor BRepAlgoAPI_BooleanOperation;
class BRepAlgoAPI_BooleanOperation : public BRepAlgoAPI_BuilderAlgo {
public:
%feature("compactdefaultargs") Shape1;
%feature("autodoc", " * Returns the first argument involved in this Boolean operation. Obsolete
:rtype: TopoDS_Shape
") Shape1;
const TopoDS_Shape Shape1 ();
%feature("compactdefaultargs") Shape2;
%feature("autodoc", " * Returns the second argument involved in this Boolean operation. Obsolete
:rtype: TopoDS_Shape
") Shape2;
const TopoDS_Shape Shape2 ();
%feature("compactdefaultargs") SetTools;
%feature("autodoc", " * Sets the tools
:param theLS:
:type theLS: TopTools_ListOfShape &
:rtype: None
") SetTools;
void SetTools (const TopTools_ListOfShape & theLS);
%feature("compactdefaultargs") Tools;
%feature("autodoc", " * Gets the tools
:rtype: TopTools_ListOfShape
") Tools;
const TopTools_ListOfShape & Tools ();
%feature("compactdefaultargs") SetOperation;
%feature("autodoc", " * Sets the type of Boolean operation
:param anOp:
:type anOp: BOPAlgo_Operation
:rtype: None
") SetOperation;
void SetOperation (const BOPAlgo_Operation anOp);
%feature("compactdefaultargs") Operation;
%feature("autodoc", " * Returns the type of Boolean Operation
:rtype: BOPAlgo_Operation
") Operation;
BOPAlgo_Operation Operation ();
%feature("compactdefaultargs") Build;
%feature("autodoc", " * Performs the algorithm Filling interference Data Structure (if it is necessary) Building the result of the operation.
:rtype: void
") Build;
virtual void Build ();
%feature("compactdefaultargs") BuilderCanWork;
%feature("autodoc", " * Returns True if there was no errors occured obsolete
:rtype: bool
") BuilderCanWork;
Standard_Boolean BuilderCanWork ();
%feature("compactdefaultargs") FuseEdges;
%feature("autodoc", " * Returns the flag of edge refining
:rtype: bool
") FuseEdges;
Standard_Boolean FuseEdges ();
%feature("compactdefaultargs") RefineEdges;
%feature("autodoc", " * Fuse C1 edges
:rtype: None
") RefineEdges;
void RefineEdges ();
%feature("compactdefaultargs") SectionEdges;
%feature("autodoc", " * Returns a list of section edges. The edges represent the result of intersection between arguments of Boolean Operation. They are computed during operation execution.
:rtype: TopTools_ListOfShape
") SectionEdges;
const TopTools_ListOfShape & SectionEdges ();
%feature("compactdefaultargs") Modified;
%feature("autodoc", " * Returns the list of shapes modified from the shape <S>.
:param aS:
:type aS: TopoDS_Shape &
:rtype: TopTools_ListOfShape
") Modified;
virtual const TopTools_ListOfShape & Modified (const TopoDS_Shape & aS);
%feature("compactdefaultargs") IsDeleted;
%feature("autodoc", " * Returns true if the shape S has been deleted. The result shape of the operation does not contain the shape S.
:param aS:
:type aS: TopoDS_Shape &
:rtype: bool
") IsDeleted;
virtual Standard_Boolean IsDeleted (const TopoDS_Shape & aS);
%feature("compactdefaultargs") Generated;
%feature("autodoc", " * Returns the list of shapes generated from the shape <S>. For use in BRepNaming.
:param S:
:type S: TopoDS_Shape &
:rtype: TopTools_ListOfShape
") Generated;
virtual const TopTools_ListOfShape & Generated (const TopoDS_Shape & S);
%feature("compactdefaultargs") HasModified;
%feature("autodoc", " * Returns true if there is at least one modified shape. For use in BRepNaming.
:rtype: bool
") HasModified;
virtual Standard_Boolean HasModified ();
%feature("compactdefaultargs") HasGenerated;
%feature("autodoc", " * Returns true if there is at least one generated shape. For use in BRepNaming.
:rtype: bool
") HasGenerated;
virtual Standard_Boolean HasGenerated ();
%feature("compactdefaultargs") HasDeleted;
%feature("autodoc", " * Returns true if there is at least one deleted shape. For use in BRepNaming.
:rtype: bool
") HasDeleted;
virtual Standard_Boolean HasDeleted ();
};
%extend BRepAlgoAPI_BooleanOperation {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor BRepAlgoAPI_Common;
class BRepAlgoAPI_Common : public BRepAlgoAPI_BooleanOperation {
public:
%feature("compactdefaultargs") BRepAlgoAPI_Common;
%feature("autodoc", " * Empty constructor
:rtype: None
") BRepAlgoAPI_Common;
BRepAlgoAPI_Common ();
%feature("compactdefaultargs") BRepAlgoAPI_Common;
%feature("autodoc", " * Empty constructor <PF> - PaveFiller object that is carried out
:param PF:
:type PF: BOPAlgo_PaveFiller &
:rtype: None
") BRepAlgoAPI_Common;
BRepAlgoAPI_Common (const BOPAlgo_PaveFiller & PF);
%feature("compactdefaultargs") BRepAlgoAPI_Common;
%feature("autodoc", " * Constructor with two shapes <S1> -argument <S2> -tool <anOperation> - the type of the operation Obsolete
:param S1:
:type S1: TopoDS_Shape &
:param S2:
:type S2: TopoDS_Shape &
:rtype: None
") BRepAlgoAPI_Common;
BRepAlgoAPI_Common (const TopoDS_Shape & S1,const TopoDS_Shape & S2);
%feature("compactdefaultargs") BRepAlgoAPI_Common;
%feature("autodoc", " * Constructor with two shapes <S1> -argument <S2> -tool <anOperation> - the type of the operation <PF> - PaveFiller object that is carried out Obsolete
:param S1:
:type S1: TopoDS_Shape &
:param S2:
:type S2: TopoDS_Shape &
:param PF:
:type PF: BOPAlgo_PaveFiller &
:rtype: None
") BRepAlgoAPI_Common;
BRepAlgoAPI_Common (const TopoDS_Shape & S1,const TopoDS_Shape & S2,const BOPAlgo_PaveFiller & PF);
};
%extend BRepAlgoAPI_Common {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor BRepAlgoAPI_Cut;
class BRepAlgoAPI_Cut : public BRepAlgoAPI_BooleanOperation {
public:
%feature("compactdefaultargs") BRepAlgoAPI_Cut;
%feature("autodoc", " * Empty constructor
:rtype: None
") BRepAlgoAPI_Cut;
BRepAlgoAPI_Cut ();
%feature("compactdefaultargs") BRepAlgoAPI_Cut;
%feature("autodoc", " * Empty constructor <PF> - PaveFiller object that is carried out
:param PF:
:type PF: BOPAlgo_PaveFiller &
:rtype: None
") BRepAlgoAPI_Cut;
BRepAlgoAPI_Cut (const BOPAlgo_PaveFiller & PF);
%feature("compactdefaultargs") BRepAlgoAPI_Cut;
%feature("autodoc", " * Constructor with two shapes <S1> -argument <S2> -tool <anOperation> - the type of the operation Obsolete
:param S1:
:type S1: TopoDS_Shape &
:param S2:
:type S2: TopoDS_Shape &
:rtype: None
") BRepAlgoAPI_Cut;
BRepAlgoAPI_Cut (const TopoDS_Shape & S1,const TopoDS_Shape & S2);
%feature("compactdefaultargs") BRepAlgoAPI_Cut;
%feature("autodoc", " * Constructor with two shapes <S1> -argument <S2> -tool <anOperation> - the type of the operation <PF> - PaveFiller object that is carried out Obsolete
:param S1:
:type S1: TopoDS_Shape &
:param S2:
:type S2: TopoDS_Shape &
:param aDSF:
:type aDSF: BOPAlgo_PaveFiller &
:param bFWD: default value is Standard_True
:type bFWD: bool
:rtype: None
") BRepAlgoAPI_Cut;
BRepAlgoAPI_Cut (const TopoDS_Shape & S1,const TopoDS_Shape & S2,const BOPAlgo_PaveFiller & aDSF,const Standard_Boolean bFWD = Standard_True);
};
%extend BRepAlgoAPI_Cut {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor BRepAlgoAPI_Fuse;
class BRepAlgoAPI_Fuse : public BRepAlgoAPI_BooleanOperation {
public:
%feature("compactdefaultargs") BRepAlgoAPI_Fuse;
%feature("autodoc", " * Empty constructor
:rtype: None
") BRepAlgoAPI_Fuse;
BRepAlgoAPI_Fuse ();
%feature("compactdefaultargs") BRepAlgoAPI_Fuse;
%feature("autodoc", " * Empty constructor <PF> - PaveFiller object that is carried out
:param PF:
:type PF: BOPAlgo_PaveFiller &
:rtype: None
") BRepAlgoAPI_Fuse;
BRepAlgoAPI_Fuse (const BOPAlgo_PaveFiller & PF);
%feature("compactdefaultargs") BRepAlgoAPI_Fuse;
%feature("autodoc", " * Constructor with two shapes <S1> -argument <S2> -tool <anOperation> - the type of the operation Obsolete
:param S1:
:type S1: TopoDS_Shape &
:param S2:
:type S2: TopoDS_Shape &
:rtype: None
") BRepAlgoAPI_Fuse;
BRepAlgoAPI_Fuse (const TopoDS_Shape & S1,const TopoDS_Shape & S2);
%feature("compactdefaultargs") BRepAlgoAPI_Fuse;
%feature("autodoc", " * Constructor with two shapes <S1> -argument <S2> -tool <anOperation> - the type of the operation <PF> - PaveFiller object that is carried out Obsolete
:param S1:
:type S1: TopoDS_Shape &
:param S2:
:type S2: TopoDS_Shape &
:param aDSF:
:type aDSF: BOPAlgo_PaveFiller &
:rtype: None
") BRepAlgoAPI_Fuse;
BRepAlgoAPI_Fuse (const TopoDS_Shape & S1,const TopoDS_Shape & S2,const BOPAlgo_PaveFiller & aDSF);
};
%extend BRepAlgoAPI_Fuse {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor BRepAlgoAPI_Section;
class BRepAlgoAPI_Section : public BRepAlgoAPI_BooleanOperation {
public:
%feature("compactdefaultargs") BRepAlgoAPI_Section;
%feature("autodoc", " * Empty constructor
:rtype: None
") BRepAlgoAPI_Section;
BRepAlgoAPI_Section ();
%feature("compactdefaultargs") BRepAlgoAPI_Section;
%feature("autodoc", " * Empty constructor <PF> - PaveFiller object that is carried out
:param PF:
:type PF: BOPAlgo_PaveFiller &
:rtype: None
") BRepAlgoAPI_Section;
BRepAlgoAPI_Section (const BOPAlgo_PaveFiller & PF);
%feature("compactdefaultargs") BRepAlgoAPI_Section;
%feature("autodoc", " * Constructor with two shapes <S1> -argument <S2> -tool <PerformNow> - the flag: if <PerformNow>=True - the algorithm is performed immediatly Obsolete
:param S1:
:type S1: TopoDS_Shape &
:param S2:
:type S2: TopoDS_Shape &
:param PerformNow: default value is Standard_True
:type PerformNow: bool
:rtype: None
") BRepAlgoAPI_Section;
BRepAlgoAPI_Section (const TopoDS_Shape & S1,const TopoDS_Shape & S2,const Standard_Boolean PerformNow = Standard_True);
%feature("compactdefaultargs") BRepAlgoAPI_Section;
%feature("autodoc", " * Constructor with two shapes <S1> -argument <S2> -tool <PF> - PaveFiller object that is carried out <PerformNow> - the flag: if <PerformNow>=True - the algorithm is performed immediatly Obsolete
:param S1:
:type S1: TopoDS_Shape &
:param S2:
:type S2: TopoDS_Shape &
:param aDSF:
:type aDSF: BOPAlgo_PaveFiller &
:param PerformNow: default value is Standard_True
:type PerformNow: bool
:rtype: None
") BRepAlgoAPI_Section;
BRepAlgoAPI_Section (const TopoDS_Shape & S1,const TopoDS_Shape & S2,const BOPAlgo_PaveFiller & aDSF,const Standard_Boolean PerformNow = Standard_True);
%feature("compactdefaultargs") BRepAlgoAPI_Section;
%feature("autodoc", " * Constructor with two shapes <S1> - argument <Pl> - tool <PerformNow> - the flag: if <PerformNow>=True - the algorithm is performed immediatly Obsolete
:param S1:
:type S1: TopoDS_Shape &
:param Pl:
:type Pl: gp_Pln
:param PerformNow: default value is Standard_True
:type PerformNow: bool
:rtype: None
") BRepAlgoAPI_Section;
BRepAlgoAPI_Section (const TopoDS_Shape & S1,const gp_Pln & Pl,const Standard_Boolean PerformNow = Standard_True);
%feature("compactdefaultargs") BRepAlgoAPI_Section;
%feature("autodoc", " * Constructor with two shapes <S1> - argument <Sf> - tool <PerformNow> - the flag: if <PerformNow>=True - the algorithm is performed immediatly Obsolete
:param S1:
:type S1: TopoDS_Shape &
:param Sf:
:type Sf: Handle_Geom_Surface &
:param PerformNow: default value is Standard_True
:type PerformNow: bool
:rtype: None
") BRepAlgoAPI_Section;
BRepAlgoAPI_Section (const TopoDS_Shape & S1,const Handle_Geom_Surface & Sf,const Standard_Boolean PerformNow = Standard_True);
%feature("compactdefaultargs") BRepAlgoAPI_Section;
%feature("autodoc", " * Constructor with two shapes <Sf> - argument <S2> - tool <PerformNow> - the flag: if <PerformNow>=True - the algorithm is performed immediatly Obsolete
:param Sf:
:type Sf: Handle_Geom_Surface &
:param S2:
:type S2: TopoDS_Shape &
:param PerformNow: default value is Standard_True
:type PerformNow: bool
:rtype: None
") BRepAlgoAPI_Section;
BRepAlgoAPI_Section (const Handle_Geom_Surface & Sf,const TopoDS_Shape & S2,const Standard_Boolean PerformNow = Standard_True);
%feature("compactdefaultargs") BRepAlgoAPI_Section;
%feature("autodoc", " * Constructor with two shapes <Sf1> - argument <Sf2> - tool <PerformNow> - the flag: if <PerformNow>=True - the algorithm is performed immediatly Obsolete
:param Sf1:
:type Sf1: Handle_Geom_Surface &
:param Sf2:
:type Sf2: Handle_Geom_Surface &
:param PerformNow: default value is Standard_True
:type PerformNow: bool
:rtype: None
") BRepAlgoAPI_Section;
BRepAlgoAPI_Section (const Handle_Geom_Surface & Sf1,const Handle_Geom_Surface & Sf2,const Standard_Boolean PerformNow = Standard_True);
%feature("compactdefaultargs") Init1;
%feature("autodoc", " * initialize the argument <S1> - argument Obsolete
:param S1:
:type S1: TopoDS_Shape &
:rtype: None
") Init1;
void Init1 (const TopoDS_Shape & S1);
%feature("compactdefaultargs") Init1;
%feature("autodoc", " * initialize the argument <Pl> - argument Obsolete
:param Pl:
:type Pl: gp_Pln
:rtype: None
") Init1;
void Init1 (const gp_Pln & Pl);
%feature("compactdefaultargs") Init1;
%feature("autodoc", " * initialize the argument <Sf> - argument Obsolete
:param Sf:
:type Sf: Handle_Geom_Surface &
:rtype: None
") Init1;
void Init1 (const Handle_Geom_Surface & Sf);
%feature("compactdefaultargs") Init2;
%feature("autodoc", " * initialize the tool <S2> - tool Obsolete
:param S2:
:type S2: TopoDS_Shape &
:rtype: None
") Init2;
void Init2 (const TopoDS_Shape & S2);
%feature("compactdefaultargs") Init2;
%feature("autodoc", " * initialize the tool <Pl> - tool Obsolete
:param Pl:
:type Pl: gp_Pln
:rtype: None
") Init2;
void Init2 (const gp_Pln & Pl);
%feature("compactdefaultargs") Init2;
%feature("autodoc", " * initialize the tool <Sf> - tool Obsolete
:param Sf:
:type Sf: Handle_Geom_Surface &
:rtype: None
") Init2;
void Init2 (const Handle_Geom_Surface & Sf);
%feature("compactdefaultargs") Approximation;
%feature("autodoc", " :param B:
:type B: bool
:rtype: None
") Approximation;
void Approximation (const Standard_Boolean B);
%feature("compactdefaultargs") ComputePCurveOn1;
%feature("autodoc", " * Indicates whether the P-Curve should be (or not) performed on the argument. By default, no parametric 2D curve (pcurve) is defined for the edges of the result. If ComputePCurve1 equals true, further computations performed to attach an P-Curve in the parametric space of the argument to the constructed edges. Obsolete
:param B:
:type B: bool
:rtype: None
") ComputePCurveOn1;
void ComputePCurveOn1 (const Standard_Boolean B);
%feature("compactdefaultargs") ComputePCurveOn2;
%feature("autodoc", " * Indicates whether the P-Curve should be (or not) performed on the tool. By default, no parametric 2D curve (pcurve) is defined for the edges of the result. If ComputePCurve1 equals true, further computations performed to attach an P-Curve in the parametric space of the tool to the constructed edges. Obsolete
:param B:
:type B: bool
:rtype: None
") ComputePCurveOn2;
void ComputePCurveOn2 (const Standard_Boolean B);
%feature("compactdefaultargs") Build;
%feature("autodoc", " * Performs the algorithm Filling interference Data Structure (if it is necessary) Building the result of the operation.
:rtype: void
") Build;
virtual void Build ();
%feature("compactdefaultargs") HasAncestorFaceOn1;
%feature("autodoc", " * get the face of the first part giving section edge <E>. Returns True on the 3 following conditions : 1/ <E> is an edge returned by the Shape() metwod. 2/ First part of section performed is a shape. 3/ <E> is built on a intersection curve (i.e <E> is not the result of common edges) When False, F remains untouched. Obsolete
:param E:
:type E: TopoDS_Shape &
:param F:
:type F: TopoDS_Shape &
:rtype: bool
") HasAncestorFaceOn1;
Standard_Boolean HasAncestorFaceOn1 (const TopoDS_Shape & E,TopoDS_Shape & F);
%feature("compactdefaultargs") HasAncestorFaceOn2;
%feature("autodoc", " * Identifies the ancestor faces of the intersection edge E resulting from the last computation performed in this framework, that is, the faces of the two original shapes on which the edge E lies: - HasAncestorFaceOn1 gives the ancestor face in the first shape, and - HasAncestorFaceOn2 gives the ancestor face in the second shape. These functions return true if an ancestor face F is found, or false if not. An ancestor face is identifiable for the edge E if the following conditions are satisfied: - the first part on which this algorithm performed its last computation is a shape, that is, it was not given as a surface or a plane at the time of construction of this algorithm or at a later time by the Init1 function, - E is one of the elementary edges built by the last computation of this section algorithm. To use these functions properly, you have to test the returned Boolean value before using the ancestor face: F is significant only if the returned Boolean value equals true. Obsolete
:param E:
:type E: TopoDS_Shape &
:param F:
:type F: TopoDS_Shape &
:rtype: bool
") HasAncestorFaceOn2;
Standard_Boolean HasAncestorFaceOn2 (const TopoDS_Shape & E,TopoDS_Shape & F);
};
%extend BRepAlgoAPI_Section {
%pythoncode {
__repr__ = _dumps_object
}
};