forked from tpaviot/pythonocc-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBRepFilletAPI.i
More file actions
2202 lines (1790 loc) · 72.9 KB
/
BRepFilletAPI.i
File metadata and controls
2202 lines (1790 loc) · 72.9 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-2020 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 BREPFILLETAPIDOCSTRING
"BRepFilletAPI module, see official documentation at
https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_brepfilletapi.html"
%enddef
%module (package="OCC.Core", docstring=BREPFILLETAPIDOCSTRING) BRepFilletAPI
%{
#ifdef WNT
#pragma warning(disable : 4716)
#endif
%}
%include ../common/CommonIncludes.i
%include ../common/ExceptionCatcher.i
%include ../common/FunctionTransformers.i
%include ../common/Operators.i
%include ../common/OccHandle.i
%{
#include<BRepFilletAPI_module.hxx>
//Dependencies
#include<Standard_module.hxx>
#include<NCollection_module.hxx>
#include<BRepBuilderAPI_module.hxx>
#include<TopoDS_module.hxx>
#include<ChFiDS_module.hxx>
#include<TopTools_module.hxx>
#include<ChFi2d_module.hxx>
#include<TopOpeBRepBuild_module.hxx>
#include<ChFi3d_module.hxx>
#include<Law_module.hxx>
#include<TColgp_module.hxx>
#include<Geom_module.hxx>
#include<GeomAbs_module.hxx>
#include<Adaptor3d_module.hxx>
#include<GeomAdaptor_module.hxx>
#include<Geom2d_module.hxx>
#include<GeomFill_module.hxx>
#include<BRep_module.hxx>
#include<Geom2d_module.hxx>
#include<BRepAdaptor_module.hxx>
#include<Adaptor2d_module.hxx>
#include<BRepTools_module.hxx>
#include<Approx_module.hxx>
#include<TopLoc_module.hxx>
#include<TopOpeBRepDS_module.hxx>
#include<Extrema_module.hxx>
#include<Approx_module.hxx>
#include<BRepBlend_module.hxx>
#include<Message_module.hxx>
#include<TopOpeBRepTool_module.hxx>
#include<Geom2dAdaptor_module.hxx>
#include<BRepAdaptor_module.hxx>
#include<AppParCurves_module.hxx>
#include<Bnd_module.hxx>
#include<Poly_module.hxx>
#include<TColGeom_module.hxx>
#include<TShort_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 ChFiDS.i
%import TopTools.i
%import ChFi2d.i
%import TopOpeBRepBuild.i
%import ChFi3d.i
%import Law.i
%import TColgp.i
%import Geom.i
%import GeomAbs.i
%pythoncode {
from enum import IntEnum
from OCC.Core.Exception import *
};
/* public enums */
/* end public enums declaration */
/* python proy classes for enums */
%pythoncode {
};
/* end python proxy for enums */
/* handles */
/* end handles declaration */
/* templates */
/* end templates declaration */
/* typedefs */
/* end typedefs declaration */
/*************************************
* class BRepFilletAPI_LocalOperation *
*************************************/
%nodefaultctor BRepFilletAPI_LocalOperation;
class BRepFilletAPI_LocalOperation : public BRepBuilderAPI_MakeShape {
public:
/****************** Abscissa ******************/
/**** md5 signature: 685e083950278023fe2b9d91e626c310 ****/
%feature("compactdefaultargs") Abscissa;
%feature("autodoc", "Returns the abscissa of the vertex v on the contour of index ic.
Parameters
----------
IC: int
V: TopoDS_Vertex
Returns
-------
float
") Abscissa;
virtual Standard_Real Abscissa(const Standard_Integer IC, const TopoDS_Vertex & V);
/****************** Add ******************/
/**** md5 signature: fa4475fe7d476e3c0ff5b6872b6ef406 ****/
%feature("compactdefaultargs") Add;
%feature("autodoc", "Adds a contour in the builder (builds a contour of tangent edges).
Parameters
----------
E: TopoDS_Edge
Returns
-------
None
") Add;
virtual void Add(const TopoDS_Edge & E);
/****************** Closed ******************/
/**** md5 signature: f2d784ec091d16f009d0d4abc551e18b ****/
%feature("compactdefaultargs") Closed;
%feature("autodoc", "Returns true if the contour of index ic is closed.
Parameters
----------
IC: int
Returns
-------
bool
") Closed;
virtual Standard_Boolean Closed(const Standard_Integer IC);
/****************** ClosedAndTangent ******************/
/**** md5 signature: 1df34df9ea5699ae9fcdd7a0c6ab3c55 ****/
%feature("compactdefaultargs") ClosedAndTangent;
%feature("autodoc", "Returns true if the contour of index ic is closed an tangent.
Parameters
----------
IC: int
Returns
-------
bool
") ClosedAndTangent;
virtual Standard_Boolean ClosedAndTangent(const Standard_Integer IC);
/****************** Contour ******************/
/**** md5 signature: 1607262cdb3fdc43409df2c8a047c158 ****/
%feature("compactdefaultargs") Contour;
%feature("autodoc", "Returns the index of the contour containing the edge e, returns 0 if e doesn't belong to any contour.
Parameters
----------
E: TopoDS_Edge
Returns
-------
int
") Contour;
virtual Standard_Integer Contour(const TopoDS_Edge & E);
/****************** Edge ******************/
/**** md5 signature: 2a378aa85054fbc60ebbc3bdb4291706 ****/
%feature("compactdefaultargs") Edge;
%feature("autodoc", "Returns the edge j in the contour i.
Parameters
----------
I: int
J: int
Returns
-------
TopoDS_Edge
") Edge;
virtual const TopoDS_Edge Edge(const Standard_Integer I, const Standard_Integer J);
/****************** FirstVertex ******************/
/**** md5 signature: edb62d0dca7e84966df1dbe4e0db231c ****/
%feature("compactdefaultargs") FirstVertex;
%feature("autodoc", "Returns the first vertex of the contour of index ic.
Parameters
----------
IC: int
Returns
-------
TopoDS_Vertex
") FirstVertex;
virtual TopoDS_Vertex FirstVertex(const Standard_Integer IC);
/****************** LastVertex ******************/
/**** md5 signature: 2e51a665fa486cdad69aedcddc5ea895 ****/
%feature("compactdefaultargs") LastVertex;
%feature("autodoc", "Returns the last vertex of the contour of index ic.
Parameters
----------
IC: int
Returns
-------
TopoDS_Vertex
") LastVertex;
virtual TopoDS_Vertex LastVertex(const Standard_Integer IC);
/****************** Length ******************/
/**** md5 signature: 0f5990c23bfb7630f4521985cdc20661 ****/
%feature("compactdefaultargs") Length;
%feature("autodoc", "Returns the length the contour of index ic.
Parameters
----------
IC: int
Returns
-------
float
") Length;
virtual Standard_Real Length(const Standard_Integer IC);
/****************** NbContours ******************/
/**** md5 signature: 216a86c7df03a7204f8e36c8397a6655 ****/
%feature("compactdefaultargs") NbContours;
%feature("autodoc", "Number of contours.
Returns
-------
int
") NbContours;
virtual Standard_Integer NbContours();
/****************** NbEdges ******************/
/**** md5 signature: ff08d209d81fcffcec0e93a4234fa2ef ****/
%feature("compactdefaultargs") NbEdges;
%feature("autodoc", "Number of edges in the contour i.
Parameters
----------
I: int
Returns
-------
int
") NbEdges;
virtual Standard_Integer NbEdges(const Standard_Integer I);
/****************** NbSurf ******************/
/**** md5 signature: 94758173fa1bc551c9a4816d5c798655 ****/
%feature("compactdefaultargs") NbSurf;
%feature("autodoc", "No available documentation.
Parameters
----------
IC: int
Returns
-------
int
") NbSurf;
virtual Standard_Integer NbSurf(const Standard_Integer IC);
/****************** RelativeAbscissa ******************/
/**** md5 signature: 9ec2ec7fe6fa93a375ae95e6fb6df5c7 ****/
%feature("compactdefaultargs") RelativeAbscissa;
%feature("autodoc", "Returns the relative abscissa([0.,1.]) of the vertex v on the contour of index ic.
Parameters
----------
IC: int
V: TopoDS_Vertex
Returns
-------
float
") RelativeAbscissa;
virtual Standard_Real RelativeAbscissa(const Standard_Integer IC, const TopoDS_Vertex & V);
/****************** Remove ******************/
/**** md5 signature: 72f5f0c292d497568578946495770c65 ****/
%feature("compactdefaultargs") Remove;
%feature("autodoc", "Remove the contour containing the edge e.
Parameters
----------
E: TopoDS_Edge
Returns
-------
None
") Remove;
virtual void Remove(const TopoDS_Edge & E);
/****************** Reset ******************/
/**** md5 signature: aae28a27b63a433889d7410d7f53fa36 ****/
%feature("compactdefaultargs") Reset;
%feature("autodoc", "Reset all the fields updated by build operation and leave the algorithm in the same state than before build call. it allows contours and radius modifications to build the result another time.
Returns
-------
None
") Reset;
virtual void Reset();
/****************** ResetContour ******************/
/**** md5 signature: 3360e863d75166c0b2ec93eb0a91d780 ****/
%feature("compactdefaultargs") ResetContour;
%feature("autodoc", "Reset the contour of index ic, there is nomore information in the contour.
Parameters
----------
IC: int
Returns
-------
None
") ResetContour;
virtual void ResetContour(const Standard_Integer IC);
/****************** Sect ******************/
/**** md5 signature: 588b4bb4aa019a8430a3bad93265ed84 ****/
%feature("compactdefaultargs") Sect;
%feature("autodoc", "No available documentation.
Parameters
----------
IC: int
IS: int
Returns
-------
opencascade::handle<ChFiDS_SecHArray1>
") Sect;
virtual opencascade::handle<ChFiDS_SecHArray1> Sect(const Standard_Integer IC, const Standard_Integer IS);
/****************** Simulate ******************/
/**** md5 signature: b64707fafea4ebf580114b623febba83 ****/
%feature("compactdefaultargs") Simulate;
%feature("autodoc", "No available documentation.
Parameters
----------
IC: int
Returns
-------
None
") Simulate;
virtual void Simulate(const Standard_Integer IC);
};
%extend BRepFilletAPI_LocalOperation {
%pythoncode {
__repr__ = _dumps_object
}
};
/***********************************
* class BRepFilletAPI_MakeFillet2d *
***********************************/
class BRepFilletAPI_MakeFillet2d : public BRepBuilderAPI_MakeShape {
public:
/****************** BRepFilletAPI_MakeFillet2d ******************/
/**** md5 signature: 21c99b8730600fc6f2b7825df55cfd09 ****/
%feature("compactdefaultargs") BRepFilletAPI_MakeFillet2d;
%feature("autodoc", "Initializes an empty algorithm for computing fillets and chamfers. the face on which the fillets and chamfers are built is defined using the init function. the vertices on which fillets or chamfers are built are defined using the addfillet or addchamfer function. warning the status of the initialization, as given by the status function, can be one of the following: - chfi2d_ready if the initialization is correct, - chfi2d_notplanar if f is not planar, - chfi2d_noface if f is a null face.
Returns
-------
None
") BRepFilletAPI_MakeFillet2d;
BRepFilletAPI_MakeFillet2d();
/****************** BRepFilletAPI_MakeFillet2d ******************/
/**** md5 signature: 04e9ad8a32ac3c41b5c80a5c2b17d511 ****/
%feature("compactdefaultargs") BRepFilletAPI_MakeFillet2d;
%feature("autodoc", "Initializes an algorithm for computing fillets and chamfers on the face f. the vertices on which fillets or chamfers are built are defined using the addfillet or addchamfer function. warning the status of the initialization, as given by the status function, can be one of the following: - chfi2d_ready if the initialization is correct, - chfi2d_notplanar if f is not planar, - chfi2d_noface if f is a null face.
Parameters
----------
F: TopoDS_Face
Returns
-------
None
") BRepFilletAPI_MakeFillet2d;
BRepFilletAPI_MakeFillet2d(const TopoDS_Face & F);
/****************** AddChamfer ******************/
/**** md5 signature: 8ab56100a5f8fd93f4f3849863205ed2 ****/
%feature("compactdefaultargs") AddChamfer;
%feature("autodoc", "Adds a chamfer on the face modified by this algorithm between the two adjacent edges e1 and e2, where the extremities of the chamfer are on e1 and e2 at distances d1 and d2 respectively in cases where the edges are not rectilinear, distances are measured using the curvilinear abscissa of the edges and the angle is measured with respect to the tangent at the corresponding point. the angle ang is given in radians. this function returns the chamfer and builds the resulting face.
Parameters
----------
E1: TopoDS_Edge
E2: TopoDS_Edge
D1: float
D2: float
Returns
-------
TopoDS_Edge
") AddChamfer;
TopoDS_Edge AddChamfer(const TopoDS_Edge & E1, const TopoDS_Edge & E2, const Standard_Real D1, const Standard_Real D2);
/****************** AddChamfer ******************/
/**** md5 signature: 08ba1f2a5a80f3f12155f274e5ccf476 ****/
%feature("compactdefaultargs") AddChamfer;
%feature("autodoc", "Adds a chamfer on the face modified by this algorithm between the two edges connected by the vertex v, where e is one of the two edges. the chamfer makes an angle ang with e and one of its extremities is on e at distance d from v. in cases where the edges are not rectilinear, distances are measured using the curvilinear abscissa of the edges and the angle is measured with respect to the tangent at the corresponding point. the angle ang is given in radians. this function returns the chamfer and builds the resulting face. warning the status of the construction, as given by the status function, can be one of the following: - chfi2d_isdone if the chamfer is built, - chfi2d_parameterserror if d1, d2, d or ang is less than or equal to zero, - chfi2d_connexionerror if: - the edge e, e1 or e2 does not belong to the initial face, or - the edges e1 and e2 are not adjacent, or - the vertex v is not one of the limit points of the edge e, - chfi2d_computationerror if the parameters of the chamfer are too large to build a chamfer between the two adjacent edges, - chfi2d_notauthorized if: - the edge e1, e2 or one of the two edges connected to v is a fillet or chamfer, or - a curve other than a straight line or an arc of a circle is used as e, e1 or e2. do not use the returned chamfer if the status of the construction is not chfi2d_isdone.
Parameters
----------
E: TopoDS_Edge
V: TopoDS_Vertex
D: float
Ang: float
Returns
-------
TopoDS_Edge
") AddChamfer;
TopoDS_Edge AddChamfer(const TopoDS_Edge & E, const TopoDS_Vertex & V, const Standard_Real D, const Standard_Real Ang);
/****************** AddFillet ******************/
/**** md5 signature: 0537608457b4aa5c0d47332a8668ac27 ****/
%feature("compactdefaultargs") AddFillet;
%feature("autodoc", "Adds a fillet of radius radius between the two edges adjacent to the vertex v on the face modified by this algorithm. the two edges do not need to be rectilinear. this function returns the fillet and builds the resulting face. warning the status of the construction, as given by the status function, can be one of the following: - chfi2d_isdone if the fillet is built, - chfi2d_connexionerror if v does not belong to the initial face, - chfi2d_computationerror if radius is too large to build a fillet between the two adjacent edges, - chfi2d_notauthorized - if one of the two edges connected to v is a fillet or chamfer, or - if a curve other than a straight line or an arc of a circle is used as e, e1 or e2. do not use the returned fillet if the status of the construction is not chfi2d_isdone. exceptions standard_negativevalue if radius is less than or equal to zero.
Parameters
----------
V: TopoDS_Vertex
Radius: float
Returns
-------
TopoDS_Edge
") AddFillet;
TopoDS_Edge AddFillet(const TopoDS_Vertex & V, const Standard_Real Radius);
/****************** BasisEdge ******************/
/**** md5 signature: c244b8627d4ba515112f85786021bf15 ****/
%feature("compactdefaultargs") BasisEdge;
%feature("autodoc", "Returns the basis edge on the face modified by this algorithm from which the chamfered or filleted edge e is built. if e has not been modified, this function returns e. warning e is returned if it does not belong to the initial face.
Parameters
----------
E: TopoDS_Edge
Returns
-------
TopoDS_Edge
") BasisEdge;
const TopoDS_Edge BasisEdge(const TopoDS_Edge & E);
/****************** Build ******************/
/**** md5 signature: 5ad4569f96377eec0c61c7f10d7c7aa9 ****/
%feature("compactdefaultargs") Build;
%feature("autodoc", "Update the result and set the done flag.
Returns
-------
None
") Build;
virtual void Build();
/****************** ChamferEdges ******************/
/**** md5 signature: 66edbe74780ce3ab689192aa27e7b595 ****/
%feature("compactdefaultargs") ChamferEdges;
%feature("autodoc", "Returns the table of chamfers on the face modified by this algorithm.
Returns
-------
TopTools_SequenceOfShape
") ChamferEdges;
const TopTools_SequenceOfShape & ChamferEdges();
/****************** DescendantEdge ******************/
/**** md5 signature: aeb8944df5eff8bc10450ec6f2cf0e76 ****/
%feature("compactdefaultargs") DescendantEdge;
%feature("autodoc", "Returns the chamfered or filleted edge built from the edge e on the face modified by this algorithm. if e has not been modified, this function returns e. exceptions standard_nosuchobject if the edge e does not belong to the initial face.
Parameters
----------
E: TopoDS_Edge
Returns
-------
TopoDS_Edge
") DescendantEdge;
const TopoDS_Edge DescendantEdge(const TopoDS_Edge & E);
/****************** FilletEdges ******************/
/**** md5 signature: 937d4c9906e8077f48db789584514415 ****/
%feature("compactdefaultargs") FilletEdges;
%feature("autodoc", "Returns the table of fillets on the face modified by this algorithm.
Returns
-------
TopTools_SequenceOfShape
") FilletEdges;
const TopTools_SequenceOfShape & FilletEdges();
/****************** HasDescendant ******************/
/**** md5 signature: 0541f95951f0773111d16c04ab78f51f ****/
%feature("compactdefaultargs") HasDescendant;
%feature("autodoc", "No available documentation.
Parameters
----------
E: TopoDS_Edge
Returns
-------
bool
") HasDescendant;
Standard_Boolean HasDescendant(const TopoDS_Edge & E);
/****************** Init ******************/
/**** md5 signature: a8dfaa68079e743e08190fe58d950a9a ****/
%feature("compactdefaultargs") Init;
%feature("autodoc", "Initializes this algorithm for constructing fillets or chamfers with the face f. warning the status of the initialization, as given by the status function, can be one of the following: - chfi2d_ready if the initialization is correct, - chfi2d_notplanar if f is not planar, - chfi2d_noface if f is a null face.
Parameters
----------
F: TopoDS_Face
Returns
-------
None
") Init;
void Init(const TopoDS_Face & F);
/****************** Init ******************/
/**** md5 signature: 7b460233038b2f415eaddf1e321fc705 ****/
%feature("compactdefaultargs") Init;
%feature("autodoc", "This initialize method allow to init the builder from a face <refface> and another face <modface> which derive from <refface>. this is usefull to modify a fillet or a chamfer already created on <modface> .
Parameters
----------
RefFace: TopoDS_Face
ModFace: TopoDS_Face
Returns
-------
None
") Init;
void Init(const TopoDS_Face & RefFace, const TopoDS_Face & ModFace);
/****************** IsModified ******************/
/**** md5 signature: 16d68e049352482fa8e513ef481ee475 ****/
%feature("compactdefaultargs") IsModified;
%feature("autodoc", "Returns true if the edge e on the face modified by this algorithm is chamfered or filleted. warning returns false if e does not belong to the face modified by this algorithm.
Parameters
----------
E: TopoDS_Edge
Returns
-------
bool
") IsModified;
Standard_Boolean IsModified(const TopoDS_Edge & E);
/****************** 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);
/****************** ModifyChamfer ******************/
/**** md5 signature: f4b34f1306057c0cc8ca5f84d6421d3a ****/
%feature("compactdefaultargs") ModifyChamfer;
%feature("autodoc", "Modifies the chamfer chamfer on the face modified by this algorithm, where: e1 and e2 are the two adjacent edges on which chamfer is already built; the extremities of the new chamfer are on e1 and e2 at distances d1 and d2 respectively.
Parameters
----------
Chamfer: TopoDS_Edge
E1: TopoDS_Edge
E2: TopoDS_Edge
D1: float
D2: float
Returns
-------
TopoDS_Edge
") ModifyChamfer;
TopoDS_Edge ModifyChamfer(const TopoDS_Edge & Chamfer, const TopoDS_Edge & E1, const TopoDS_Edge & E2, const Standard_Real D1, const Standard_Real D2);
/****************** ModifyChamfer ******************/
/**** md5 signature: 5dc8140e76c07e7e78ad0bb92d51e1c8 ****/
%feature("compactdefaultargs") ModifyChamfer;
%feature("autodoc", "Modifies the chamfer chamfer on the face modified by this algorithm, where: e is one of the two adjacent edges on which chamfer is already built; the new chamfer makes an angle ang with e and one of its extremities is on e at distance d from the vertex on which the chamfer is built. in cases where the edges are not rectilinear, the distances are measured using the curvilinear abscissa of the edges and the angle is measured with respect to the tangent at the corresponding point. the angle ang is given in radians. this function returns the new chamfer and modifies the existing face. warning the status of the construction, as given by the status function, can be one of the following: - chfi2d_isdone if the chamfer is built, - chfi2d_parameterserror if d1, d2, d or ang is less than or equal to zero, - chfi2d_connexionerror if: - the edge e, e1, e2 or chamfer does not belong to the existing face, or - the edges e1 and e2 are not adjacent, - chfi2d_computationerror if the parameters of the chamfer are too large to build a chamfer between the two adjacent edges, - chfi2d_notauthorized if e1 or e2 is a fillet or chamfer. do not use the returned chamfer if the status of the construction is not chfi2d_isdone.
Parameters
----------
Chamfer: TopoDS_Edge
E: TopoDS_Edge
D: float
Ang: float
Returns
-------
TopoDS_Edge
") ModifyChamfer;
TopoDS_Edge ModifyChamfer(const TopoDS_Edge & Chamfer, const TopoDS_Edge & E, const Standard_Real D, const Standard_Real Ang);
/****************** ModifyFillet ******************/
/**** md5 signature: 4ba37be14168b13373613def465683a2 ****/
%feature("compactdefaultargs") ModifyFillet;
%feature("autodoc", "Assigns the radius radius to the fillet fillet already built on the face modified by this algorithm. this function returns the new fillet and modifies the existing face. warning the status of the construction, as given by the status function, can be one of the following: - chfi2d_isdone if the new fillet is built, - chfi2d_connexionerror if fillet does not belong to the existing face, - chfi2d_computationerror if radius is too large to build a fillet between the two adjacent edges. do not use the returned fillet if the status of the construction is not chfi2d_isdone. exceptions standard_negativevalue if radius is less than or equal to zero.
Parameters
----------
Fillet: TopoDS_Edge
Radius: float
Returns
-------
TopoDS_Edge
") ModifyFillet;
TopoDS_Edge ModifyFillet(const TopoDS_Edge & Fillet, const Standard_Real Radius);
/****************** NbChamfer ******************/
/**** md5 signature: 1531286606ef0261ac4850615d79f229 ****/
%feature("compactdefaultargs") NbChamfer;
%feature("autodoc", "Returns the number of chamfers on the face modified by this algorithm.
Returns
-------
int
") NbChamfer;
Standard_Integer NbChamfer();
/****************** NbCurves ******************/
/**** md5 signature: f7f6dbd981df076443155a5a87b5c223 ****/
%feature("compactdefaultargs") NbCurves;
%feature("autodoc", "Returns the number of new curves after the shape creation.
Returns
-------
int
") NbCurves;
Standard_Integer NbCurves();
/****************** NbFillet ******************/
/**** md5 signature: 213e984e2e53209ba86769e63c780c6f ****/
%feature("compactdefaultargs") NbFillet;
%feature("autodoc", "Returns the number of fillets on the face modified by this algorithm.
Returns
-------
int
") NbFillet;
Standard_Integer NbFillet();
/****************** NewEdges ******************/
/**** md5 signature: f5408bd77e64eab07f4d88d1d6f0f96e ****/
%feature("compactdefaultargs") NewEdges;
%feature("autodoc", "Return the edges created for curve i.
Parameters
----------
I: int
Returns
-------
TopTools_ListOfShape
") NewEdges;
const TopTools_ListOfShape & NewEdges(const Standard_Integer I);
/****************** RemoveChamfer ******************/
/**** md5 signature: e2fe904642b9955c8a660d5a9fc1f9db ****/
%feature("compactdefaultargs") RemoveChamfer;
%feature("autodoc", "Removes the chamfer chamfer already built on the face modified by this algorithm. this function returns the vertex connecting the two adjacent edges of chamfer and modifies the existing face. warning - the returned vertex is only valid if the status function returns chfi2d_isdone. - a null vertex is returned if the edge chamfer does not belong to the initial face.
Parameters
----------
Chamfer: TopoDS_Edge
Returns
-------
TopoDS_Vertex
") RemoveChamfer;
TopoDS_Vertex RemoveChamfer(const TopoDS_Edge & Chamfer);
/****************** RemoveFillet ******************/
/**** md5 signature: c523feaddfccc8fecd7b796c40383670 ****/
%feature("compactdefaultargs") RemoveFillet;
%feature("autodoc", "Removes the fillet fillet already built on the face modified by this algorithm. this function returns the vertex connecting the two adjacent edges of fillet and modifies the existing face. warning - the returned vertex is only valid if the status function returns chfi2d_isdone. - a null vertex is returned if the edge fillet does not belong to the initial face.
Parameters
----------
Fillet: TopoDS_Edge
Returns
-------
TopoDS_Vertex
") RemoveFillet;
TopoDS_Vertex RemoveFillet(const TopoDS_Edge & Fillet);
/****************** Status ******************/
/**** md5 signature: d156d199c4dfd8fe1ae3da07b3861e60 ****/
%feature("compactdefaultargs") Status;
%feature("autodoc", "No available documentation.
Returns
-------
ChFi2d_ConstructionError
") Status;
ChFi2d_ConstructionError Status();
};
%extend BRepFilletAPI_MakeFillet2d {
%pythoncode {
__repr__ = _dumps_object
}
};
/**********************************
* class BRepFilletAPI_MakeChamfer *
**********************************/
class BRepFilletAPI_MakeChamfer : public BRepFilletAPI_LocalOperation {
public:
/****************** BRepFilletAPI_MakeChamfer ******************/
/**** md5 signature: 71d1fe71808ad8a56af47ed3fabdc3c6 ****/
%feature("compactdefaultargs") BRepFilletAPI_MakeChamfer;
%feature("autodoc", "Initializes an algorithm for computing chamfers on the shape s. the edges on which chamfers are built are defined using the add function.
Parameters
----------
S: TopoDS_Shape
Returns
-------
None
") BRepFilletAPI_MakeChamfer;
BRepFilletAPI_MakeChamfer(const TopoDS_Shape & S);
/****************** Abscissa ******************/
/**** md5 signature: c1272cd99453d3fe75c78a84b1ec93d1 ****/
%feature("compactdefaultargs") Abscissa;
%feature("autodoc", "Returns the curvilinear abscissa of the vertex v on the contour of index ic in the internal data structure of this algorithm. warning returns -1. if: - ic is outside the bounds of the table of contours, or - v is not on the contour of index ic.
Parameters
----------
IC: int
V: TopoDS_Vertex
Returns
-------
float
") Abscissa;
Standard_Real Abscissa(const Standard_Integer IC, const TopoDS_Vertex & V);
/****************** Add ******************/
/**** md5 signature: 158dbe27a95f019f3e3e393c416defb6 ****/
%feature("compactdefaultargs") Add;
%feature("autodoc", "Adds edge e to the table of edges used by this algorithm to build chamfers, where the parameters of the chamfer must be set after the.
Parameters
----------
E: TopoDS_Edge
Returns
-------
None
") Add;
void Add(const TopoDS_Edge & E);
/****************** Add ******************/
/**** md5 signature: 5df832e06f6a2a3e7dd74bbc479baf92 ****/
%feature("compactdefaultargs") Add;
%feature("autodoc", "Adds edge e to the table of edges used by this algorithm to build chamfers, where the parameters of the chamfer are given by the distance dis (symmetric chamfer). the add function results in a contour being built by propagation from the edge e (i.e. the contour contains at least this edge). this contour is composed of edges of the shape which are tangential to one another and which delimit two series of tangential faces, with one series of faces being located on either side of the contour. warning nothing is done if edge e or the face f does not belong to the initial shape.
Parameters
----------
Dis: float
E: TopoDS_Edge
Returns
-------
None
") Add;
void Add(const Standard_Real Dis, const TopoDS_Edge & E);
/****************** Add ******************/
/**** md5 signature: 3d413aacf4fbe519a69cb102312acd8a ****/
%feature("compactdefaultargs") Add;
%feature("autodoc", "Adds edge e to the table of edges used by this algorithm to build chamfers, where the parameters of the chamfer are given by the two distances dis1 and dis2; the face f identifies the side where dis1 is measured. the add function results in a contour being built by propagation from the edge e (i.e. the contour contains at least this edge). this contour is composed of edges of the shape which are tangential to one another and which delimit two series of tangential faces, with one series of faces being located on either side of the contour. warning nothing is done if edge e or the face f does not belong to the initial shape.
Parameters
----------
Dis1: float
Dis2: float
E: TopoDS_Edge
F: TopoDS_Face
Returns
-------
None
") Add;
void Add(const Standard_Real Dis1, const Standard_Real Dis2, const TopoDS_Edge & E, const TopoDS_Face & F);
/****************** AddDA ******************/
/**** md5 signature: b13fc907617fc4fffa48eb6ecc1c875f ****/
%feature("compactdefaultargs") AddDA;
%feature("autodoc", "Adds a fillet contour in the builder (builds a contour of tangent edges to <e> and sets the distance <dis1> and angle <angle> ( parameters of the chamfer ) ).
Parameters
----------
Dis: float
Angle: float
E: TopoDS_Edge
F: TopoDS_Face
Returns
-------
None
") AddDA;
void AddDA(const Standard_Real Dis, const Standard_Real Angle, const TopoDS_Edge & E, const TopoDS_Face & F);
/****************** Build ******************/
/**** md5 signature: 5ad4569f96377eec0c61c7f10d7c7aa9 ****/
%feature("compactdefaultargs") Build;
%feature("autodoc", "Builds the chamfers on all the contours in the internal data structure of this algorithm and constructs the resulting shape. use the function isdone to verify that the chamfered shape is built. use the function shape to retrieve the chamfered shape. warning the construction of chamfers implements highly complex construction algorithms. consequently, there may be instances where the algorithm fails, for example if the data defining the parameters of the chamfer is not compatible with the geometry of the initial shape. there is no initial analysis of errors and these only become evident at the construction stage. additionally, in the current software release, the following cases are not handled: - the end point of the contour is the point of intersection of 4 or more edges of the shape, or - the intersection of the chamfer with a face which limits the contour is not fully contained in this face.
Returns
-------
None
") Build;
virtual void Build();
/****************** Builder ******************/
/**** md5 signature: c97c63149316e999abd03e780cc959bf ****/
%feature("compactdefaultargs") Builder;
%feature("autodoc", "Returns the internal filleting algorithm.
Returns
-------
opencascade::handle<TopOpeBRepBuild_HBuilder>
") Builder;
opencascade::handle<TopOpeBRepBuild_HBuilder> Builder();
/****************** Closed ******************/
/**** md5 signature: 02e6c60b8d9f01dfb5d5e38943449890 ****/
%feature("compactdefaultargs") Closed;
%feature("autodoc", "Returns true if the contour of index ic in the internal data structure of this algorithm is closed. warning returns false if ic is outside the bounds of the table of contours.
Parameters
----------
IC: int
Returns
-------
bool
") Closed;
Standard_Boolean Closed(const Standard_Integer IC);
/****************** ClosedAndTangent ******************/
/**** md5 signature: 6a080251cdf7f6c13ec7fa541b691f34 ****/
%feature("compactdefaultargs") ClosedAndTangent;
%feature("autodoc", "Eturns true if the contour of index ic in the internal data structure of this algorithm is closed and tangential at the point of closure. warning returns false if ic is outside the bounds of the table of contours.
Parameters
----------
IC: int
Returns
-------
bool
") ClosedAndTangent;
Standard_Boolean ClosedAndTangent(const Standard_Integer IC);
/****************** Contour ******************/
/**** md5 signature: 0012e08d6c558bf532f57f5b5c94b6f4 ****/
%feature("compactdefaultargs") Contour;
%feature("autodoc", "Returns the index of the contour in the internal data structure of this algorithm, which contains the edge e of the shape. this function returns 0 if the edge e does not belong to any contour. warning this index can change if a contour is removed from the internal data structure of this algorithm using the function remove.
Parameters
----------
E: TopoDS_Edge
Returns
-------
int
") Contour;
Standard_Integer Contour(const TopoDS_Edge & E);
/****************** Dists ******************/
/**** md5 signature: 25b55d4bd35e93f2afa86c7ba6682d7e ****/
%feature("compactdefaultargs") Dists;
%feature("autodoc", "Returns the distances dis1 and dis2 which give the parameters of the chamfer along the contour of index ic in the internal data structure of this algorithm. warning -1. is returned if ic is outside the bounds of the table of contours.
Parameters
----------
IC: int
Returns
-------
Dis1: float
Dis2: float
") Dists;
void Dists(const Standard_Integer IC, Standard_Real &OutValue, Standard_Real &OutValue);
/****************** Edge ******************/
/**** md5 signature: ab0618f3051f6e1cc81d0a14c9610b1a ****/
%feature("compactdefaultargs") Edge;
%feature("autodoc", "Returns the edge of index j in the contour of index i in the internal data structure of this algorithm. warning returns a null shape if: - i is outside the bounds of the table of contours, or - j is outside the bounds of the table of edges of the contour of index i.
Parameters
----------
I: int
J: int
Returns
-------
TopoDS_Edge
") Edge;
const TopoDS_Edge Edge(const Standard_Integer I, const Standard_Integer J);
/****************** FirstVertex ******************/
/**** md5 signature: a262ebc40fb5085f0b2791b9b6e04cb4 ****/
%feature("compactdefaultargs") FirstVertex;
%feature("autodoc", "Returns the first vertex of the contour of index ic in the internal data structure of this algorithm. warning returns a null shape if ic is outside the bounds of the table of contours.
Parameters
----------
IC: int
Returns
-------
TopoDS_Vertex
") FirstVertex;
TopoDS_Vertex FirstVertex(const Standard_Integer IC);
/****************** Generated ******************/
/**** md5 signature: 13e8506b1710abf403653a8e5186dd7b ****/
%feature("compactdefaultargs") Generated;
%feature("autodoc", "Returns the list of shapes generated from the shape <eorv>.
Parameters
----------
EorV: TopoDS_Shape
Returns