forked from tpaviot/pythonocc-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBRepBuilderAPI.i
More file actions
4845 lines (3972 loc) · 150 KB
/
BRepBuilderAPI.i
File metadata and controls
4845 lines (3972 loc) · 150 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 BREPBUILDERAPIDOCSTRING
"BRepBuilderAPI module, see official documentation at
https://www.opencascade.com/doc/occt-7.6.0/refman/html/package_brepbuilderapi.html"
%enddef
%module (package="OCC.Core", docstring=BREPBUILDERAPIDOCSTRING) BRepBuilderAPI
%{
#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<BRepBuilderAPI_module.hxx>
//Dependencies
#include<Standard_module.hxx>
#include<NCollection_module.hxx>
#include<Geom_module.hxx>
#include<TopoDS_module.hxx>
#include<TopTools_module.hxx>
#include<BRepTools_module.hxx>
#include<Message_module.hxx>
#include<gp_module.hxx>
#include<TColStd_module.hxx>
#include<Bnd_module.hxx>
#include<Geom2d_module.hxx>
#include<Poly_module.hxx>
#include<BRep_module.hxx>
#include<TopLoc_module.hxx>
#include<TShort_module.hxx>
#include<Poly_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 Geom.i
%import TopoDS.i
%import TopTools.i
%import BRepTools.i
%import Message.i
%import gp.i
%import TColStd.i
%import Bnd.i
%import Geom2d.i
%import Poly.i
%pythoncode {
from enum import IntEnum
from OCC.Core.Exception import *
};
/* public enums */
enum BRepBuilderAPI_ShapeModification {
BRepBuilderAPI_Preserved = 0,
BRepBuilderAPI_Deleted = 1,
BRepBuilderAPI_Trimmed = 2,
BRepBuilderAPI_Merged = 3,
BRepBuilderAPI_BoundaryModified = 4,
};
enum BRepBuilderAPI_WireError {
BRepBuilderAPI_WireDone = 0,
BRepBuilderAPI_EmptyWire = 1,
BRepBuilderAPI_DisconnectedWire = 2,
BRepBuilderAPI_NonManifoldWire = 3,
};
enum BRepBuilderAPI_EdgeError {
BRepBuilderAPI_EdgeDone = 0,
BRepBuilderAPI_PointProjectionFailed = 1,
BRepBuilderAPI_ParameterOutOfRange = 2,
BRepBuilderAPI_DifferentPointsOnClosedCurve = 3,
BRepBuilderAPI_PointWithInfiniteParameter = 4,
BRepBuilderAPI_DifferentsPointAndParameter = 5,
BRepBuilderAPI_LineThroughIdenticPoints = 6,
};
enum BRepBuilderAPI_PipeError {
BRepBuilderAPI_PipeDone = 0,
BRepBuilderAPI_PipeNotDone = 1,
BRepBuilderAPI_PlaneNotIntersectGuide = 2,
BRepBuilderAPI_ImpossibleContact = 3,
};
enum BRepBuilderAPI_TransitionMode {
BRepBuilderAPI_Transformed = 0,
BRepBuilderAPI_RightCorner = 1,
BRepBuilderAPI_RoundCorner = 2,
};
enum BRepBuilderAPI_FaceError {
BRepBuilderAPI_FaceDone = 0,
BRepBuilderAPI_NoFace = 1,
BRepBuilderAPI_NotPlanar = 2,
BRepBuilderAPI_CurveProjectionFailed = 3,
BRepBuilderAPI_ParametersOutOfRange = 4,
};
enum BRepBuilderAPI_ShellError {
BRepBuilderAPI_ShellDone = 0,
BRepBuilderAPI_EmptyShell = 1,
BRepBuilderAPI_DisconnectedShell = 2,
BRepBuilderAPI_ShellParametersOutOfRange = 3,
};
/* end public enums declaration */
/* python proxy classes for enums */
%pythoncode {
class BRepBuilderAPI_ShapeModification(IntEnum):
BRepBuilderAPI_Preserved = 0
BRepBuilderAPI_Deleted = 1
BRepBuilderAPI_Trimmed = 2
BRepBuilderAPI_Merged = 3
BRepBuilderAPI_BoundaryModified = 4
BRepBuilderAPI_Preserved = BRepBuilderAPI_ShapeModification.BRepBuilderAPI_Preserved
BRepBuilderAPI_Deleted = BRepBuilderAPI_ShapeModification.BRepBuilderAPI_Deleted
BRepBuilderAPI_Trimmed = BRepBuilderAPI_ShapeModification.BRepBuilderAPI_Trimmed
BRepBuilderAPI_Merged = BRepBuilderAPI_ShapeModification.BRepBuilderAPI_Merged
BRepBuilderAPI_BoundaryModified = BRepBuilderAPI_ShapeModification.BRepBuilderAPI_BoundaryModified
class BRepBuilderAPI_WireError(IntEnum):
BRepBuilderAPI_WireDone = 0
BRepBuilderAPI_EmptyWire = 1
BRepBuilderAPI_DisconnectedWire = 2
BRepBuilderAPI_NonManifoldWire = 3
BRepBuilderAPI_WireDone = BRepBuilderAPI_WireError.BRepBuilderAPI_WireDone
BRepBuilderAPI_EmptyWire = BRepBuilderAPI_WireError.BRepBuilderAPI_EmptyWire
BRepBuilderAPI_DisconnectedWire = BRepBuilderAPI_WireError.BRepBuilderAPI_DisconnectedWire
BRepBuilderAPI_NonManifoldWire = BRepBuilderAPI_WireError.BRepBuilderAPI_NonManifoldWire
class BRepBuilderAPI_EdgeError(IntEnum):
BRepBuilderAPI_EdgeDone = 0
BRepBuilderAPI_PointProjectionFailed = 1
BRepBuilderAPI_ParameterOutOfRange = 2
BRepBuilderAPI_DifferentPointsOnClosedCurve = 3
BRepBuilderAPI_PointWithInfiniteParameter = 4
BRepBuilderAPI_DifferentsPointAndParameter = 5
BRepBuilderAPI_LineThroughIdenticPoints = 6
BRepBuilderAPI_EdgeDone = BRepBuilderAPI_EdgeError.BRepBuilderAPI_EdgeDone
BRepBuilderAPI_PointProjectionFailed = BRepBuilderAPI_EdgeError.BRepBuilderAPI_PointProjectionFailed
BRepBuilderAPI_ParameterOutOfRange = BRepBuilderAPI_EdgeError.BRepBuilderAPI_ParameterOutOfRange
BRepBuilderAPI_DifferentPointsOnClosedCurve = BRepBuilderAPI_EdgeError.BRepBuilderAPI_DifferentPointsOnClosedCurve
BRepBuilderAPI_PointWithInfiniteParameter = BRepBuilderAPI_EdgeError.BRepBuilderAPI_PointWithInfiniteParameter
BRepBuilderAPI_DifferentsPointAndParameter = BRepBuilderAPI_EdgeError.BRepBuilderAPI_DifferentsPointAndParameter
BRepBuilderAPI_LineThroughIdenticPoints = BRepBuilderAPI_EdgeError.BRepBuilderAPI_LineThroughIdenticPoints
class BRepBuilderAPI_PipeError(IntEnum):
BRepBuilderAPI_PipeDone = 0
BRepBuilderAPI_PipeNotDone = 1
BRepBuilderAPI_PlaneNotIntersectGuide = 2
BRepBuilderAPI_ImpossibleContact = 3
BRepBuilderAPI_PipeDone = BRepBuilderAPI_PipeError.BRepBuilderAPI_PipeDone
BRepBuilderAPI_PipeNotDone = BRepBuilderAPI_PipeError.BRepBuilderAPI_PipeNotDone
BRepBuilderAPI_PlaneNotIntersectGuide = BRepBuilderAPI_PipeError.BRepBuilderAPI_PlaneNotIntersectGuide
BRepBuilderAPI_ImpossibleContact = BRepBuilderAPI_PipeError.BRepBuilderAPI_ImpossibleContact
class BRepBuilderAPI_TransitionMode(IntEnum):
BRepBuilderAPI_Transformed = 0
BRepBuilderAPI_RightCorner = 1
BRepBuilderAPI_RoundCorner = 2
BRepBuilderAPI_Transformed = BRepBuilderAPI_TransitionMode.BRepBuilderAPI_Transformed
BRepBuilderAPI_RightCorner = BRepBuilderAPI_TransitionMode.BRepBuilderAPI_RightCorner
BRepBuilderAPI_RoundCorner = BRepBuilderAPI_TransitionMode.BRepBuilderAPI_RoundCorner
class BRepBuilderAPI_FaceError(IntEnum):
BRepBuilderAPI_FaceDone = 0
BRepBuilderAPI_NoFace = 1
BRepBuilderAPI_NotPlanar = 2
BRepBuilderAPI_CurveProjectionFailed = 3
BRepBuilderAPI_ParametersOutOfRange = 4
BRepBuilderAPI_FaceDone = BRepBuilderAPI_FaceError.BRepBuilderAPI_FaceDone
BRepBuilderAPI_NoFace = BRepBuilderAPI_FaceError.BRepBuilderAPI_NoFace
BRepBuilderAPI_NotPlanar = BRepBuilderAPI_FaceError.BRepBuilderAPI_NotPlanar
BRepBuilderAPI_CurveProjectionFailed = BRepBuilderAPI_FaceError.BRepBuilderAPI_CurveProjectionFailed
BRepBuilderAPI_ParametersOutOfRange = BRepBuilderAPI_FaceError.BRepBuilderAPI_ParametersOutOfRange
class BRepBuilderAPI_ShellError(IntEnum):
BRepBuilderAPI_ShellDone = 0
BRepBuilderAPI_EmptyShell = 1
BRepBuilderAPI_DisconnectedShell = 2
BRepBuilderAPI_ShellParametersOutOfRange = 3
BRepBuilderAPI_ShellDone = BRepBuilderAPI_ShellError.BRepBuilderAPI_ShellDone
BRepBuilderAPI_EmptyShell = BRepBuilderAPI_ShellError.BRepBuilderAPI_EmptyShell
BRepBuilderAPI_DisconnectedShell = BRepBuilderAPI_ShellError.BRepBuilderAPI_DisconnectedShell
BRepBuilderAPI_ShellParametersOutOfRange = BRepBuilderAPI_ShellError.BRepBuilderAPI_ShellParametersOutOfRange
};
/* end python proxy for enums */
/* handles */
%wrap_handle(BRepBuilderAPI_FastSewing)
%wrap_handle(BRepBuilderAPI_Sewing)
/* end handles declaration */
/* templates */
%template(BRepBuilderAPI_BndBoxTree) NCollection_UBTree<Standard_Integer,Bnd_Box>;
/* end templates declaration */
/* typedefs */
typedef NCollection_UBTree<Standard_Integer, Bnd_Box> BRepBuilderAPI_BndBoxTree;
typedef NCollection_CellFilter<BRepBuilderAPI_VertexInspector> BRepBuilderAPI_CellFilter;
typedef NCollection_Vector<gp_XYZ> VectorOfPoint;
/* end typedefs declaration */
/***********************
* class BRepBuilderAPI *
***********************/
%rename(brepbuilderapi) BRepBuilderAPI;
class BRepBuilderAPI {
public:
/****************** Plane ******************/
/**** md5 signature: 215779db6a724a03f9f8ce477370cef4 ****/
%feature("compactdefaultargs") Plane;
%feature("autodoc", "Sets the current plane.
Parameters
----------
P: Geom_Plane
Returns
-------
None
") Plane;
static void Plane(const opencascade::handle<Geom_Plane> & P);
/****************** Plane ******************/
/**** md5 signature: 6d27cd1f706ac4d5f7ea5e003d1302b0 ****/
%feature("compactdefaultargs") Plane;
%feature("autodoc", "Returns the current plane.
Returns
-------
opencascade::handle<Geom_Plane>
") Plane;
static const opencascade::handle<Geom_Plane> & Plane();
/****************** Precision ******************/
/**** md5 signature: ced9db4ac4e8a407df5972bac5488688 ****/
%feature("compactdefaultargs") Precision;
%feature("autodoc", "Sets the default precision. the current precision is returned.
Parameters
----------
P: float
Returns
-------
None
") Precision;
static void Precision(const Standard_Real P);
/****************** Precision ******************/
/**** md5 signature: 5a0c763be80263f1e28f9182713f12dc ****/
%feature("compactdefaultargs") Precision;
%feature("autodoc", "Returns the default precision.
Returns
-------
float
") Precision;
static Standard_Real Precision();
};
%extend BRepBuilderAPI {
%pythoncode {
__repr__ = _dumps_object
}
};
/*******************************
* class BRepBuilderAPI_Collect *
*******************************/
class BRepBuilderAPI_Collect {
public:
/****************** BRepBuilderAPI_Collect ******************/
/**** md5 signature: 389c61cabe5e3b0cdaed5ff1824ab60c ****/
%feature("compactdefaultargs") BRepBuilderAPI_Collect;
%feature("autodoc", "No available documentation.
Returns
-------
None
") BRepBuilderAPI_Collect;
BRepBuilderAPI_Collect();
/****************** Add ******************/
/**** md5 signature: a5c5cb395419acc4c81c2fc73ccd4b50 ****/
%feature("compactdefaultargs") Add;
%feature("autodoc", "No available documentation.
Parameters
----------
SI: TopoDS_Shape
MKS: BRepBuilderAPI_MakeShape
Returns
-------
None
") Add;
void Add(const TopoDS_Shape & SI, BRepBuilderAPI_MakeShape & MKS);
/****************** AddGenerated ******************/
/**** md5 signature: 24d2f071681238ae41ddf97ad14ec2c3 ****/
%feature("compactdefaultargs") AddGenerated;
%feature("autodoc", "No available documentation.
Parameters
----------
S: TopoDS_Shape
Gen: TopoDS_Shape
Returns
-------
None
") AddGenerated;
void AddGenerated(const TopoDS_Shape & S, const TopoDS_Shape & Gen);
/****************** AddModif ******************/
/**** md5 signature: d42b5cf3b841c945de9d3d65afeede81 ****/
%feature("compactdefaultargs") AddModif;
%feature("autodoc", "No available documentation.
Parameters
----------
S: TopoDS_Shape
Mod: TopoDS_Shape
Returns
-------
None
") AddModif;
void AddModif(const TopoDS_Shape & S, const TopoDS_Shape & Mod);
/****************** Filter ******************/
/**** md5 signature: 0a1acafd79b78748618f690fbfb61533 ****/
%feature("compactdefaultargs") Filter;
%feature("autodoc", "No available documentation.
Parameters
----------
SF: TopoDS_Shape
Returns
-------
None
") Filter;
void Filter(const TopoDS_Shape & SF);
/****************** Generated ******************/
/**** md5 signature: 176507b5ffd0100ab7a88bdc3ba1ff71 ****/
%feature("compactdefaultargs") Generated;
%feature("autodoc", "No available documentation.
Returns
-------
TopTools_DataMapOfShapeListOfShape
") Generated;
const TopTools_DataMapOfShapeListOfShape & Generated();
/****************** Modification ******************/
/**** md5 signature: 8146072a56cfb726ec8891f6d418e953 ****/
%feature("compactdefaultargs") Modification;
%feature("autodoc", "No available documentation.
Returns
-------
TopTools_DataMapOfShapeListOfShape
") Modification;
const TopTools_DataMapOfShapeListOfShape & Modification();
};
%extend BRepBuilderAPI_Collect {
%pythoncode {
__repr__ = _dumps_object
}
};
/*******************************
* class BRepBuilderAPI_Command *
*******************************/
%nodefaultctor BRepBuilderAPI_Command;
class BRepBuilderAPI_Command {
public:
/****************** Check ******************/
/**** md5 signature: f34c3545e20ecd4b70f0028e921e213b ****/
%feature("compactdefaultargs") Check;
%feature("autodoc", "Raises notdone if done is false.
Returns
-------
None
") Check;
void Check();
/****************** IsDone ******************/
/**** md5 signature: 1dfe5875b8bc7f7b11380fb4ab8a9eb0 ****/
%feature("compactdefaultargs") IsDone;
%feature("autodoc", "No available documentation.
Returns
-------
bool
") IsDone;
virtual Standard_Boolean IsDone();
};
%extend BRepBuilderAPI_Command {
%pythoncode {
__repr__ = _dumps_object
}
};
/**********************************
* class BRepBuilderAPI_FastSewing *
**********************************/
class BRepBuilderAPI_FastSewing : public Standard_Transient {
public:
typedef unsigned int FS_VARStatuses;
class FS_Vertex {};
class FS_Face {};
class FS_Edge {};
class NodeInspector {};
/* public enums */
enum FS_Statuses {
FS_OK = 0,
FS_Degenerated = 1,
FS_FindVertexError = 2,
FS_FindEdgeError = 4,
FS_FaceWithNullSurface = 8,
FS_NotNaturalBoundsFace = 16,
FS_InfiniteSurface = 32,
FS_EmptyInput = 64,
FS_Exception = 128,
};
/* end public enums declaration */
/* python proxy classes for enums */
%pythoncode {
class FS_Statuses(IntEnum):
FS_OK = 0
FS_Degenerated = 1
FS_FindVertexError = 2
FS_FindEdgeError = 4
FS_FaceWithNullSurface = 8
FS_NotNaturalBoundsFace = 16
FS_InfiniteSurface = 32
FS_EmptyInput = 64
FS_Exception = 128
FS_OK = FS_Statuses.FS_OK
FS_Degenerated = FS_Statuses.FS_Degenerated
FS_FindVertexError = FS_Statuses.FS_FindVertexError
FS_FindEdgeError = FS_Statuses.FS_FindEdgeError
FS_FaceWithNullSurface = FS_Statuses.FS_FaceWithNullSurface
FS_NotNaturalBoundsFace = FS_Statuses.FS_NotNaturalBoundsFace
FS_InfiniteSurface = FS_Statuses.FS_InfiniteSurface
FS_EmptyInput = FS_Statuses.FS_EmptyInput
FS_Exception = FS_Statuses.FS_Exception
};
/* end python proxy for enums */
/****************** BRepBuilderAPI_FastSewing ******************/
/**** md5 signature: 5cdf281365d4a008fe89ed2644d07eef ****/
%feature("compactdefaultargs") BRepBuilderAPI_FastSewing;
%feature("autodoc", "Creates an object with tolerance of connexity.
Parameters
----------
theTolerance: float,optional
default value is 1.0e-06
Returns
-------
None
") BRepBuilderAPI_FastSewing;
BRepBuilderAPI_FastSewing(const Standard_Real theTolerance = 1.0e-06);
/****************** Add ******************/
/**** md5 signature: 68dfa588b1680a2069907b2bf05e1c65 ****/
%feature("compactdefaultargs") Add;
%feature("autodoc", "Adds faces of a shape.
Parameters
----------
theShape: TopoDS_Shape
Returns
-------
bool
") Add;
Standard_Boolean Add(const TopoDS_Shape & theShape);
/****************** Add ******************/
/**** md5 signature: 5c877fb8c71029cef3b4fa5692a20197 ****/
%feature("compactdefaultargs") Add;
%feature("autodoc", "Adds a surface.
Parameters
----------
theSurface: Geom_Surface
Returns
-------
bool
") Add;
Standard_Boolean Add(const opencascade::handle<Geom_Surface> & theSurface);
/****************** GetResult ******************/
/**** md5 signature: 9bb8729ba64a056c1d3bbe9695c34e70 ****/
%feature("compactdefaultargs") GetResult;
%feature("autodoc", "Returns resulted shape.
Returns
-------
TopoDS_Shape
") GetResult;
const TopoDS_Shape GetResult();
/****************** GetTolerance ******************/
/**** md5 signature: 08094ae040a166d1b252ee02000bca27 ****/
%feature("compactdefaultargs") GetTolerance;
%feature("autodoc", "Returns tolerance.
Returns
-------
float
") GetTolerance;
Standard_Real GetTolerance();
/****************** Perform ******************/
/**** md5 signature: edb59e2ca9c97ae6c4d9ce2566330337 ****/
%feature("compactdefaultargs") Perform;
%feature("autodoc", "Compute resulted shape.
Returns
-------
None
") Perform;
void Perform();
/****************** SetTolerance ******************/
/**** md5 signature: 4181eb50f502c475b9b01c03a6a70db9 ****/
%feature("compactdefaultargs") SetTolerance;
%feature("autodoc", "Sets tolerance.
Parameters
----------
theToler: float
Returns
-------
None
") SetTolerance;
void SetTolerance(const Standard_Real theToler);
};
%make_alias(BRepBuilderAPI_FastSewing)
%extend BRepBuilderAPI_FastSewing {
%pythoncode {
__repr__ = _dumps_object
@methodnotwrapped
def GetStatuses(self):
pass
}
};
/*********************************
* class BRepBuilderAPI_FindPlane *
*********************************/
class BRepBuilderAPI_FindPlane {
public:
/****************** BRepBuilderAPI_FindPlane ******************/
/**** md5 signature: ef4ea376286fb1ede698f0b19cc4f429 ****/
%feature("compactdefaultargs") BRepBuilderAPI_FindPlane;
%feature("autodoc", "Initializes an empty algorithm. the function init is then used to define the shape.
Returns
-------
None
") BRepBuilderAPI_FindPlane;
BRepBuilderAPI_FindPlane();
/****************** BRepBuilderAPI_FindPlane ******************/
/**** md5 signature: 763aa4ae1a7235c1609845cf21bc92e2 ****/
%feature("compactdefaultargs") BRepBuilderAPI_FindPlane;
%feature("autodoc", "Constructs the plane containing the edges of the shape s. a plane is built only if all the edges are within a distance of less than or equal to tolerance from a planar surface. this tolerance value is equal to the larger of the following two values: - tol, where the default value is negative, or - the largest of the tolerance values assigned to the individual edges of s. use the function found to verify that a plane is built. the resulting plane is then retrieved using the function plane.
Parameters
----------
S: TopoDS_Shape
Tol: float,optional
default value is -1
Returns
-------
None
") BRepBuilderAPI_FindPlane;
BRepBuilderAPI_FindPlane(const TopoDS_Shape & S, const Standard_Real Tol = -1);
/****************** Found ******************/
/**** md5 signature: f98a87b5981b48fa74222eaa5aa8feb6 ****/
%feature("compactdefaultargs") Found;
%feature("autodoc", "Returns true if a plane containing the edges of the shape is found and built. use the function plane to consult the result.
Returns
-------
bool
") Found;
Standard_Boolean Found();
/****************** Init ******************/
/**** md5 signature: 4d646163f720cb1bdaa4671839b00b98 ****/
%feature("compactdefaultargs") Init;
%feature("autodoc", "Constructs the plane containing the edges of the shape s. a plane is built only if all the edges are within a distance of less than or equal to tolerance from a planar surface. this tolerance value is equal to the larger of the following two values: - tol, where the default value is negative, or - the largest of the tolerance values assigned to the individual edges of s. use the function found to verify that a plane is built. the resulting plane is then retrieved using the function plane.
Parameters
----------
S: TopoDS_Shape
Tol: float,optional
default value is -1
Returns
-------
None
") Init;
void Init(const TopoDS_Shape & S, const Standard_Real Tol = -1);
/****************** Plane ******************/
/**** md5 signature: 5c94d426c8cb0ea718d9147a0f1d68f5 ****/
%feature("compactdefaultargs") Plane;
%feature("autodoc", "Returns the plane containing the edges of the shape. warning use the function found to verify that the plane is built. if a plane is not found, plane returns a null handle.
Returns
-------
opencascade::handle<Geom_Plane>
") Plane;
opencascade::handle<Geom_Plane> Plane();
};
%extend BRepBuilderAPI_FindPlane {
%pythoncode {
__repr__ = _dumps_object
}
};
/******************************
* class BRepBuilderAPI_Sewing *
******************************/
class BRepBuilderAPI_Sewing : public Standard_Transient {
public:
/****************** BRepBuilderAPI_Sewing ******************/
/**** md5 signature: e18a1d19a8b6425820c30aa95cb1c4b9 ****/
%feature("compactdefaultargs") BRepBuilderAPI_Sewing;
%feature("autodoc", "Creates an object with tolerance of connexity option for sewing (if false only control) option for analysis of degenerated shapes option for cutting of free edges. option for non manifold processing.
Parameters
----------
tolerance: float,optional
default value is 1.0e-06
option1: bool,optional
default value is Standard_True
option2: bool,optional
default value is Standard_True
option3: bool,optional
default value is Standard_True
option4: bool,optional
default value is Standard_False
Returns
-------
None
") BRepBuilderAPI_Sewing;
BRepBuilderAPI_Sewing(const Standard_Real tolerance = 1.0e-06, const Standard_Boolean option1 = Standard_True, const Standard_Boolean option2 = Standard_True, const Standard_Boolean option3 = Standard_True, const Standard_Boolean option4 = Standard_False);
/****************** Add ******************/
/**** md5 signature: e2be6f2074943772e403ebcbe671347a ****/
%feature("compactdefaultargs") Add;
%feature("autodoc", "Defines the shapes to be sewed or controlled.
Parameters
----------
shape: TopoDS_Shape
Returns
-------
None
") Add;
void Add(const TopoDS_Shape & shape);
/****************** ContigousEdge ******************/
/**** md5 signature: 528f0ebefe61a096548f88451970603d ****/
%feature("compactdefaultargs") ContigousEdge;
%feature("autodoc", "Gives each contiguous edge.
Parameters
----------
index: int
Returns
-------
TopoDS_Edge
") ContigousEdge;
const TopoDS_Edge ContigousEdge(const Standard_Integer index);
/****************** ContigousEdgeCouple ******************/
/**** md5 signature: 783b24657c04ecf4547ffd8cfddcc368 ****/
%feature("compactdefaultargs") ContigousEdgeCouple;
%feature("autodoc", "Gives the sections (edge) belonging to a contiguous edge.
Parameters
----------
index: int
Returns
-------
TopTools_ListOfShape
") ContigousEdgeCouple;
const TopTools_ListOfShape & ContigousEdgeCouple(const Standard_Integer index);
/****************** DegeneratedShape ******************/
/**** md5 signature: e6eb24cfb41ed6276abbd22e81382ad4 ****/
%feature("compactdefaultargs") DegeneratedShape;
%feature("autodoc", "Gives each degenerated shape.
Parameters
----------
index: int
Returns
-------
TopoDS_Shape
") DegeneratedShape;
const TopoDS_Shape DegeneratedShape(const Standard_Integer index);
/****************** DeletedFace ******************/
/**** md5 signature: e964b07feb42f72561b85423c8033fca ****/
%feature("compactdefaultargs") DeletedFace;
%feature("autodoc", "Gives each deleted face.
Parameters
----------
index: int
Returns
-------
TopoDS_Face
") DeletedFace;
const TopoDS_Face DeletedFace(const Standard_Integer index);
/****************** Dump ******************/
/**** md5 signature: 15b4b2e195645aebb43170ff7f15952a ****/
%feature("compactdefaultargs") Dump;
%feature("autodoc", "Print the information.
Returns
-------
None
") Dump;
void Dump();
/****************** FaceMode ******************/
/**** md5 signature: 21661531f4beeda56376b9777120d25d ****/
%feature("compactdefaultargs") FaceMode;
%feature("autodoc", "Returns mode for sewing faces by default - true.
Returns
-------
bool
") FaceMode;
Standard_Boolean FaceMode();
/****************** FloatingEdgesMode ******************/
/**** md5 signature: 4a5c8040ae5369a46adc16bfcec4bd53 ****/
%feature("compactdefaultargs") FloatingEdgesMode;
%feature("autodoc", "Returns mode for sewing floating edges by default - false.
Returns
-------
bool
") FloatingEdgesMode;
Standard_Boolean FloatingEdgesMode();
/****************** FreeEdge ******************/
/**** md5 signature: d7877d5632d059ec28a98ec8914a60d4 ****/
%feature("compactdefaultargs") FreeEdge;
%feature("autodoc", "Gives each free edge.
Parameters
----------
index: int
Returns
-------
TopoDS_Edge
") FreeEdge;
const TopoDS_Edge FreeEdge(const Standard_Integer index);
/****************** GetContext ******************/
/**** md5 signature: 4fb4f0ef4e8072c0449192799698250c ****/
%feature("compactdefaultargs") GetContext;
%feature("autodoc", "Return context.
Returns
-------
opencascade::handle<BRepTools_ReShape>
") GetContext;
const opencascade::handle<BRepTools_ReShape> & GetContext();
/****************** Init ******************/
/**** md5 signature: 9a7c36413c1eb2ae42b6435c1c7d2e86 ****/
%feature("compactdefaultargs") Init;
%feature("autodoc", "Initialize the parameters if necessary.
Parameters
----------
tolerance: float,optional
default value is 1.0e-06
option1: bool,optional
default value is Standard_True
option2: bool,optional
default value is Standard_True
option3: bool,optional
default value is Standard_True
option4: bool,optional
default value is Standard_False
Returns
-------
None
") Init;
void Init(const Standard_Real tolerance = 1.0e-06, const Standard_Boolean option1 = Standard_True, const Standard_Boolean option2 = Standard_True, const Standard_Boolean option3 = Standard_True, const Standard_Boolean option4 = Standard_False);
/****************** IsDegenerated ******************/
/**** md5 signature: 84979167278e746e62a21a790a7cd87e ****/
%feature("compactdefaultargs") IsDegenerated;
%feature("autodoc", "Indicates if a input shape is degenerated.
Parameters
----------
shape: TopoDS_Shape
Returns
-------
bool
") IsDegenerated;
Standard_Boolean IsDegenerated(const TopoDS_Shape & shape);
/****************** IsModified ******************/
/**** md5 signature: 1d5d4f025b62ca0ccc6672d39cdf22fc ****/
%feature("compactdefaultargs") IsModified;
%feature("autodoc", "Indicates if a input shape has been modified.
Parameters
----------
shape: TopoDS_Shape
Returns
-------
bool
") IsModified;
Standard_Boolean IsModified(const TopoDS_Shape & shape);
/****************** IsModifiedSubShape ******************/
/**** md5 signature: 7a0857a507d3c4158ac7100a028d6a23 ****/
%feature("compactdefaultargs") IsModifiedSubShape;
%feature("autodoc", "Indicates if a input subshape has been modified.
Parameters
----------
shape: TopoDS_Shape
Returns
-------
bool
") IsModifiedSubShape;
Standard_Boolean IsModifiedSubShape(const TopoDS_Shape & shape);
/****************** IsSectionBound ******************/
/**** md5 signature: cd9153a526df9f57af17b95cfb016aa1 ****/
%feature("compactdefaultargs") IsSectionBound;
%feature("autodoc", "Indicates if a section is bound (before use sectiontoboundary).
Parameters
----------
section: TopoDS_Edge
Returns
-------
bool
") IsSectionBound;
Standard_Boolean IsSectionBound(const TopoDS_Edge & section);
/****************** Load ******************/
/**** md5 signature: 5e48307a99195c8c9f614df4cf55663d ****/
%feature("compactdefaultargs") Load;
%feature("autodoc", "Loades the context shape.
Parameters
----------
shape: TopoDS_Shape
Returns
-------
None
") Load;
void Load(const TopoDS_Shape & shape);
/****************** LocalTolerancesMode ******************/
/**** md5 signature: d909e2ebc0fc932438ad29d4934d9840 ****/
%feature("compactdefaultargs") LocalTolerancesMode;
%feature("autodoc", "Returns mode for accounting of local tolerances of edges and vertices during of merging.
Returns
-------
bool
") LocalTolerancesMode;
Standard_Boolean LocalTolerancesMode();
/****************** MaxTolerance ******************/
/**** md5 signature: b0c09a40965fea8fc4d63c52a795d7fd ****/
%feature("compactdefaultargs") MaxTolerance;
%feature("autodoc", "Gives set max tolerance.
Returns
-------
float
") MaxTolerance;
Standard_Real MaxTolerance();
/****************** MinTolerance ******************/
/**** md5 signature: 2629547ec2afd3a7a2edaa268cbc0366 ****/
%feature("compactdefaultargs") MinTolerance;
%feature("autodoc", "Gives set min tolerance.
Returns
-------
float
") MinTolerance;
Standard_Real MinTolerance();
/****************** Modified ******************/
/**** md5 signature: 8eae36e55014fa2f45331a4af35cda4c ****/
%feature("compactdefaultargs") Modified;
%feature("autodoc", "Gives a modifieded shape.
Parameters
----------
shape: TopoDS_Shape
Returns
-------
TopoDS_Shape
") Modified;
const TopoDS_Shape Modified(const TopoDS_Shape & shape);
/****************** ModifiedSubShape ******************/