forked from tpaviot/pythonocc-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBRepOffsetAPI.i
More file actions
2874 lines (2363 loc) · 103 KB
/
BRepOffsetAPI.i
File metadata and controls
2874 lines (2363 loc) · 103 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 BREPOFFSETAPIDOCSTRING
"BRepOffsetAPI module, see official documentation at
https://www.opencascade.com/doc/occt-7.6.0/refman/html/package_brepoffsetapi.html"
%enddef
%module (package="OCC.Core", docstring=BREPOFFSETAPIDOCSTRING) BRepOffsetAPI
%{
#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<BRepOffsetAPI_module.hxx>
//Dependencies
#include<Standard_module.hxx>
#include<NCollection_module.hxx>
#include<BRepBuilderAPI_module.hxx>
#include<TopoDS_module.hxx>
#include<gp_module.hxx>
#include<Message_module.hxx>
#include<TopTools_module.hxx>
#include<Draft_module.hxx>
#include<Geom_module.hxx>
#include<GeomAbs_module.hxx>
#include<BRepFill_module.hxx>
#include<BRepOffset_module.hxx>
#include<BRepPrimAPI_module.hxx>
#include<GeomFill_module.hxx>
#include<Law_module.hxx>
#include<Approx_module.hxx>
#include<Bnd_module.hxx>
#include<AppParCurves_module.hxx>
#include<MAT_module.hxx>
#include<TColgp_module.hxx>
#include<BRepAlgo_module.hxx>
#include<FEmTool_module.hxx>
#include<TopOpeBRepBuild_module.hxx>
#include<Plate_module.hxx>
#include<Bisector_module.hxx>
#include<TColStd_module.hxx>
#include<PLib_module.hxx>
#include<BRepMAT2d_module.hxx>
#include<TColGeom2d_module.hxx>
#include<BRepAdaptor_module.hxx>
#include<BRepClass3d_module.hxx>
#include<BRep_module.hxx>
#include<BRepTools_module.hxx>
#include<Quantity_module.hxx>
#include<Adaptor3d_module.hxx>
#include<TopLoc_module.hxx>
#include<AdvApp2Var_module.hxx>
#include<TColGeom_module.hxx>
#include<IntSurf_module.hxx>
#include<Message_module.hxx>
#include<Convert_module.hxx>
#include<Intf_module.hxx>
#include<TShort_module.hxx>
#include<TopOpeBRepDS_module.hxx>
#include<Poly_module.hxx>
#include<TopOpeBRepTool_module.hxx>
#include<Extrema_module.hxx>
#include<Geom2d_module.hxx>
#include<IntCurveSurface_module.hxx>
#include<GeomAdaptor_module.hxx>
#include<Geom2dAdaptor_module.hxx>
#include<BRepBuilderAPI_module.hxx>
#include<GeomPlate_module.hxx>
#include<Adaptor2d_module.hxx>
#include<Geom_module.hxx>
#include<BRepAlgo_module.hxx>
#include<ChFiDS_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 BRepBuilderAPI.i
%import TopoDS.i
%import gp.i
%import Message.i
%import TopTools.i
%import Draft.i
%import Geom.i
%import GeomAbs.i
%import BRepFill.i
%import BRepOffset.i
%import BRepPrimAPI.i
%import GeomFill.i
%import Law.i
%import Approx.i
%pythoncode {
from enum import IntEnum
from OCC.Core.Exception import *
};
/* public enums */
/* end public enums declaration */
/* python proxy classes for enums */
%pythoncode {
};
/* end python proxy for enums */
/* handles */
/* end handles declaration */
/* templates */
%template(BRepOffsetAPI_SequenceOfSequenceOfReal) NCollection_Sequence<TColStd_SequenceOfReal>;
%extend NCollection_Sequence<TColStd_SequenceOfReal> {
%pythoncode {
def __len__(self):
return self.Size()
}
};
%template(BRepOffsetAPI_SequenceOfSequenceOfShape) NCollection_Sequence<TopTools_SequenceOfShape>;
%extend NCollection_Sequence<TopTools_SequenceOfShape> {
%pythoncode {
def __len__(self):
return self.Size()
}
};
/* end templates declaration */
/* typedefs */
typedef NCollection_Sequence<TColStd_SequenceOfReal> BRepOffsetAPI_SequenceOfSequenceOfReal;
typedef NCollection_Sequence<TopTools_SequenceOfShape> BRepOffsetAPI_SequenceOfSequenceOfShape;
typedef BRepBuilderAPI_Sewing BRepOffsetAPI_Sewing;
/* end typedefs declaration */
/*********************************
* class BRepOffsetAPI_DraftAngle *
*********************************/
class BRepOffsetAPI_DraftAngle : public BRepBuilderAPI_ModifyShape {
public:
/****************** BRepOffsetAPI_DraftAngle ******************/
/**** md5 signature: b9af936a89856f8fb520f412bc5baac1 ****/
%feature("compactdefaultargs") BRepOffsetAPI_DraftAngle;
%feature("autodoc", "Constructs an empty algorithm to perform taper-adding transformations on faces of a shape. use the init function to define the shape to be tapered.
Returns
-------
None
") BRepOffsetAPI_DraftAngle;
BRepOffsetAPI_DraftAngle();
/****************** BRepOffsetAPI_DraftAngle ******************/
/**** md5 signature: 0e4d1cafe2cf2c602b747516c3fa76bf ****/
%feature("compactdefaultargs") BRepOffsetAPI_DraftAngle;
%feature("autodoc", "Initializes an algorithm to perform taper-adding transformations on faces of the shape s. s will be referred to as the initial shape of the algorithm.
Parameters
----------
S: TopoDS_Shape
Returns
-------
None
") BRepOffsetAPI_DraftAngle;
BRepOffsetAPI_DraftAngle(const TopoDS_Shape & S);
/****************** Add ******************/
/**** md5 signature: 4ce7b2535b631733771b79ec806daaad ****/
%feature("compactdefaultargs") Add;
%feature("autodoc", "Adds the face f, the direction direction, the angle angle, the plane neutralplane, and the flag flag to the framework created at construction time, and with this data, defines the taper-adding transformation. f is a face, which belongs to the initial shape of this algorithm or to the shape loaded by the function init. only planar, cylindrical or conical faces can be tapered: - if the face f is planar, it is tapered by inclining it through the angle angle about the line of intersection between the plane neutralplane and f. direction indicates the side of neutralplane from which matter is removed if angle is positive or added if angle is negative. - if f is cylindrical or conical, it is transformed in the same way on a single face, resulting in a conical face if f is cylindrical, and a conical or cylindrical face if it is already conical. the taper-adding transformation is propagated from the face f along the series of planar, cylindrical or conical faces containing f, which are tangential to one another. use the function adddone to check if this taper-adding transformation is successful. warning nothing is done if: - the face f does not belong to the initial shape of this algorithm, or - the face f is not planar, cylindrical or conical. exceptions - standard_nullobject if the initial shape is not defined, i.e. if this algorithm has not been initialized with the non-empty constructor or the init function. - standard_constructionerror if the previous call to add has failed. the function adddone ought to have been used to check for this, and the function remove to cancel the results of the unsuccessful taper-adding transformation and to retrieve the previous shape.
Parameters
----------
F: TopoDS_Face
Direction: gp_Dir
Angle: float
NeutralPlane: gp_Pln
Flag: bool,optional
default value is Standard_True
Returns
-------
None
") Add;
void Add(const TopoDS_Face & F, const gp_Dir & Direction, const Standard_Real Angle, const gp_Pln & NeutralPlane, const Standard_Boolean Flag = Standard_True);
/****************** AddDone ******************/
/**** md5 signature: 225f23d0ffea018222bcb24ee9311796 ****/
%feature("compactdefaultargs") AddDone;
%feature("autodoc", "Returns true if the previous taper-adding transformation performed by this algorithm in the last call to add, was successful. if adddone returns false: - the function problematicshape returns the face on which the error occurred, - the function remove has to be used to cancel the results of the unsuccessful taper-adding transformation and to retrieve the previous shape. exceptions standard_nullobject if the initial shape has not been defined, i.e. if this algorithm has not been initialized with the non-empty constructor or the .init function.
Returns
-------
bool
") AddDone;
Standard_Boolean AddDone();
/****************** Build ******************/
/**** md5 signature: 58900897d55d51e349b2e40a091ec26f ****/
%feature("compactdefaultargs") Build;
%feature("autodoc", "Builds the resulting shape (redefined from makeshape).
Parameters
----------
theRange: Message_ProgressRange,optional
default value is Message_ProgressRange()
Returns
-------
None
") Build;
virtual void Build(const Message_ProgressRange & theRange = Message_ProgressRange());
/****************** Clear ******************/
/**** md5 signature: ae54be580b423a6eadbe062e0bdb44c2 ****/
%feature("compactdefaultargs") Clear;
%feature("autodoc", "Cancels the results of all taper-adding transformations performed by this algorithm on the initial shape. these results will have been defined by successive calls to the function add.
Returns
-------
None
") Clear;
void Clear();
/****************** ConnectedFaces ******************/
/**** md5 signature: be55b5929554f7dfde3eec1b9ab3f977 ****/
%feature("compactdefaultargs") ConnectedFaces;
%feature("autodoc", "Returns all the faces which have been added together with the face <f>.
Parameters
----------
F: TopoDS_Face
Returns
-------
TopTools_ListOfShape
") ConnectedFaces;
const TopTools_ListOfShape & ConnectedFaces(const TopoDS_Face & F);
/****************** CorrectWires ******************/
/**** md5 signature: 81ca023a91873cfa63a02fb08e0cbd78 ****/
%feature("compactdefaultargs") CorrectWires;
%feature("autodoc", "No available documentation.
Returns
-------
None
") CorrectWires;
void CorrectWires();
/****************** Generated ******************/
/**** md5 signature: 12bed2c8d73d25dddf738c72a9352693 ****/
%feature("compactdefaultargs") Generated;
%feature("autodoc", "Returns the list of shapes generated from the shape <s>.
Parameters
----------
S: TopoDS_Shape
Returns
-------
TopTools_ListOfShape
") Generated;
virtual const TopTools_ListOfShape & Generated(const TopoDS_Shape & S);
/****************** Init ******************/
/**** md5 signature: 5b69b32485b3d9f82ae4abb9c853c3c7 ****/
%feature("compactdefaultargs") Init;
%feature("autodoc", "Initializes, or reinitializes this taper-adding algorithm with the shape s. s will be referred to as the initial shape of this algorithm.
Parameters
----------
S: TopoDS_Shape
Returns
-------
None
") Init;
void Init(const TopoDS_Shape & S);
/****************** Modified ******************/
/**** md5 signature: 73ccfe97b4ed94547a190332224ffe23 ****/
%feature("compactdefaultargs") Modified;
%feature("autodoc", "Returns the list of shapes modified from the shape <s>.
Parameters
----------
S: TopoDS_Shape
Returns
-------
TopTools_ListOfShape
") Modified;
virtual const TopTools_ListOfShape & Modified(const TopoDS_Shape & S);
/****************** ModifiedFaces ******************/
/**** md5 signature: cd09c09ae96bda548c679db0e897d478 ****/
%feature("compactdefaultargs") ModifiedFaces;
%feature("autodoc", "Returns all the faces on which a modification has been given.
Returns
-------
TopTools_ListOfShape
") ModifiedFaces;
const TopTools_ListOfShape & ModifiedFaces();
/****************** ModifiedShape ******************/
/**** md5 signature: 52b70a5b01905688e2ddbc00ab060e3c ****/
%feature("compactdefaultargs") ModifiedShape;
%feature("autodoc", "Returns the modified shape corresponding to <s>. s can correspond to the entire initial shape or to its subshape. raises exceptions standard_nosuchobject if s is not the initial shape or a subshape of the initial shape to which the transformation has been applied. .
Parameters
----------
S: TopoDS_Shape
Returns
-------
TopoDS_Shape
") ModifiedShape;
virtual TopoDS_Shape ModifiedShape(const TopoDS_Shape & S);
/****************** ProblematicShape ******************/
/**** md5 signature: 4b993ee84b1645cd4a03936d51cfc6ec ****/
%feature("compactdefaultargs") ProblematicShape;
%feature("autodoc", "Returns the shape on which an error occurred after an unsuccessful call to add or when isdone returns false. exceptions standard_nullobject if the initial shape has not been defined, i.e. if this algorithm has not been initialized with the non-empty constructor or the init function.
Returns
-------
TopoDS_Shape
") ProblematicShape;
const TopoDS_Shape ProblematicShape();
/****************** Remove ******************/
/**** md5 signature: 2dda97e74bdcd077a8ecce9d227e7fa7 ****/
%feature("compactdefaultargs") Remove;
%feature("autodoc", "Cancels the taper-adding transformation previously performed by this algorithm on the face f and the series of tangential faces which contain f, and retrieves the shape before the last taper-adding transformation. warning you will have to use this function if the previous call to add fails. use the function adddone to check it. exceptions - standard_nullobject if the initial shape has not been defined, i.e. if this algorithm has not been initialized with the non-empty constructor or the init function. - standard_nosuchobject if f has not been added or has already been removed.
Parameters
----------
F: TopoDS_Face
Returns
-------
None
") Remove;
void Remove(const TopoDS_Face & F);
/****************** Status ******************/
/**** md5 signature: 26dc5cff0cd2168b2136c6f9bb9e099c ****/
%feature("compactdefaultargs") Status;
%feature("autodoc", "Returns an error status when an error has occurred (face, edge or vertex recomputation problem). otherwise returns draft_noerror. the method may be called if adddone returns standard_false, or when isdone returns standard_false.
Returns
-------
Draft_ErrorStatus
") Status;
Draft_ErrorStatus Status();
};
%extend BRepOffsetAPI_DraftAngle {
%pythoncode {
__repr__ = _dumps_object
}
};
/*****************************************
* class BRepOffsetAPI_FindContigousEdges *
*****************************************/
class BRepOffsetAPI_FindContigousEdges {
public:
/****************** BRepOffsetAPI_FindContigousEdges ******************/
/**** md5 signature: fd7a2ffb22004077f79a7dae2c0d118b ****/
%feature("compactdefaultargs") BRepOffsetAPI_FindContigousEdges;
%feature("autodoc", "Initializes an algorithm for identifying contiguous edges on shapes with tolerance as the tolerance of contiguity (defaulted to 1.0e-6). this tolerance value is used to determine whether two edges or sections of edges are coincident. use the function add to define the shapes to be checked. set option to false. this argument (defaulted to true) will serve in subsequent software releases for performing an analysis of degenerated shapes.
Parameters
----------
tolerance: float,optional
default value is 1.0e-06
option: bool,optional
default value is Standard_True
Returns
-------
None
") BRepOffsetAPI_FindContigousEdges;
BRepOffsetAPI_FindContigousEdges(const Standard_Real tolerance = 1.0e-06, const Standard_Boolean option = Standard_True);
/****************** Add ******************/
/**** md5 signature: e2be6f2074943772e403ebcbe671347a ****/
%feature("compactdefaultargs") Add;
%feature("autodoc", "Adds the shape shape to the list of shapes to be checked by this algorithm. once all the shapes to be checked have been added, use the function perform to find the contiguous edges and the function contigousedge to return these edges.
Parameters
----------
shape: TopoDS_Shape
Returns
-------
None
") Add;
void Add(const TopoDS_Shape & shape);
/****************** ContigousEdge ******************/
/**** md5 signature: 528f0ebefe61a096548f88451970603d ****/
%feature("compactdefaultargs") ContigousEdge;
%feature("autodoc", "Returns the contiguous edge of index index found by the function perform on the shapes added to this algorithm. exceptions standard_outofrange if: - index is less than 1, or - index is greater than the number of contiguous edges found by the function perform on the shapes added to this algorithm.
Parameters
----------
index: int
Returns
-------
TopoDS_Edge
") ContigousEdge;
const TopoDS_Edge ContigousEdge(const Standard_Integer index);
/****************** ContigousEdgeCouple ******************/
/**** md5 signature: 783b24657c04ecf4547ffd8cfddcc368 ****/
%feature("compactdefaultargs") ContigousEdgeCouple;
%feature("autodoc", "Returns a list of edges coincident with the contiguous edge of index index found by the function perform. there are as many edges in the list as there are faces adjacent to this contiguous edge. exceptions standard_outofrange if: - index is less than 1, or - index is greater than the number of contiguous edges found by the function perform on the shapes added to this algorithm.
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 a degenerated shape.
Parameters
----------
index: int
Returns
-------
TopoDS_Shape
") DegeneratedShape;
const TopoDS_Shape DegeneratedShape(const Standard_Integer index);
/****************** Dump ******************/
/**** md5 signature: 15b4b2e195645aebb43170ff7f15952a ****/
%feature("compactdefaultargs") Dump;
%feature("autodoc", "Dump properties of resulting shape.
Returns
-------
None
") Dump;
void Dump();
/****************** Init ******************/
/**** md5 signature: dd6c1b1cc9e67e536ec1bfeda1eb7f2d ****/
%feature("compactdefaultargs") Init;
%feature("autodoc", "Initializes this algorithm for identifying contiguous edges on shapes using the tolerance of contiguity tolerance. this tolerance value is used to determine whether two edges or sections of edges are coincident. use the function add to define the shapes to be checked. sets <option> to false.
Parameters
----------
tolerance: float
option: bool
Returns
-------
None
") Init;
void Init(const Standard_Real tolerance, const Standard_Boolean option);
/****************** 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", "Returns true if the copy of the initial shape shape was modified by the function perform (i.e. if one or more of its edges was broken down into contiguous and non-contiguous sections). warning returns false if shape is not one of the initial shapes added to this algorithm.
Parameters
----------
shape: TopoDS_Shape
Returns
-------
bool
") IsModified;
Standard_Boolean IsModified(const TopoDS_Shape & shape);
/****************** Modified ******************/
/**** md5 signature: 8eae36e55014fa2f45331a4af35cda4c ****/
%feature("compactdefaultargs") Modified;
%feature("autodoc", "Gives a modifieded shape raises nosuchobject if shape has not been modified.
Parameters
----------
shape: TopoDS_Shape
Returns
-------
TopoDS_Shape
") Modified;
const TopoDS_Shape Modified(const TopoDS_Shape & shape);
/****************** NbContigousEdges ******************/
/**** md5 signature: c293fac1d421e2d1f7207054b4a45923 ****/
%feature("compactdefaultargs") NbContigousEdges;
%feature("autodoc", "Returns the number of contiguous edges found by the function perform on the shapes added to this algorithm.
Returns
-------
int
") NbContigousEdges;
Standard_Integer NbContigousEdges();
/****************** NbDegeneratedShapes ******************/
/**** md5 signature: 002576d80bfb4575f6cdfeeff5b81a1e ****/
%feature("compactdefaultargs") NbDegeneratedShapes;
%feature("autodoc", "Gives the number of degenerated shapes.
Returns
-------
int
") NbDegeneratedShapes;
Standard_Integer NbDegeneratedShapes();
/****************** Perform ******************/
/**** md5 signature: c04b01412cba7220c024b5eb4532697f ****/
%feature("compactdefaultargs") Perform;
%feature("autodoc", "Finds coincident parts of edges of two or more shapes added to this algorithm and breaks down these edges into contiguous and non-contiguous sections on copies of the initial shapes. the function contigousedge returns contiguous edges. the function modified can be used to return modified copies of the initial shapes where one or more edges were broken down into contiguous and non-contiguous sections. warning this function must be used once all the shapes to be checked have been added. it is not possible to add further shapes subsequently and then to repeat the call to perform.
Returns
-------
None
") Perform;
void Perform();
/****************** SectionToBoundary ******************/
/**** md5 signature: 8753cd22e70a557633e4602d07baeefe ****/
%feature("compactdefaultargs") SectionToBoundary;
%feature("autodoc", "Returns the edge on the initial shape, of which the modified copy contains the edge section. section is coincident with a contiguous edge found by the function perform. use the function contigousedgecouple to obtain a valid section. this information is useful for verification purposes, since it provides a means of determining the surface to which the contiguous edge belongs. exceptions standard_nosuchobject if section is not coincident with a contiguous edge. use the function contigousedgecouple to obtain a valid section.
Parameters
----------
section: TopoDS_Edge
Returns
-------
TopoDS_Edge
") SectionToBoundary;
const TopoDS_Edge SectionToBoundary(const TopoDS_Edge & section);
};
%extend BRepOffsetAPI_FindContigousEdges {
%pythoncode {
__repr__ = _dumps_object
@methodnotwrapped
def NbEdges(self):
pass
}
};
/********************************
* class BRepOffsetAPI_MakeDraft *
********************************/
class BRepOffsetAPI_MakeDraft : public BRepBuilderAPI_MakeShape {
public:
/****************** BRepOffsetAPI_MakeDraft ******************/
/**** md5 signature: 71eb0e38473fd7d62078ab8ae3d81222 ****/
%feature("compactdefaultargs") BRepOffsetAPI_MakeDraft;
%feature("autodoc", "Constructs the draft surface object defined by the shape shape, the direction dir, and the angle angle. shape must be a topods_wire, topo_ds_face or topods_shell with free boundaries. exceptions standard_notdone if shape is not a topods_wire, topo_ds_face or topods_shell with free boundaries.
Parameters
----------
Shape: TopoDS_Shape
Dir: gp_Dir
Angle: float
Returns
-------
None
") BRepOffsetAPI_MakeDraft;
BRepOffsetAPI_MakeDraft(const TopoDS_Shape & Shape, const gp_Dir & Dir, const Standard_Real Angle);
/****************** Generated ******************/
/**** md5 signature: 12bed2c8d73d25dddf738c72a9352693 ****/
%feature("compactdefaultargs") Generated;
%feature("autodoc", "Returns the list of shapes generated from the shape <s>.
Parameters
----------
S: TopoDS_Shape
Returns
-------
TopTools_ListOfShape
") Generated;
virtual const TopTools_ListOfShape & Generated(const TopoDS_Shape & S);
/****************** Perform ******************/
/**** md5 signature: b03f32ebc120d00e3e8e32d44b202b9d ****/
%feature("compactdefaultargs") Perform;
%feature("autodoc", "Performs the draft using the length lengthmax as the maximum length for the corner edge between two draft faces.
Parameters
----------
LengthMax: float
Returns
-------
None
") Perform;
void Perform(const Standard_Real LengthMax);
/****************** Perform ******************/
/**** md5 signature: 3a80e47101026da2c90ae735de0ac1b9 ****/
%feature("compactdefaultargs") Perform;
%feature("autodoc", "Performs the draft up to the surface surface. if keepinsidesurface is true, the part of surface inside the draft is kept in the result.
Parameters
----------
Surface: Geom_Surface
KeepInsideSurface: bool,optional
default value is Standard_True
Returns
-------
None
") Perform;
void Perform(const opencascade::handle<Geom_Surface> & Surface, const Standard_Boolean KeepInsideSurface = Standard_True);
/****************** Perform ******************/
/**** md5 signature: c18fafced10e4c987e315cfc1b3d96ad ****/
%feature("compactdefaultargs") Perform;
%feature("autodoc", "Performs the draft up to the shape stopshape. if keepoutside is true, the part of stopshape which is outside the draft is kept in the result.
Parameters
----------
StopShape: TopoDS_Shape
KeepOutSide: bool,optional
default value is Standard_True
Returns
-------
None
") Perform;
void Perform(const TopoDS_Shape & StopShape, const Standard_Boolean KeepOutSide = Standard_True);
/****************** SetDraft ******************/
/**** md5 signature: 6a0b2e71733b262480aa38daaecff626 ****/
%feature("compactdefaultargs") SetDraft;
%feature("autodoc", "Sets the direction of the draft for this object. if isinternal is true, the draft is internal to the argument shape used in the constructor.
Parameters
----------
IsInternal: bool,optional
default value is Standard_False
Returns
-------
None
") SetDraft;
void SetDraft(const Standard_Boolean IsInternal = Standard_False);
/****************** SetOptions ******************/
/**** md5 signature: 736d57b77de1cd53364406245ccef568 ****/
%feature("compactdefaultargs") SetOptions;
%feature("autodoc", "Sets the options of this draft tool. if a transition has to be performed, it can be defined by the mode style as rightcorner or roundcorner, rightcorner being a corner defined by a sharp angle, and roundcorner being a rounded corner. anglemin is an angular tolerance used to detect whether a transition has to be performed or not. anglemax sets the maximum value within which a rightcorner transition can be performed. anglemin and anglemax are expressed in radians.
Parameters
----------
Style: BRepBuilderAPI_TransitionMode,optional
default value is BRepBuilderAPI_RightCorner
AngleMin: float,optional
default value is 0.01
AngleMax: float,optional
default value is 3.0
Returns
-------
None
") SetOptions;
void SetOptions(const BRepBuilderAPI_TransitionMode Style = BRepBuilderAPI_RightCorner, const Standard_Real AngleMin = 0.01, const Standard_Real AngleMax = 3.0);
/****************** Shell ******************/
/**** md5 signature: 3ea4686086a18491532865f1cfbce9ad ****/
%feature("compactdefaultargs") Shell;
%feature("autodoc", "Returns the shell resulting from performance of the draft along the wire.
Returns
-------
TopoDS_Shell
") Shell;
TopoDS_Shell Shell();
};
%extend BRepOffsetAPI_MakeDraft {
%pythoncode {
__repr__ = _dumps_object
}
};
/**********************************
* class BRepOffsetAPI_MakeEvolved *
**********************************/
class BRepOffsetAPI_MakeEvolved : public BRepBuilderAPI_MakeShape {
public:
/****************** BRepOffsetAPI_MakeEvolved ******************/
/**** md5 signature: 10d85cbe93d42416417568f3ca2d5c30 ****/
%feature("compactdefaultargs") BRepOffsetAPI_MakeEvolved;
%feature("autodoc", "No available documentation.
Returns
-------
None
") BRepOffsetAPI_MakeEvolved;
BRepOffsetAPI_MakeEvolved();
/****************** BRepOffsetAPI_MakeEvolved ******************/
/**** md5 signature: ca863b02acd410c7e5d5badc6d5c93f9 ****/
%feature("compactdefaultargs") BRepOffsetAPI_MakeEvolved;
%feature("autodoc", "Constructs an evolved shape by sweeping the profile (theprofile) along the spine (thespine). thespine can be shape only of type wire or face. see description to this class for detailed information.
Parameters
----------
theSpine: TopoDS_Shape
theProfile: TopoDS_Wire
theJoinType: GeomAbs_JoinType,optional
default value is GeomAbs_Arc
theIsAxeProf: bool,optional
default value is Standard_True
theIsSolid: bool,optional
default value is Standard_False
theIsProfOnSpine: bool,optional
default value is Standard_False
theTol: float,optional
default value is 0.0000001
theIsVolume: bool,optional
default value is Standard_False
theRunInParallel: bool,optional
default value is Standard_False
Returns
-------
None
") BRepOffsetAPI_MakeEvolved;
BRepOffsetAPI_MakeEvolved(const TopoDS_Shape & theSpine, const TopoDS_Wire & theProfile, const GeomAbs_JoinType theJoinType = GeomAbs_Arc, const Standard_Boolean theIsAxeProf = Standard_True, const Standard_Boolean theIsSolid = Standard_False, const Standard_Boolean theIsProfOnSpine = Standard_False, const Standard_Real theTol = 0.0000001, const Standard_Boolean theIsVolume = Standard_False, const Standard_Boolean theRunInParallel = Standard_False);
/****************** Bottom ******************/
/**** md5 signature: 25476ceb1dec30bd7775d9279e3f641c ****/
%feature("compactdefaultargs") Bottom;
%feature("autodoc", "Return the face bottom if <solid> is true in the constructor.
Returns
-------
TopoDS_Shape
") Bottom;
const TopoDS_Shape Bottom();
/****************** Build ******************/
/**** md5 signature: 58900897d55d51e349b2e40a091ec26f ****/
%feature("compactdefaultargs") Build;
%feature("autodoc", "Builds the resulting shape (redefined from makeshape).
Parameters
----------
theRange: Message_ProgressRange,optional
default value is Message_ProgressRange()
Returns
-------
None
") Build;
virtual void Build(const Message_ProgressRange & theRange = Message_ProgressRange());
/****************** Evolved ******************/
/**** md5 signature: 9cd16375e762072934864900214c9cab ****/
%feature("compactdefaultargs") Evolved;
%feature("autodoc", "No available documentation.
Returns
-------
BRepFill_Evolved
") Evolved;
const BRepFill_Evolved & Evolved();
/****************** GeneratedShapes ******************/
/**** md5 signature: d6b410f91bd0b638e68b4f66ed161f82 ****/
%feature("compactdefaultargs") GeneratedShapes;
%feature("autodoc", "Returns the shapes created from a subshape <spineshape> of the spine and a subshape <profshape> on the profile.
Parameters
----------
SpineShape: TopoDS_Shape
ProfShape: TopoDS_Shape
Returns
-------
TopTools_ListOfShape
") GeneratedShapes;
const TopTools_ListOfShape & GeneratedShapes(const TopoDS_Shape & SpineShape, const TopoDS_Shape & ProfShape);
/****************** Top ******************/
/**** md5 signature: c5b73d85ae980e083fd62982344b1f23 ****/
%feature("compactdefaultargs") Top;
%feature("autodoc", "Return the face top if <solid> is true in the constructor.
Returns
-------
TopoDS_Shape
") Top;
const TopoDS_Shape Top();
};
%extend BRepOffsetAPI_MakeEvolved {
%pythoncode {
__repr__ = _dumps_object
}
};
/**********************************
* class BRepOffsetAPI_MakeFilling *
**********************************/
class BRepOffsetAPI_MakeFilling : public BRepBuilderAPI_MakeShape {
public:
/****************** BRepOffsetAPI_MakeFilling ******************/
/**** md5 signature: 6b2c1458dee21e3098205eace85ff1c2 ****/
%feature("compactdefaultargs") BRepOffsetAPI_MakeFilling;
%feature("autodoc", "Constructs a wire filling object defined by - the energy minimizing criterion degree - the number of points on the curve nbpntsoncur - the number of iterations nbiter - the boolean anisotropie - the 2d tolerance tol2d - the 3d tolerance tol3d - the angular tolerance tolang - the tolerance for curvature tolcur - the highest polynomial degree maxdeg - the greatest number of segments maxseg. if the boolean anistropie is true, the algorithm's performance is better in cases where the ratio of the length u and the length v indicate a great difference between the two. in other words, when the surface is, for example, extremely long.
Parameters
----------
Degree: int,optional
default value is 3
NbPtsOnCur: int,optional
default value is 15
NbIter: int,optional
default value is 2
Anisotropie: bool,optional
default value is Standard_False
Tol2d: float,optional
default value is 0.00001
Tol3d: float,optional
default value is 0.0001
TolAng: float,optional
default value is 0.01
TolCurv: float,optional
default value is 0.1
MaxDeg: int,optional
default value is 8
MaxSegments: int,optional
default value is 9
Returns
-------
None
") BRepOffsetAPI_MakeFilling;
BRepOffsetAPI_MakeFilling(const Standard_Integer Degree = 3, const Standard_Integer NbPtsOnCur = 15, const Standard_Integer NbIter = 2, const Standard_Boolean Anisotropie = Standard_False, const Standard_Real Tol2d = 0.00001, const Standard_Real Tol3d = 0.0001, const Standard_Real TolAng = 0.01, const Standard_Real TolCurv = 0.1, const Standard_Integer MaxDeg = 8, const Standard_Integer MaxSegments = 9);
/****************** Add ******************/
/**** md5 signature: f3f101643ae89de07cd1205b58a9a0bc ****/
%feature("compactdefaultargs") Add;
%feature("autodoc", "Adds a new constraint which also defines an edge of the wire of the face order: order of the constraint: geomabs_c0 : the surface has to pass by 3d representation of the edge geomabs_g1 : the surface has to pass by 3d representation of the edge and to respect tangency with the first face of the edge geomabs_g2 : the surface has to pass by 3d representation of the edge and to respect tangency and curvature with the first face of the edge. raises constructionerror if the edge has no representation on a face and order is geomabs_g1 or geomabs_g2.
Parameters
----------
Constr: TopoDS_Edge
Order: GeomAbs_Shape
IsBound: bool,optional
default value is Standard_True
Returns
-------
int
") Add;
Standard_Integer Add(const TopoDS_Edge & Constr, const GeomAbs_Shape Order, const Standard_Boolean IsBound = Standard_True);
/****************** Add ******************/
/**** md5 signature: 415312c3d021976e6e2f3b6a96253fb7 ****/
%feature("compactdefaultargs") Add;
%feature("autodoc", "Adds a new constraint which also defines an edge of the wire of the face order: order of the constraint: geomabs_c0 : the surface has to pass by 3d representation of the edge geomabs_g1 : the surface has to pass by 3d representation of the edge and to respect tangency with the given face geomabs_g2 : the surface has to pass by 3d representation of the edge and to respect tangency and curvature with the given face. raises constructionerror if the edge has no 2d representation on the given face.
Parameters
----------
Constr: TopoDS_Edge
Support: TopoDS_Face
Order: GeomAbs_Shape
IsBound: bool,optional
default value is Standard_True
Returns
-------
int
") Add;
Standard_Integer Add(const TopoDS_Edge & Constr, const TopoDS_Face & Support, const GeomAbs_Shape Order, const Standard_Boolean IsBound = Standard_True);
/****************** Add ******************/
/**** md5 signature: c110c3c507d8423f3ffde002d65004bf ****/
%feature("compactdefaultargs") Add;
%feature("autodoc", "Adds a free constraint on a face. the corresponding edge has to be automatically recomputed. it is always a bound.
Parameters
----------
Support: TopoDS_Face
Order: GeomAbs_Shape
Returns
-------
int
") Add;
Standard_Integer Add(const TopoDS_Face & Support, const GeomAbs_Shape Order);
/****************** Add ******************/
/**** md5 signature: 1323f2a6b2ca8774ee472101d9518362 ****/
%feature("compactdefaultargs") Add;
%feature("autodoc", "Adds a punctual constraint.
Parameters
----------
Point: gp_Pnt
Returns
-------
int
") Add;
Standard_Integer Add(const gp_Pnt & Point);
/****************** Add ******************/
/**** md5 signature: 66afaf29b06657fd99d38717aeeeb9f6 ****/
%feature("compactdefaultargs") Add;
%feature("autodoc", "Adds a punctual constraint.
Parameters
----------
U: float
V: float
Support: TopoDS_Face
Order: GeomAbs_Shape
Returns
-------
int
") Add;
Standard_Integer Add(const Standard_Real U, const Standard_Real V, const TopoDS_Face & Support, const GeomAbs_Shape Order);
/****************** Build ******************/
/**** md5 signature: 58900897d55d51e349b2e40a091ec26f ****/
%feature("compactdefaultargs") Build;