forked from tpaviot/pythonocc-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBRepAlgoAPI.i
More file actions
1622 lines (1326 loc) · 50 KB
/
BRepAlgoAPI.i
File metadata and controls
1622 lines (1326 loc) · 50 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
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Copyright 2008-2022 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
"BRepAlgoAPI module, see official documentation at
https://www.opencascade.com/doc/occt-7.6.0/refman/html/package_brepalgoapi.html"
%enddef
%module (package="OCC.Core", docstring=BREPALGOAPIDOCSTRING) BRepAlgoAPI
%{
#ifdef WNT
#pragma warning(disable : 4716)
#endif
%}
%include ../common/CommonIncludes.i
%include ../common/ExceptionCatcher.i
%include ../common/FunctionTransformers.i
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
%{
#include<BRepAlgoAPI_module.hxx>
//Dependencies
#include<Standard_module.hxx>
#include<NCollection_module.hxx>
#include<BOPAlgo_module.hxx>
#include<TopoDS_module.hxx>
#include<Message_module.hxx>
#include<BRepBuilderAPI_module.hxx>
#include<TopTools_module.hxx>
#include<BRepTools_module.hxx>
#include<gp_module.hxx>
#include<Geom_module.hxx>
#include<TopLoc_module.hxx>
#include<BRepAdaptor_module.hxx>
#include<IntTools_module.hxx>
#include<GeomAdaptor_module.hxx>
#include<Geom2d_module.hxx>
#include<Geom2dAdaptor_module.hxx>
#include<Extrema_module.hxx>
#include<Adaptor2d_module.hxx>
#include<IntSurf_module.hxx>
#include<BOPDS_module.hxx>
#include<IntPatch_module.hxx>
#include<Approx_module.hxx>
#include<Adaptor3d_module.hxx>
#include<Message_module.hxx>
#include<AppParCurves_module.hxx>
#include<Bnd_module.hxx>
#include<BRep_module.hxx>
#include<TShort_module.hxx>
#include<Poly_module.hxx>
#include<IntCurvesFace_module.hxx>
#include<TColgp_module.hxx>
#include<TColStd_module.hxx>
#include<TCollection_module.hxx>
#include<Storage_module.hxx>
%};
%import Standard.i
%import NCollection.i
%import BOPAlgo.i
%import TopoDS.i
%import Message.i
%import BRepBuilderAPI.i
%import TopTools.i
%import BRepTools.i
%import gp.i
%import Geom.i
%pythoncode {
from enum import IntEnum
from OCC.Core.Exception import *
};
%include "BRepAlgoAPI_Algo.hxx";
/* public enums */
/* end public enums declaration */
/* python proxy classes for enums */
%pythoncode {
};
/* end python proxy for enums */
/* handles */
/* end handles declaration */
/* templates */
/* end templates declaration */
/* typedefs */
/* end typedefs declaration */
/**************************
* class BRepAlgoAPI_Check *
**************************/
class BRepAlgoAPI_Check : public BOPAlgo_Options {
public:
/****************** BRepAlgoAPI_Check ******************/
/**** md5 signature: 411402657614d45c8444ed8f583c4d89 ****/
%feature("compactdefaultargs") BRepAlgoAPI_Check;
%feature("autodoc", "Empty constructor.
Returns
-------
None
") BRepAlgoAPI_Check;
BRepAlgoAPI_Check();
/****************** BRepAlgoAPI_Check ******************/
/**** md5 signature: 4c7f74c0b1475c6354942a65d5c7e394 ****/
%feature("compactdefaultargs") BRepAlgoAPI_Check;
%feature("autodoc", "Constructor for checking single shape. //! @param thes [in] - the shape to check; @param btestse [in] - flag which specifies whether to check the shape on small edges or not; by default it is set to true; @param btestsi [in] - flag which specifies whether to check the shape on self-interference or not; by default it is set to true; @param therange [in] - parameter to use progress indicator.
Parameters
----------
theS: TopoDS_Shape
bTestSE: bool,optional
default value is Standard_True
bTestSI: bool,optional
default value is Standard_True
theRange: Message_ProgressRange,optional
default value is Message_ProgressRange()
Returns
-------
None
") BRepAlgoAPI_Check;
BRepAlgoAPI_Check(const TopoDS_Shape & theS, const Standard_Boolean bTestSE = Standard_True, const Standard_Boolean bTestSI = Standard_True, const Message_ProgressRange & theRange = Message_ProgressRange());
/****************** BRepAlgoAPI_Check ******************/
/**** md5 signature: 6d8665f00fc74c35f58fdcae0bcdc4ea ****/
%feature("compactdefaultargs") BRepAlgoAPI_Check;
%feature("autodoc", "Constructor for checking the couple of shapes. additionally to the validity checks of each given shape, the types of the given shapes will be checked on validity for boolean operation of given type. //! @param thes1 [in] - the first shape to check; @param thes2 [in] - the second shape to check; @param theop [in] - the type of boolean operation for which the validity of given shapes should be checked. @param btestse [in] - flag which specifies whether to check the shape on small edges or not; by default it is set to true; @param btestsi [in] - flag which specifies whether to check the shape on self-interference or not; by default it is set to true; @param therange [in] - parameter to use progress indicator.
Parameters
----------
theS1: TopoDS_Shape
theS2: TopoDS_Shape
theOp: BOPAlgo_Operation,optional
default value is BOPAlgo_UNKNOWN
bTestSE: bool,optional
default value is Standard_True
bTestSI: bool,optional
default value is Standard_True
theRange: Message_ProgressRange,optional
default value is Message_ProgressRange()
Returns
-------
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, const Message_ProgressRange & theRange = Message_ProgressRange());
/****************** IsValid ******************/
/**** md5 signature: c1993b3b31d320b598a9a9b27c56914e ****/
%feature("compactdefaultargs") IsValid;
%feature("autodoc", "Shows whether shape(s) valid or not.
Returns
-------
bool
") IsValid;
Standard_Boolean IsValid();
/****************** Perform ******************/
/**** md5 signature: 237808a6b51056c9f8e292d343f26d7d ****/
%feature("compactdefaultargs") Perform;
%feature("autodoc", "Performs the check.
Parameters
----------
theRange: Message_ProgressRange,optional
default value is Message_ProgressRange()
Returns
-------
None
") Perform;
void Perform(const Message_ProgressRange & theRange = Message_ProgressRange());
/****************** Result ******************/
/**** md5 signature: 7cf3309b46dab6da497e78cfc1a9af75 ****/
%feature("compactdefaultargs") Result;
%feature("autodoc", "Returns faulty shapes.
Returns
-------
BOPAlgo_ListOfCheckResult
") Result;
const BOPAlgo_ListOfCheckResult & Result();
/****************** SetData ******************/
/**** md5 signature: c1fd665a073df98354476ae857f43c48 ****/
%feature("compactdefaultargs") SetData;
%feature("autodoc", "Initializes the algorithm with single shape. //! @param thes [in] - the shape to check; @param btestse [in] - flag which specifies whether to check the shape on small edges or not; by default it is set to true; @param btestsi [in] - flag which specifies whether to check the shape on self-interference or not; by default it is set to true;.
Parameters
----------
theS: TopoDS_Shape
bTestSE: bool,optional
default value is Standard_True
bTestSI: bool,optional
default value is Standard_True
Returns
-------
None
") SetData;
void SetData(const TopoDS_Shape & theS, const Standard_Boolean bTestSE = Standard_True, const Standard_Boolean bTestSI = Standard_True);
/****************** SetData ******************/
/**** md5 signature: 80850e26186481dcc7772de06de5db11 ****/
%feature("compactdefaultargs") SetData;
%feature("autodoc", "Initializes the algorithm with couple of shapes. additionally to the validity checks of each given shape, the types of the given shapes will be checked on validity for boolean operation of given type. //! @param thes1 [in] - the first shape to check; @param thes2 [in] - the second shape to check; @param theop [in] - the type of boolean operation for which the validity of given shapes should be checked. @param btestse [in] - flag which specifies whether to check the shape on small edges or not; by default it is set to true; @param btestsi [in] - flag which specifies whether to check the shape on self-interference or not; by default it is set to true;.
Parameters
----------
theS1: TopoDS_Shape
theS2: TopoDS_Shape
theOp: BOPAlgo_Operation,optional
default value is BOPAlgo_UNKNOWN
bTestSE: bool,optional
default value is Standard_True
bTestSI: bool,optional
default value is Standard_True
Returns
-------
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);
};
%extend BRepAlgoAPI_Check {
%pythoncode {
__repr__ = _dumps_object
}
};
/*************************
* class BRepAlgoAPI_Algo *
*************************/
%nodefaultctor BRepAlgoAPI_Algo;
%ignore BRepAlgoAPI_Algo::~BRepAlgoAPI_Algo();
class BRepAlgoAPI_Algo : public BRepBuilderAPI_MakeShape, protected BOPAlgo_Options {
public:
/****************** Shape ******************/
/**** md5 signature: b8642bc5a50083ee24c608b46f5bf1c8 ****/
%feature("compactdefaultargs") Shape;
%feature("autodoc", "No available documentation.
Returns
-------
TopoDS_Shape
") Shape;
virtual const TopoDS_Shape Shape();
};
%extend BRepAlgoAPI_Algo {
%pythoncode {
__repr__ = _dumps_object
}
};
/********************************
* class BRepAlgoAPI_BuilderAlgo *
********************************/
class BRepAlgoAPI_BuilderAlgo : public BRepAlgoAPI_Algo {
public:
/****************** BRepAlgoAPI_BuilderAlgo ******************/
/**** md5 signature: f034b0ea83263b0b12a5034e2ab03c28 ****/
%feature("compactdefaultargs") BRepAlgoAPI_BuilderAlgo;
%feature("autodoc", "Empty constructor.
Returns
-------
None
") BRepAlgoAPI_BuilderAlgo;
BRepAlgoAPI_BuilderAlgo();
/****************** BRepAlgoAPI_BuilderAlgo ******************/
/**** md5 signature: 87f0646930c224a38e316c8395128e53 ****/
%feature("compactdefaultargs") BRepAlgoAPI_BuilderAlgo;
%feature("autodoc", "Constructor with prepared filler object.
Parameters
----------
thePF: BOPAlgo_PaveFiller
Returns
-------
None
") BRepAlgoAPI_BuilderAlgo;
BRepAlgoAPI_BuilderAlgo(const BOPAlgo_PaveFiller & thePF);
/****************** Arguments ******************/
/**** md5 signature: 5c44416d889811943ccde89673d3c270 ****/
%feature("compactdefaultargs") Arguments;
%feature("autodoc", "Gets the arguments.
Returns
-------
TopTools_ListOfShape
") Arguments;
const TopTools_ListOfShape & Arguments();
/****************** Build ******************/
/**** md5 signature: 58900897d55d51e349b2e40a091ec26f ****/
%feature("compactdefaultargs") Build;
%feature("autodoc", "Performs the algorithm.
Parameters
----------
theRange: Message_ProgressRange,optional
default value is Message_ProgressRange()
Returns
-------
None
") Build;
virtual void Build(const Message_ProgressRange & theRange = Message_ProgressRange());
/****************** Builder ******************/
/**** md5 signature: 8b185d6cf1a66c51174428861a33b6c7 ****/
%feature("compactdefaultargs") Builder;
%feature("autodoc", "Returns the building tool.
Returns
-------
BOPAlgo_PBuilder
") Builder;
const BOPAlgo_PBuilder & Builder();
/****************** CheckInverted ******************/
/**** md5 signature: ce3c18df15bc3282101b99ee82f78b47 ****/
%feature("compactdefaultargs") CheckInverted;
%feature("autodoc", "Returns the flag defining whether the check for input solids on inverted status should be performed or not.
Returns
-------
bool
") CheckInverted;
Standard_Boolean CheckInverted();
/****************** DSFiller ******************/
/**** md5 signature: eacda80fa3f8437b06bd46026236195a ****/
%feature("compactdefaultargs") DSFiller;
%feature("autodoc", "Returns the intersection tool.
Returns
-------
BOPAlgo_PPaveFiller
") DSFiller;
const BOPAlgo_PPaveFiller & DSFiller();
/****************** Generated ******************/
/**** md5 signature: 6765eaeea6b04c9e5e12d95bf0d36ae9 ****/
%feature("compactdefaultargs") Generated;
%feature("autodoc", "Returns the list of shapes generated from the shape <thes>. in frames of boolean operations algorithms only edges and faces could have generated elements, as only they produce new elements during intersection: - edges can generate new vertices; - faces can generate new edges and vertices.
Parameters
----------
theS: TopoDS_Shape
Returns
-------
TopTools_ListOfShape
") Generated;
virtual const TopTools_ListOfShape & Generated(const TopoDS_Shape & theS);
/****************** Glue ******************/
/**** md5 signature: 2a0ac34b43f154dd0238ac1408d9079b ****/
%feature("compactdefaultargs") Glue;
%feature("autodoc", "Returns the glue option of the algorithm.
Returns
-------
BOPAlgo_GlueEnum
") Glue;
BOPAlgo_GlueEnum Glue();
/****************** HasDeleted ******************/
/**** md5 signature: 62e1a47bba6730979f45045197c457ad ****/
%feature("compactdefaultargs") HasDeleted;
%feature("autodoc", "Returns true if any of the input shapes has been deleted during operation. normally, general fuse operation should not have deleted elements, but all derived operation can have.
Returns
-------
bool
") HasDeleted;
virtual Standard_Boolean HasDeleted();
/****************** HasGenerated ******************/
/**** md5 signature: 41e62931be9792b7588a37969bdd21d8 ****/
%feature("compactdefaultargs") HasGenerated;
%feature("autodoc", "Returns true if any of the input shapes has generated shapes during operation.
Returns
-------
bool
") HasGenerated;
virtual Standard_Boolean HasGenerated();
/****************** HasHistory ******************/
/**** md5 signature: 707ba290c9cd0157e12b7038a0944657 ****/
%feature("compactdefaultargs") HasHistory;
%feature("autodoc", "Returns flag of history availability.
Returns
-------
bool
") HasHistory;
Standard_Boolean HasHistory();
/****************** HasModified ******************/
/**** md5 signature: 33dead3a6879f4d3e05d3f85aabe6d13 ****/
%feature("compactdefaultargs") HasModified;
%feature("autodoc", "Returns true if any of the input shapes has been modified during operation.
Returns
-------
bool
") HasModified;
virtual Standard_Boolean HasModified();
/****************** History ******************/
/**** md5 signature: a47770f1ee9d6f229a149d416a698dc5 ****/
%feature("compactdefaultargs") History;
%feature("autodoc", "History tool.
Returns
-------
opencascade::handle<BRepTools_History>
") History;
opencascade::handle<BRepTools_History> History();
/****************** IsDeleted ******************/
/**** md5 signature: 431a14f43afb5fe71090f69dcb3e4037 ****/
%feature("compactdefaultargs") IsDeleted;
%feature("autodoc", "Checks if the shape <thes> has been completely removed from the result, i.e. the result does not contain the shape itself and any of its splits. returns true if the shape has been deleted.
Parameters
----------
aS: TopoDS_Shape
Returns
-------
bool
") IsDeleted;
virtual Standard_Boolean IsDeleted(const TopoDS_Shape & aS);
/****************** Modified ******************/
/**** md5 signature: 4e20601bbc1c3aead85ab39355caf9fd ****/
%feature("compactdefaultargs") Modified;
%feature("autodoc", "Returns the shapes modified from the shape <thes>. if any, the list will contain only those splits of the given shape, contained in the result.
Parameters
----------
theS: TopoDS_Shape
Returns
-------
TopTools_ListOfShape
") Modified;
virtual const TopTools_ListOfShape & Modified(const TopoDS_Shape & theS);
/****************** NonDestructive ******************/
/**** md5 signature: debf4165891df54bd9a565d235f0d378 ****/
%feature("compactdefaultargs") NonDestructive;
%feature("autodoc", "Returns the flag that defines the mode of treatment. in non-destructive mode the argument shapes are not modified. instead a copy of a sub-shape is created in the result if it is needed to be updated.
Returns
-------
bool
") NonDestructive;
Standard_Boolean NonDestructive();
/****************** SectionEdges ******************/
/**** md5 signature: 8d1d78adb60588ec6c6d9bac5ddb95cb ****/
%feature("compactdefaultargs") SectionEdges;
%feature("autodoc", "Returns a list of section edges. the edges represent the result of intersection between arguments of operation.
Returns
-------
TopTools_ListOfShape
") SectionEdges;
const TopTools_ListOfShape & SectionEdges();
/****************** SetArguments ******************/
/**** md5 signature: c8050caf960534f7d5c8a2cd210eb861 ****/
%feature("compactdefaultargs") SetArguments;
%feature("autodoc", "Sets the arguments.
Parameters
----------
theLS: TopTools_ListOfShape
Returns
-------
None
") SetArguments;
void SetArguments(const TopTools_ListOfShape & theLS);
/****************** SetCheckInverted ******************/
/**** md5 signature: 9645001f4ab756df382f60cfc76654bc ****/
%feature("compactdefaultargs") SetCheckInverted;
%feature("autodoc", "Enables/disables the check of the input solids for inverted status.
Parameters
----------
theCheck: bool
Returns
-------
None
") SetCheckInverted;
void SetCheckInverted(const Standard_Boolean theCheck);
/****************** SetGlue ******************/
/**** md5 signature: bae09c43d6b988a5d7d19b6376a5aa05 ****/
%feature("compactdefaultargs") SetGlue;
%feature("autodoc", "Sets the glue option for the algorithm, which allows increasing performance of the intersection of the input shapes.
Parameters
----------
theGlue: BOPAlgo_GlueEnum
Returns
-------
None
") SetGlue;
void SetGlue(const BOPAlgo_GlueEnum theGlue);
/****************** SetNonDestructive ******************/
/**** md5 signature: 0a29c6536a8337536ce71b892337fbbb ****/
%feature("compactdefaultargs") SetNonDestructive;
%feature("autodoc", "Sets the flag that defines the mode of treatment. in non-destructive mode the argument shapes are not modified. instead a copy of a sub-shape is created in the result if it is needed to be updated.
Parameters
----------
theFlag: bool
Returns
-------
None
") SetNonDestructive;
void SetNonDestructive(const Standard_Boolean theFlag);
/****************** SetToFillHistory ******************/
/**** md5 signature: 0645816549ab38af8118c8f63f46c0ea ****/
%feature("compactdefaultargs") SetToFillHistory;
%feature("autodoc", "Allows disabling the history collection.
Parameters
----------
theHistFlag: bool
Returns
-------
None
") SetToFillHistory;
void SetToFillHistory(const Standard_Boolean theHistFlag);
/****************** SimplifyResult ******************/
/**** md5 signature: 88e0cdcd55300620756ca014f3c6371d ****/
%feature("compactdefaultargs") SimplifyResult;
%feature("autodoc", "Simplification of the result shape is performed by the means of *shapeupgrade_unifysamedomain* algorithm. the result of the operation will be overwritten with the simplified result. //! the simplification is performed without creation of the internal shapes, i.e. shapes connections will never be broken. //! simplification is performed on the whole result shape. thus, if the input shapes contained connected tangent edges or faces unmodified during the operation they will also be unified. //! after simplification, the history of result simplification is merged into the main history of operation. so, it is taken into account when asking for modified, generated and deleted shapes. //! some options of the main operation are passed into the unifier: - fuzzy tolerance of the operation is given to the unifier as the linear tolerance. - non destructive mode here controls the safe input mode in unifier. //! @param theunifyedges controls the edges unification. true by default. @param theunifyfaces controls the faces unification. true by default. @param theangulartol angular criteria for tangency of edges and faces. precision::angular() by default.
Parameters
----------
theUnifyEdges: bool,optional
default value is Standard_True
theUnifyFaces: bool,optional
default value is Standard_True
theAngularTol: float,optional
default value is Precision::Angular()
Returns
-------
None
") SimplifyResult;
void SimplifyResult(const Standard_Boolean theUnifyEdges = Standard_True, const Standard_Boolean theUnifyFaces = Standard_True, const Standard_Real theAngularTol = Precision::Angular());
};
%extend BRepAlgoAPI_BuilderAlgo {
%pythoncode {
__repr__ = _dumps_object
}
};
/********************************
* class BRepAlgoAPI_Defeaturing *
********************************/
class BRepAlgoAPI_Defeaturing : public BRepAlgoAPI_Algo {
public:
/****************** BRepAlgoAPI_Defeaturing ******************/
/**** md5 signature: c00608d9bba8810c82a05b46e3e4f871 ****/
%feature("compactdefaultargs") BRepAlgoAPI_Defeaturing;
%feature("autodoc", "Empty constructor.
Returns
-------
None
") BRepAlgoAPI_Defeaturing;
BRepAlgoAPI_Defeaturing();
/****************** AddFaceToRemove ******************/
/**** md5 signature: 26c9409a587f43491552f28dbeb97ed4 ****/
%feature("compactdefaultargs") AddFaceToRemove;
%feature("autodoc", "Adds the features to remove from the input shape. @param theface [in] the shape to extract the faces for removal.
Parameters
----------
theFace: TopoDS_Shape
Returns
-------
None
") AddFaceToRemove;
void AddFaceToRemove(const TopoDS_Shape & theFace);
/****************** AddFacesToRemove ******************/
/**** md5 signature: de6da71dc89a49bec36f3c8a28a2c6dd ****/
%feature("compactdefaultargs") AddFacesToRemove;
%feature("autodoc", "Adds the faces to remove from the input shape. @param thefaces [in] the list of shapes to extract the faces for removal.
Parameters
----------
theFaces: TopTools_ListOfShape
Returns
-------
None
") AddFacesToRemove;
void AddFacesToRemove(const TopTools_ListOfShape & theFaces);
/****************** Build ******************/
/**** md5 signature: 58900897d55d51e349b2e40a091ec26f ****/
%feature("compactdefaultargs") Build;
%feature("autodoc", "Performs the operation.
Parameters
----------
theRange: Message_ProgressRange,optional
default value is Message_ProgressRange()
Returns
-------
None
") Build;
virtual void Build(const Message_ProgressRange & theRange = Message_ProgressRange());
/****************** FacesToRemove ******************/
/**** md5 signature: 947971dfb74df8135dc7f7ce60eaaa90 ****/
%feature("compactdefaultargs") FacesToRemove;
%feature("autodoc", "Returns the list of faces which have been requested for removal from the input shape.
Returns
-------
TopTools_ListOfShape
") FacesToRemove;
const TopTools_ListOfShape & FacesToRemove();
/****************** Generated ******************/
/**** md5 signature: 6765eaeea6b04c9e5e12d95bf0d36ae9 ****/
%feature("compactdefaultargs") Generated;
%feature("autodoc", "Returns the list of shapes generated from the shape <thes> during the operation.
Parameters
----------
theS: TopoDS_Shape
Returns
-------
TopTools_ListOfShape
") Generated;
virtual const TopTools_ListOfShape & Generated(const TopoDS_Shape & theS);
/****************** HasDeleted ******************/
/**** md5 signature: 62e1a47bba6730979f45045197c457ad ****/
%feature("compactdefaultargs") HasDeleted;
%feature("autodoc", "Returns true if any of the input shapes has been deleted during operation.
Returns
-------
bool
") HasDeleted;
virtual Standard_Boolean HasDeleted();
/****************** HasGenerated ******************/
/**** md5 signature: 41e62931be9792b7588a37969bdd21d8 ****/
%feature("compactdefaultargs") HasGenerated;
%feature("autodoc", "Returns true if any of the input shapes has generated shapes during operation.
Returns
-------
bool
") HasGenerated;
virtual Standard_Boolean HasGenerated();
/****************** HasHistory ******************/
/**** md5 signature: 707ba290c9cd0157e12b7038a0944657 ****/
%feature("compactdefaultargs") HasHistory;
%feature("autodoc", "Returns whether the history was requested or not.
Returns
-------
bool
") HasHistory;
Standard_Boolean HasHistory();
/****************** HasModified ******************/
/**** md5 signature: 33dead3a6879f4d3e05d3f85aabe6d13 ****/
%feature("compactdefaultargs") HasModified;
%feature("autodoc", "Returns true if any of the input shapes has been modified during operation.
Returns
-------
bool
") HasModified;
virtual Standard_Boolean HasModified();
/****************** History ******************/
/**** md5 signature: 1926fba5b3ef6c8825eef7dc63e4c382 ****/
%feature("compactdefaultargs") History;
%feature("autodoc", "Returns the history of shapes modifications.
Returns
-------
opencascade::handle<BRepTools_History>
") History;
opencascade::handle<BRepTools_History> History();
/****************** InputShape ******************/
/**** md5 signature: c0c04276bd1d5989adf5070d423aadb7 ****/
%feature("compactdefaultargs") InputShape;
%feature("autodoc", "Returns the input shape.
Returns
-------
TopoDS_Shape
") InputShape;
const TopoDS_Shape InputShape();
/****************** IsDeleted ******************/
/**** md5 signature: e03e7b54c17bc7f23491a2c633b6e283 ****/
%feature("compactdefaultargs") IsDeleted;
%feature("autodoc", "Returns true if the shape <thes> has been deleted during the operation. it means that the shape has no any trace in the result. otherwise it returns false.
Parameters
----------
theS: TopoDS_Shape
Returns
-------
bool
") IsDeleted;
virtual Standard_Boolean IsDeleted(const TopoDS_Shape & theS);
/****************** Modified ******************/
/**** md5 signature: 4e20601bbc1c3aead85ab39355caf9fd ****/
%feature("compactdefaultargs") Modified;
%feature("autodoc", "Returns the list of shapes modified from the shape <thes> during the operation.
Parameters
----------
theS: TopoDS_Shape
Returns
-------
TopTools_ListOfShape
") Modified;
virtual const TopTools_ListOfShape & Modified(const TopoDS_Shape & theS);
/****************** SetShape ******************/
/**** md5 signature: 927e2ebe2fb5354dfb3da3c53e512cad ****/
%feature("compactdefaultargs") SetShape;
%feature("autodoc", "Sets the shape for processing. @param theshape [in] the shape to remove the features from. it should either be the solid, compsolid or compound of solids.
Parameters
----------
theShape: TopoDS_Shape
Returns
-------
None
") SetShape;
void SetShape(const TopoDS_Shape & theShape);
/****************** SetToFillHistory ******************/
/**** md5 signature: 74ee5996560ad06ab737a4c8f4c7350d ****/
%feature("compactdefaultargs") SetToFillHistory;
%feature("autodoc", "Defines whether to track the modification of the shapes or not.
Parameters
----------
theFlag: bool
Returns
-------
None
") SetToFillHistory;
void SetToFillHistory(const Standard_Boolean theFlag);
};
%extend BRepAlgoAPI_Defeaturing {
%pythoncode {
__repr__ = _dumps_object
}
};
/*************************************
* class BRepAlgoAPI_BooleanOperation *
*************************************/
class BRepAlgoAPI_BooleanOperation : public BRepAlgoAPI_BuilderAlgo {
public:
/****************** BRepAlgoAPI_BooleanOperation ******************/
/**** md5 signature: ecd6042de04813653a64f217d81e1a57 ****/
%feature("compactdefaultargs") BRepAlgoAPI_BooleanOperation;
%feature("autodoc", "Empty constructor.
Returns
-------
None
") BRepAlgoAPI_BooleanOperation;
BRepAlgoAPI_BooleanOperation();
/****************** BRepAlgoAPI_BooleanOperation ******************/
/**** md5 signature: 911dfe6e6653bd69280d3f5c21f112f5 ****/
%feature("compactdefaultargs") BRepAlgoAPI_BooleanOperation;
%feature("autodoc", "Constructor with precomputed intersections of arguments.
Parameters
----------
thePF: BOPAlgo_PaveFiller
Returns
-------
None
") BRepAlgoAPI_BooleanOperation;
BRepAlgoAPI_BooleanOperation(const BOPAlgo_PaveFiller & thePF);
/****************** Build ******************/
/**** md5 signature: 58900897d55d51e349b2e40a091ec26f ****/
%feature("compactdefaultargs") Build;
%feature("autodoc", "Performs the boolean operation.
Parameters
----------
theRange: Message_ProgressRange,optional
default value is Message_ProgressRange()
Returns
-------
None
") Build;
virtual void Build(const Message_ProgressRange & theRange = Message_ProgressRange());
/****************** Operation ******************/
/**** md5 signature: 3fe7ad033306b813a524bc39f03a5e6e ****/
%feature("compactdefaultargs") Operation;
%feature("autodoc", "Returns the type of boolean operation.
Returns
-------
BOPAlgo_Operation
") Operation;
BOPAlgo_Operation Operation();
/****************** SetOperation ******************/
/**** md5 signature: cef1e63b0452d16e7996e89724a77c38 ****/
%feature("compactdefaultargs") SetOperation;
%feature("autodoc", "Sets the type of boolean operation.
Parameters
----------
theBOP: BOPAlgo_Operation
Returns
-------
None
") SetOperation;
void SetOperation(const BOPAlgo_Operation theBOP);
/****************** SetTools ******************/
/**** md5 signature: 3be2cbb7f8439cb12462b3704230f424 ****/
%feature("compactdefaultargs") SetTools;
%feature("autodoc", "Sets the tool arguments.
Parameters
----------
theLS: TopTools_ListOfShape
Returns
-------
None
") SetTools;
void SetTools(const TopTools_ListOfShape & theLS);
/****************** Shape1 ******************/
/**** md5 signature: 8981b86985f46147f6d78d0ef2565c6e ****/
%feature("compactdefaultargs") Shape1;
%feature("autodoc", "Returns the first argument involved in this boolean operation. obsolete.
Returns
-------
TopoDS_Shape
") Shape1;
const TopoDS_Shape Shape1();
/****************** Shape2 ******************/
/**** md5 signature: 2c54bae91519136523ed62dc1f27ae72 ****/
%feature("compactdefaultargs") Shape2;
%feature("autodoc", "Returns the second argument involved in this boolean operation. obsolete.
Returns
-------
TopoDS_Shape
") Shape2;
const TopoDS_Shape Shape2();
/****************** Tools ******************/
/**** md5 signature: 0471973aac274d4f863776957a65fd19 ****/
%feature("compactdefaultargs") Tools;
%feature("autodoc", "Returns the tools arguments.
Returns
-------
TopTools_ListOfShape
") Tools;
const TopTools_ListOfShape & Tools();
};
%extend BRepAlgoAPI_BooleanOperation {
%pythoncode {
__repr__ = _dumps_object
}
};
/*****************************
* class BRepAlgoAPI_Splitter *
*****************************/
class BRepAlgoAPI_Splitter : public BRepAlgoAPI_BuilderAlgo {
public:
/****************** BRepAlgoAPI_Splitter ******************/
/**** md5 signature: 9ef21f13bc074dc22af2512d12d68538 ****/
%feature("compactdefaultargs") BRepAlgoAPI_Splitter;
%feature("autodoc", "Empty constructor.
Returns
-------
None
") BRepAlgoAPI_Splitter;
BRepAlgoAPI_Splitter();
/****************** BRepAlgoAPI_Splitter ******************/
/**** md5 signature: 7e6131d308f84171e35c6eadd0d40875 ****/
%feature("compactdefaultargs") BRepAlgoAPI_Splitter;
%feature("autodoc", "Constructor with already prepared intersection tool - pavefiller.
Parameters
----------
thePF: BOPAlgo_PaveFiller
Returns
-------
None
") BRepAlgoAPI_Splitter;
BRepAlgoAPI_Splitter(const BOPAlgo_PaveFiller & thePF);