forked from tpaviot/pythonocc-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBRepLib.i
More file actions
4092 lines (3368 loc) · 110 KB
/
BRepLib.i
File metadata and controls
4092 lines (3368 loc) · 110 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 BREPLIBDOCSTRING
"BRepLib module, see official documentation at
https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_breplib.html"
%enddef
%module (package="OCC.Core", docstring=BREPLIBDOCSTRING) BRepLib
%{
#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<BRepLib_module.hxx>
//Dependencies
#include<Standard_module.hxx>
#include<NCollection_module.hxx>
#include<gp_module.hxx>
#include<TopoDS_module.hxx>
#include<GeomAbs_module.hxx>
#include<Geom2d_module.hxx>
#include<TopTools_module.hxx>
#include<Adaptor3d_module.hxx>
#include<Geom_module.hxx>
#include<BRepTools_module.hxx>
#include<TopLoc_module.hxx>
#include<TopoDS_module.hxx>
#include<Adaptor2d_module.hxx>
#include<BRep_module.hxx>
#include<Message_module.hxx>
#include<Bnd_module.hxx>
#include<Poly_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 gp.i
%import TopoDS.i
%import GeomAbs.i
%import Geom2d.i
%import TopTools.i
%import Adaptor3d.i
%import Geom.i
%import BRepTools.i
%import TopLoc.i
%pythoncode {
from enum import IntEnum
from OCC.Core.Exception import *
};
/* public enums */
enum BRepLib_EdgeError {
BRepLib_EdgeDone = 0,
BRepLib_PointProjectionFailed = 1,
BRepLib_ParameterOutOfRange = 2,
BRepLib_DifferentPointsOnClosedCurve = 3,
BRepLib_PointWithInfiniteParameter = 4,
BRepLib_DifferentsPointAndParameter = 5,
BRepLib_LineThroughIdenticPoints = 6,
};
enum BRepLib_ShellError {
BRepLib_ShellDone = 0,
BRepLib_EmptyShell = 1,
BRepLib_DisconnectedShell = 2,
BRepLib_ShellParametersOutOfRange = 3,
};
enum BRepLib_ShapeModification {
BRepLib_Preserved = 0,
BRepLib_Deleted = 1,
BRepLib_Trimmed = 2,
BRepLib_Merged = 3,
BRepLib_BoundaryModified = 4,
};
enum BRepLib_WireError {
BRepLib_WireDone = 0,
BRepLib_EmptyWire = 1,
BRepLib_DisconnectedWire = 2,
BRepLib_NonManifoldWire = 3,
};
enum BRepLib_FaceError {
BRepLib_FaceDone = 0,
BRepLib_NoFace = 1,
BRepLib_NotPlanar = 2,
BRepLib_CurveProjectionFailed = 3,
BRepLib_ParametersOutOfRange = 4,
};
/* end public enums declaration */
/* python proy classes for enums */
%pythoncode {
class BRepLib_EdgeError(IntEnum):
BRepLib_EdgeDone = 0
BRepLib_PointProjectionFailed = 1
BRepLib_ParameterOutOfRange = 2
BRepLib_DifferentPointsOnClosedCurve = 3
BRepLib_PointWithInfiniteParameter = 4
BRepLib_DifferentsPointAndParameter = 5
BRepLib_LineThroughIdenticPoints = 6
BRepLib_EdgeDone = BRepLib_EdgeError.BRepLib_EdgeDone
BRepLib_PointProjectionFailed = BRepLib_EdgeError.BRepLib_PointProjectionFailed
BRepLib_ParameterOutOfRange = BRepLib_EdgeError.BRepLib_ParameterOutOfRange
BRepLib_DifferentPointsOnClosedCurve = BRepLib_EdgeError.BRepLib_DifferentPointsOnClosedCurve
BRepLib_PointWithInfiniteParameter = BRepLib_EdgeError.BRepLib_PointWithInfiniteParameter
BRepLib_DifferentsPointAndParameter = BRepLib_EdgeError.BRepLib_DifferentsPointAndParameter
BRepLib_LineThroughIdenticPoints = BRepLib_EdgeError.BRepLib_LineThroughIdenticPoints
class BRepLib_ShellError(IntEnum):
BRepLib_ShellDone = 0
BRepLib_EmptyShell = 1
BRepLib_DisconnectedShell = 2
BRepLib_ShellParametersOutOfRange = 3
BRepLib_ShellDone = BRepLib_ShellError.BRepLib_ShellDone
BRepLib_EmptyShell = BRepLib_ShellError.BRepLib_EmptyShell
BRepLib_DisconnectedShell = BRepLib_ShellError.BRepLib_DisconnectedShell
BRepLib_ShellParametersOutOfRange = BRepLib_ShellError.BRepLib_ShellParametersOutOfRange
class BRepLib_ShapeModification(IntEnum):
BRepLib_Preserved = 0
BRepLib_Deleted = 1
BRepLib_Trimmed = 2
BRepLib_Merged = 3
BRepLib_BoundaryModified = 4
BRepLib_Preserved = BRepLib_ShapeModification.BRepLib_Preserved
BRepLib_Deleted = BRepLib_ShapeModification.BRepLib_Deleted
BRepLib_Trimmed = BRepLib_ShapeModification.BRepLib_Trimmed
BRepLib_Merged = BRepLib_ShapeModification.BRepLib_Merged
BRepLib_BoundaryModified = BRepLib_ShapeModification.BRepLib_BoundaryModified
class BRepLib_WireError(IntEnum):
BRepLib_WireDone = 0
BRepLib_EmptyWire = 1
BRepLib_DisconnectedWire = 2
BRepLib_NonManifoldWire = 3
BRepLib_WireDone = BRepLib_WireError.BRepLib_WireDone
BRepLib_EmptyWire = BRepLib_WireError.BRepLib_EmptyWire
BRepLib_DisconnectedWire = BRepLib_WireError.BRepLib_DisconnectedWire
BRepLib_NonManifoldWire = BRepLib_WireError.BRepLib_NonManifoldWire
class BRepLib_FaceError(IntEnum):
BRepLib_FaceDone = 0
BRepLib_NoFace = 1
BRepLib_NotPlanar = 2
BRepLib_CurveProjectionFailed = 3
BRepLib_ParametersOutOfRange = 4
BRepLib_FaceDone = BRepLib_FaceError.BRepLib_FaceDone
BRepLib_NoFace = BRepLib_FaceError.BRepLib_NoFace
BRepLib_NotPlanar = BRepLib_FaceError.BRepLib_NotPlanar
BRepLib_CurveProjectionFailed = BRepLib_FaceError.BRepLib_CurveProjectionFailed
BRepLib_ParametersOutOfRange = BRepLib_FaceError.BRepLib_ParametersOutOfRange
};
/* end python proxy for enums */
/* handles */
/* end handles declaration */
/* templates */
/* end templates declaration */
/* typedefs */
/* end typedefs declaration */
/****************
* class BRepLib *
****************/
%rename(breplib) BRepLib;
class BRepLib {
public:
/****************** BoundingVertex ******************/
/**** md5 signature: 9d6407d339f4bd152392962cf95ced95 ****/
%feature("compactdefaultargs") BoundingVertex;
%feature("autodoc", "Calculates the bounding sphere around the set of vertexes from the thelv list. returns the center (thenewcenter) and the radius (thenewtol) of this sphere. this can be used to construct the new vertex which covers the given set of other vertices.
Parameters
----------
theLV: NCollection_List<TopoDS_Shape>
theNewCenter: gp_Pnt
Returns
-------
theNewTol: float
") BoundingVertex;
static void BoundingVertex(const NCollection_List<TopoDS_Shape> & theLV, gp_Pnt & theNewCenter, Standard_Real &OutValue);
/****************** BuildCurve3d ******************/
/**** md5 signature: d8e9099e9a30a929518b09d1cd9244fb ****/
%feature("compactdefaultargs") BuildCurve3d;
%feature("autodoc", "Computes the 3d curve for the edge <e> if it does not exist. returns true if the curve was computed or existed. returns false if there is no planar pcurve or the computation failed. <maxsegment> >= 30 in approximation.
Parameters
----------
E: TopoDS_Edge
Tolerance: float,optional
default value is 1.0e-5
Continuity: GeomAbs_Shape,optional
default value is GeomAbs_C1
MaxDegree: int,optional
default value is 14
MaxSegment: int,optional
default value is 0
Returns
-------
bool
") BuildCurve3d;
static Standard_Boolean BuildCurve3d(const TopoDS_Edge & E, const Standard_Real Tolerance = 1.0e-5, const GeomAbs_Shape Continuity = GeomAbs_C1, const Standard_Integer MaxDegree = 14, const Standard_Integer MaxSegment = 0);
/****************** BuildCurves3d ******************/
/**** md5 signature: f2e476cec2d67740b544a128660a06ff ****/
%feature("compactdefaultargs") BuildCurves3d;
%feature("autodoc", "Computes the 3d curves for all the edges of <s> return false if one of the computation failed. <maxsegment> >= 30 in approximation.
Parameters
----------
S: TopoDS_Shape
Tolerance: float
Continuity: GeomAbs_Shape,optional
default value is GeomAbs_C1
MaxDegree: int,optional
default value is 14
MaxSegment: int,optional
default value is 0
Returns
-------
bool
") BuildCurves3d;
static Standard_Boolean BuildCurves3d(const TopoDS_Shape & S, const Standard_Real Tolerance, const GeomAbs_Shape Continuity = GeomAbs_C1, const Standard_Integer MaxDegree = 14, const Standard_Integer MaxSegment = 0);
/****************** BuildCurves3d ******************/
/**** md5 signature: 204d092b783dfacd75dfb95b12784384 ****/
%feature("compactdefaultargs") BuildCurves3d;
%feature("autodoc", "Computes the 3d curves for all the edges of <s> return false if one of the computation failed.
Parameters
----------
S: TopoDS_Shape
Returns
-------
bool
") BuildCurves3d;
static Standard_Boolean BuildCurves3d(const TopoDS_Shape & S);
/****************** BuildPCurveForEdgeOnPlane ******************/
/**** md5 signature: eb2eaf6bd1e25fb580fd234600800513 ****/
%feature("compactdefaultargs") BuildPCurveForEdgeOnPlane;
%feature("autodoc", "Builds pcurve of edge on face if the surface is plane, and updates the edge.
Parameters
----------
theE: TopoDS_Edge
theF: TopoDS_Face
Returns
-------
None
") BuildPCurveForEdgeOnPlane;
static void BuildPCurveForEdgeOnPlane(const TopoDS_Edge & theE, const TopoDS_Face & theF);
/****************** BuildPCurveForEdgeOnPlane ******************/
/**** md5 signature: 74f8fb705bcddf6e8ff15664dc8d47b7 ****/
%feature("compactdefaultargs") BuildPCurveForEdgeOnPlane;
%feature("autodoc", "Builds pcurve of edge on face if the surface is plane, but does not update the edge. the output are the pcurve and the flag telling that pcurve was built.
Parameters
----------
theE: TopoDS_Edge
theF: TopoDS_Face
aC2D: Geom2d_Curve
Returns
-------
bToUpdate: bool
") BuildPCurveForEdgeOnPlane;
static void BuildPCurveForEdgeOnPlane(const TopoDS_Edge & theE, const TopoDS_Face & theF, opencascade::handle<Geom2d_Curve> & aC2D, Standard_Boolean &OutValue);
/****************** CheckSameRange ******************/
/**** md5 signature: d9ef2cd4ef3374a22ba2fd4a9050572c ****/
%feature("compactdefaultargs") CheckSameRange;
%feature("autodoc", "Checks if the edge is same range ignoring the same range flag of the edge confusion argument is to compare real numbers idenpendently of any model space tolerance.
Parameters
----------
E: TopoDS_Edge
Confusion: float,optional
default value is 1.0e-12
Returns
-------
bool
") CheckSameRange;
static Standard_Boolean CheckSameRange(const TopoDS_Edge & E, const Standard_Real Confusion = 1.0e-12);
/****************** EncodeRegularity ******************/
/**** md5 signature: 19c910eb7197237b12eb01c92eebe9e5 ****/
%feature("compactdefaultargs") EncodeRegularity;
%feature("autodoc", "Encodes the regularity of edges on a shape. warning: <tolang> is an angular tolerance, expressed in rad. warning: if the edges's regularity are coded before, nothing is done.
Parameters
----------
S: TopoDS_Shape
TolAng: float,optional
default value is 1.0e-10
Returns
-------
None
") EncodeRegularity;
static void EncodeRegularity(const TopoDS_Shape & S, const Standard_Real TolAng = 1.0e-10);
/****************** EncodeRegularity ******************/
/**** md5 signature: 0fb005a839a1ca0e40b83d5aa3066041 ****/
%feature("compactdefaultargs") EncodeRegularity;
%feature("autodoc", "Encodes the regularity of edges in list <le> on the shape <s> warning: <tolang> is an angular tolerance, expressed in rad. warning: if the edges's regularity are coded before, nothing is done.
Parameters
----------
S: TopoDS_Shape
LE: TopTools_ListOfShape
TolAng: float,optional
default value is 1.0e-10
Returns
-------
None
") EncodeRegularity;
static void EncodeRegularity(const TopoDS_Shape & S, const TopTools_ListOfShape & LE, const Standard_Real TolAng = 1.0e-10);
/****************** EncodeRegularity ******************/
/**** md5 signature: 172eaf1d13de1fe1ad03867f4f67dce0 ****/
%feature("compactdefaultargs") EncodeRegularity;
%feature("autodoc", "Encodes the regularity beetween <f1> and <f2> by <e> warning: <tolang> is an angular tolerance, expressed in rad. warning: if the edge's regularity is coded before, nothing is done.
Parameters
----------
E: TopoDS_Edge
F1: TopoDS_Face
F2: TopoDS_Face
TolAng: float,optional
default value is 1.0e-10
Returns
-------
None
") EncodeRegularity;
static void EncodeRegularity(TopoDS_Edge & E, const TopoDS_Face & F1, const TopoDS_Face & F2, const Standard_Real TolAng = 1.0e-10);
/****************** EnsureNormalConsistency ******************/
/**** md5 signature: 333cd3af6b2fdcd6cde8b593c31284a9 ****/
%feature("compactdefaultargs") EnsureNormalConsistency;
%feature("autodoc", "Corrects the normals in poly_triangulation of faces, in such way that normals at nodes lying along smooth edges have the same value on both adjacent triangulations. returns true if any correction is done.
Parameters
----------
S: TopoDS_Shape
theAngTol: float,optional
default value is 0.001
ForceComputeNormals: bool,optional
default value is Standard_False
Returns
-------
bool
") EnsureNormalConsistency;
static Standard_Boolean EnsureNormalConsistency(const TopoDS_Shape & S, const Standard_Real theAngTol = 0.001, const Standard_Boolean ForceComputeNormals = Standard_False);
/****************** ExtendFace ******************/
/**** md5 signature: b2c07a72140e36de05af305bcd484489 ****/
%feature("compactdefaultargs") ExtendFace;
%feature("autodoc", "Enlarges the face on the given value. @param thef [in] the face to extend @param theextval [in] the extension value @param theextumin [in] defines whether to extend the face in umin direction @param theextumax [in] defines whether to extend the face in umax direction @param theextvmin [in] defines whether to extend the face in vmin direction @param theextvmax [in] defines whether to extend the face in vmax direction @param thefextended [in] the extended face.
Parameters
----------
theF: TopoDS_Face
theExtVal: float
theExtUMin: bool
theExtUMax: bool
theExtVMin: bool
theExtVMax: bool
theFExtended: TopoDS_Face
Returns
-------
None
") ExtendFace;
static void ExtendFace(const TopoDS_Face & theF, const Standard_Real theExtVal, const Standard_Boolean theExtUMin, const Standard_Boolean theExtUMax, const Standard_Boolean theExtVMin, const Standard_Boolean theExtVMax, TopoDS_Face & theFExtended);
/****************** FindValidRange ******************/
/**** md5 signature: 5d83ca03919e4732c16bdd3ceefc7d56 ****/
%feature("compactdefaultargs") FindValidRange;
%feature("autodoc", "For an edge defined by 3d curve and tolerance and vertices defined by points, parameters on curve and tolerances, finds a range of curve between vertices not covered by vertices tolerances. returns false if there is no such range. otherwise, sets thefirst and thelast as its bounds.
Parameters
----------
theCurve: Adaptor3d_Curve
theTolE: float
theParV1: float
thePntV1: gp_Pnt
theTolV1: float
theParV2: float
thePntV2: gp_Pnt
theTolV2: float
Returns
-------
theFirst: float
theLast: float
") FindValidRange;
static Standard_Boolean FindValidRange(const Adaptor3d_Curve & theCurve, const Standard_Real theTolE, const Standard_Real theParV1, const gp_Pnt & thePntV1, const Standard_Real theTolV1, const Standard_Real theParV2, const gp_Pnt & thePntV2, const Standard_Real theTolV2, Standard_Real &OutValue, Standard_Real &OutValue);
/****************** FindValidRange ******************/
/**** md5 signature: 16a8dd6346bc70745b1437c644d131d2 ****/
%feature("compactdefaultargs") FindValidRange;
%feature("autodoc", "Finds a range of 3d curve of the edge not covered by vertices tolerances. returns false if there is no such range. otherwise, sets thefirst and thelast as its bounds.
Parameters
----------
theEdge: TopoDS_Edge
Returns
-------
theFirst: float
theLast: float
") FindValidRange;
static Standard_Boolean FindValidRange(const TopoDS_Edge & theEdge, Standard_Real &OutValue, Standard_Real &OutValue);
/****************** OrientClosedSolid ******************/
/**** md5 signature: cde24280a2621155ab6f58b7cc92c489 ****/
%feature("compactdefaultargs") OrientClosedSolid;
%feature("autodoc", "Orients the solid forward and the shell with the orientation to have matter in the solid. returns false if the solid is unorientable (open or incoherent).
Parameters
----------
solid: TopoDS_Solid
Returns
-------
bool
") OrientClosedSolid;
static Standard_Boolean OrientClosedSolid(TopoDS_Solid & solid);
/****************** Plane ******************/
/**** md5 signature: 215779db6a724a03f9f8ce477370cef4 ****/
%feature("compactdefaultargs") Plane;
%feature("autodoc", "Sets the current plane to p.
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", "Computes the max distance between edge and its 2d representation on the face. 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();
/****************** ReverseSortFaces ******************/
/**** md5 signature: 5c834edf3fced01cd530658b4e20344b ****/
%feature("compactdefaultargs") ReverseSortFaces;
%feature("autodoc", "Sorts in lf the faces of s on the reverse complexity of their surfaces (other,torus,sphere,cone,cylinder,plane).
Parameters
----------
S: TopoDS_Shape
LF: TopTools_ListOfShape
Returns
-------
None
") ReverseSortFaces;
static void ReverseSortFaces(const TopoDS_Shape & S, TopTools_ListOfShape & LF);
/****************** SameParameter ******************/
/**** md5 signature: 5c5d4240cd8907cefccc80b8b3ea011e ****/
%feature("compactdefaultargs") SameParameter;
%feature("autodoc", "Computes new 2d curve(s) for the edge <theedge> to have the same parameter as the 3d curve. the algorithm is not done if the flag sameparameter was true on the edge.
Parameters
----------
theEdge: TopoDS_Edge
Tolerance: float,optional
default value is 1.0e-5
Returns
-------
None
") SameParameter;
static void SameParameter(const TopoDS_Edge & theEdge, const Standard_Real Tolerance = 1.0e-5);
/****************** SameParameter ******************/
/**** md5 signature: b4fbeb89b4594cf9352322c9856b5950 ****/
%feature("compactdefaultargs") SameParameter;
%feature("autodoc", "Computes new 2d curve(s) for the edge <theedge> to have the same parameter as the 3d curve. the algorithm is not done if the flag sameparameter was true on the edge. thenewtol is a new tolerance of vertices of the input edge (not applied inside the algorithm, but pre-computed). if isuseoldedge is true then the input edge will be modified, otherwise the new copy of input edge will be created. returns the new edge as a result, can be ignored if isuseoldedge is true.
Parameters
----------
theEdge: TopoDS_Edge
theTolerance: float
IsUseOldEdge: bool
Returns
-------
theNewTol: float
") SameParameter;
static TopoDS_Edge SameParameter(const TopoDS_Edge & theEdge, const Standard_Real theTolerance, Standard_Real &OutValue, const Standard_Boolean IsUseOldEdge);
/****************** SameParameter ******************/
/**** md5 signature: 2b6345dbc9df15880edd16e53a03b47f ****/
%feature("compactdefaultargs") SameParameter;
%feature("autodoc", "Computes new 2d curve(s) for all the edges of <s> to have the same parameter as the 3d curve. the algorithm is not done if the flag sameparameter was true on an edge.
Parameters
----------
S: TopoDS_Shape
Tolerance: float,optional
default value is 1.0e-5
forced: bool,optional
default value is Standard_False
Returns
-------
None
") SameParameter;
static void SameParameter(const TopoDS_Shape & S, const Standard_Real Tolerance = 1.0e-5, const Standard_Boolean forced = Standard_False);
/****************** SameParameter ******************/
/**** md5 signature: cfb21365f9a6e6262e51c4374bfdfcc0 ****/
%feature("compactdefaultargs") SameParameter;
%feature("autodoc", "Computes new 2d curve(s) for all the edges of <s> to have the same parameter as the 3d curve. the algorithm is not done if the flag sameparameter was true on an edge. thereshaper is used to record the modifications of input shape <s> to prevent any modifications on the shape itself. thus the input shape (and its subshapes) will not be modified, instead the reshaper will contain a modified empty-copies of original subshapes as substitutions.
Parameters
----------
S: TopoDS_Shape
theReshaper: BRepTools_ReShape
Tolerance: float,optional
default value is 1.0e-5
forced: bool,optional
default value is Standard_False
Returns
-------
None
") SameParameter;
static void SameParameter(const TopoDS_Shape & S, BRepTools_ReShape & theReshaper, const Standard_Real Tolerance = 1.0e-5, const Standard_Boolean forced = Standard_False);
/****************** SameRange ******************/
/**** md5 signature: e07686d7b9c2e87d078e9cf28f531b62 ****/
%feature("compactdefaultargs") SameRange;
%feature("autodoc", "Will make all the curve representation have the same range domain for the parameters. this will ignore the same range flag value to proceed. if there is a 3d curve there it will the range of that curve. if not the first curve representation encountered in the list will give its range to the all the other curves.
Parameters
----------
E: TopoDS_Edge
Tolerance: float,optional
default value is 1.0e-5
Returns
-------
None
") SameRange;
static void SameRange(const TopoDS_Edge & E, const Standard_Real Tolerance = 1.0e-5);
/****************** SortFaces ******************/
/**** md5 signature: c670dbe0a47983eb81dd61ba0887f298 ****/
%feature("compactdefaultargs") SortFaces;
%feature("autodoc", "Sorts in lf the faces of s on the complexity of their surfaces (plane,cylinder,cone,sphere,torus,other).
Parameters
----------
S: TopoDS_Shape
LF: TopTools_ListOfShape
Returns
-------
None
") SortFaces;
static void SortFaces(const TopoDS_Shape & S, TopTools_ListOfShape & LF);
/****************** UpdateEdgeTol ******************/
/**** md5 signature: 38bb8b704b359479ae8f63fd5e383848 ****/
%feature("compactdefaultargs") UpdateEdgeTol;
%feature("autodoc", "Checks if the edge has a tolerance smaller than -- -- -- -- maxtolerancetocheck if so it will compute the radius of -- the cylindrical pipe surface that mintolerancerequest is the minimum tolerance before it is usefull to start testing. usually it should be arround 10e-5 contains all -- the curve represenation of the edge returns true if the edge tolerance had to be updated.
Parameters
----------
E: TopoDS_Edge
MinToleranceRequest: float
MaxToleranceToCheck: float
Returns
-------
bool
") UpdateEdgeTol;
static Standard_Boolean UpdateEdgeTol(const TopoDS_Edge & E, const Standard_Real MinToleranceRequest, const Standard_Real MaxToleranceToCheck);
/****************** UpdateEdgeTolerance ******************/
/**** md5 signature: a900570e66aa87edd638ebad627eb240 ****/
%feature("compactdefaultargs") UpdateEdgeTolerance;
%feature("autodoc", "-- checks all the edges of the shape whose -- -- -- tolerance is smaller than maxtolerancetocheck -- returns true if at least one edge was updated -- mintolerancerequest is the minimum tolerance before -- it -- is usefull to start testing. usually it should be arround -- 10e-5-- //! warning :the method is very slow as it checks all. use only in interfaces or processing assimilate batch.
Parameters
----------
S: TopoDS_Shape
MinToleranceRequest: float
MaxToleranceToCheck: float
Returns
-------
bool
") UpdateEdgeTolerance;
static Standard_Boolean UpdateEdgeTolerance(const TopoDS_Shape & S, const Standard_Real MinToleranceRequest, const Standard_Real MaxToleranceToCheck);
/****************** UpdateInnerTolerances ******************/
/**** md5 signature: f8274e750a439791de5f4024a2905387 ****/
%feature("compactdefaultargs") UpdateInnerTolerances;
%feature("autodoc", "Checks tolerances of edges (including inner points) and vertices of a shape and updates them to satisfy 'sameparameter' condition.
Parameters
----------
S: TopoDS_Shape
Returns
-------
None
") UpdateInnerTolerances;
static void UpdateInnerTolerances(const TopoDS_Shape & S);
/****************** UpdateTolerances ******************/
/**** md5 signature: 0198d839071a3de5f272c500a29a7eae ****/
%feature("compactdefaultargs") UpdateTolerances;
%feature("autodoc", "Replaces tolerance of face edge vertex by the tolerance max of their connected handling shapes. it is not necessary to use this call after sameparameter. (called in).
Parameters
----------
S: TopoDS_Shape
verifyFaceTolerance: bool,optional
default value is Standard_False
Returns
-------
None
") UpdateTolerances;
static void UpdateTolerances(const TopoDS_Shape & S, const Standard_Boolean verifyFaceTolerance = Standard_False);
/****************** UpdateTolerances ******************/
/**** md5 signature: d1c1288e8bbb918e38ee02d611522fe2 ****/
%feature("compactdefaultargs") UpdateTolerances;
%feature("autodoc", "Replaces tolerance of face edge vertex by the tolerance max of their connected handling shapes. it is not necessary to use this call after sameparameter. (called in) thereshaper is used to record the modifications of input shape <s> to prevent any modifications on the shape itself. thus the input shape (and its subshapes) will not be modified, instead the reshaper will contain a modified empty-copies of original subshapes as substitutions.
Parameters
----------
S: TopoDS_Shape
theReshaper: BRepTools_ReShape
verifyFaceTolerance: bool,optional
default value is Standard_False
Returns
-------
None
") UpdateTolerances;
static void UpdateTolerances(const TopoDS_Shape & S, BRepTools_ReShape & theReshaper, const Standard_Boolean verifyFaceTolerance = Standard_False);
};
%extend BRepLib {
%pythoncode {
__repr__ = _dumps_object
@methodnotwrapped
def BuildPCurveForEdgesOnPlane(self):
pass
}
};
/************************************
* class BRepLib_CheckCurveOnSurface *
************************************/
class BRepLib_CheckCurveOnSurface {
public:
/****************** BRepLib_CheckCurveOnSurface ******************/
/**** md5 signature: 588c2b7becc8474a44af769cd1861cc0 ****/
%feature("compactdefaultargs") BRepLib_CheckCurveOnSurface;
%feature("autodoc", "Default contructor.
Returns
-------
None
") BRepLib_CheckCurveOnSurface;
BRepLib_CheckCurveOnSurface();
/****************** BRepLib_CheckCurveOnSurface ******************/
/**** md5 signature: 4463fa8016612b07a0638ab8e597c79a ****/
%feature("compactdefaultargs") BRepLib_CheckCurveOnSurface;
%feature("autodoc", "Contructor.
Parameters
----------
theEdge: TopoDS_Edge
theFace: TopoDS_Face
Returns
-------
None
") BRepLib_CheckCurveOnSurface;
BRepLib_CheckCurveOnSurface(const TopoDS_Edge & theEdge, const TopoDS_Face & theFace);
/****************** Curve ******************/
/**** md5 signature: 62a16889fb975efa1b2de012099c169b ****/
%feature("compactdefaultargs") Curve;
%feature("autodoc", "Returns source 3d-curve.
Returns
-------
opencascade::handle<Geom_Curve>
") Curve;
const opencascade::handle<Geom_Curve> & Curve();
/****************** ErrorStatus ******************/
/**** md5 signature: 23ccaf4f25108c0b871675cdf964cbf6 ****/
%feature("compactdefaultargs") ErrorStatus;
%feature("autodoc", "Returns error status the possible values are: 0 - ok; 1 - null curve or surface or 2d curve; 2 - invalid parametric range; 3 - error in calculations.
Returns
-------
int
") ErrorStatus;
Standard_Integer ErrorStatus();
/****************** Init ******************/
/**** md5 signature: 2a831d636c2c924d38adfdfa075e8336 ****/
%feature("compactdefaultargs") Init;
%feature("autodoc", "Sets the data for the algorithm.
Parameters
----------
theEdge: TopoDS_Edge
theFace: TopoDS_Face
Returns
-------
None
") Init;
void Init(const TopoDS_Edge & theEdge, const TopoDS_Face & theFace);
/****************** IsDone ******************/
/**** md5 signature: e385477ab1bec806154173d4a550fd68 ****/
%feature("compactdefaultargs") IsDone;
%feature("autodoc", "Returns true if the max distance has been found.
Returns
-------
bool
") IsDone;
Standard_Boolean IsDone();
/****************** MaxDistance ******************/
/**** md5 signature: eb56c1d1489e07dddfaf89c1bd00ff56 ****/
%feature("compactdefaultargs") MaxDistance;
%feature("autodoc", "Returns max distance.
Returns
-------
float
") MaxDistance;
Standard_Real MaxDistance();
/****************** MaxParameter ******************/
/**** md5 signature: 23a45560d6d0376bf4b799705df1e0c0 ****/
%feature("compactdefaultargs") MaxParameter;
%feature("autodoc", "Returns parameter in which the distance is maximal.
Returns
-------
float
") MaxParameter;
Standard_Real MaxParameter();
/****************** PCurve ******************/
/**** md5 signature: 02216b6aba2c78f7fc310936f46a0781 ****/
%feature("compactdefaultargs") PCurve;
%feature("autodoc", "Returns mine 2d-curve.
Returns
-------
opencascade::handle<Geom2d_Curve>
") PCurve;
const opencascade::handle<Geom2d_Curve> & PCurve();
/****************** PCurve2 ******************/
/**** md5 signature: 59fdc85af76719d116ff8e4e51299a26 ****/
%feature("compactdefaultargs") PCurve2;
%feature("autodoc", "Returns 2nd 2d-curve (if it exists, e.g. for seam-edge).
Returns
-------
opencascade::handle<Geom2d_Curve>
") PCurve2;
const opencascade::handle<Geom2d_Curve> & PCurve2();
/****************** Perform ******************/
/**** md5 signature: be005fa96430b01dfd3d5c428d6ad6e3 ****/
%feature("compactdefaultargs") Perform;
%feature("autodoc", "Performs the calculation if isthemultytheaddisabled == true then computation will be made without any parallelization.
Parameters
----------
isTheMultyTheradDisabled: bool,optional
default value is Standard_False
Returns
-------
None
") Perform;
void Perform(const Standard_Boolean isTheMultyTheradDisabled = Standard_False);
/****************** Range ******************/
/**** md5 signature: d6d291eeedf26e22d25b030eceff7dfa ****/
%feature("compactdefaultargs") Range;
%feature("autodoc", "Returns first and last parameter of the curves (2d- and 3d-curves are considered to have same range).
Parameters
----------
Returns
-------
theFirst: float
theLast: float
") Range;
void Range(Standard_Real &OutValue, Standard_Real &OutValue);
/****************** Surface ******************/
/**** md5 signature: 3aa31a6d63da8a25f018cf96599c0928 ****/
%feature("compactdefaultargs") Surface;
%feature("autodoc", "Returns source surface.
Returns
-------
opencascade::handle<Geom_Surface>
") Surface;
const opencascade::handle<Geom_Surface> & Surface();
};
%extend BRepLib_CheckCurveOnSurface {
%pythoncode {
__repr__ = _dumps_object
}
};
/************************
* class BRepLib_Command *
************************/
%nodefaultctor BRepLib_Command;
class BRepLib_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: ec0624071ec7da54b3d9dacc7bcb05f9 ****/
%feature("compactdefaultargs") IsDone;
%feature("autodoc", "No available documentation.
Returns
-------
bool
") IsDone;
Standard_Boolean IsDone();
};
%extend BRepLib_Command {
%pythoncode {
__repr__ = _dumps_object
}
};
/****************************
* class BRepLib_FindSurface *
****************************/
class BRepLib_FindSurface {
public:
/****************** BRepLib_FindSurface ******************/
/**** md5 signature: 05d2a378003b1863b90b5e71c7ee98ab ****/
%feature("compactdefaultargs") BRepLib_FindSurface;
%feature("autodoc", "No available documentation.
Returns
-------
None
") BRepLib_FindSurface;
BRepLib_FindSurface();
/****************** BRepLib_FindSurface ******************/
/**** md5 signature: b8cba8dda11d30fdcb78d4560e9a7962 ****/
%feature("compactdefaultargs") BRepLib_FindSurface;
%feature("autodoc", "Computes the surface from the edges of <s> with the given tolerance. if <onlyplane> is true, the computed surface will be a plane. if it is not possible to find a plane, the flag notdone will be set. if <onlyclosed> is true, then s sould be a wire and the existing surface, on which wire s is not closed in 2d, will be ignored.
Parameters
----------
S: TopoDS_Shape
Tol: float,optional
default value is -1
OnlyPlane: bool,optional
default value is Standard_False
OnlyClosed: bool,optional
default value is Standard_False
Returns
-------
None
") BRepLib_FindSurface;
BRepLib_FindSurface(const TopoDS_Shape & S, const Standard_Real Tol = -1, const Standard_Boolean OnlyPlane = Standard_False, const Standard_Boolean OnlyClosed = Standard_False);
/****************** Existed ******************/