forked from tpaviot/pythonocc-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBRepMesh.i
More file actions
4604 lines (3753 loc) · 136 KB
/
Copy pathBRepMesh.i
File metadata and controls
4604 lines (3753 loc) · 136 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 BREPMESHDOCSTRING
"BRepMesh module, see official documentation at
https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_brepmesh.html"
%enddef
%module (package="OCC.Core", docstring=BREPMESHDOCSTRING) BRepMesh
%{
#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<BRepMesh_Delaun.hxx>
#include<BRepMesh_module.hxx>
//Dependencies
#include<Standard_module.hxx>
#include<NCollection_module.hxx>
#include<IMeshTools_module.hxx>
#include<Message_module.hxx>
#include<gp_module.hxx>
#include<TopAbs_module.hxx>
#include<TopoDS_module.hxx>
#include<GeomAbs_module.hxx>
#include<TCollection_module.hxx>
#include<TColStd_module.hxx>
#include<BRepAdaptor_module.hxx>
#include<Adaptor3d_module.hxx>
#include<Poly_module.hxx>
#include<Bnd_module.hxx>
#include<TopLoc_module.hxx>
#include<Geom2d_module.hxx>
#include<Geom_module.hxx>
#include<IMeshData_module.hxx>
#include<TShort_module.hxx>
#include<Adaptor3d_module.hxx>
#include<Geom2dAdaptor_module.hxx>
#include<Message_module.hxx>
#include<Adaptor2d_module.hxx>
#include<GeomAdaptor_module.hxx>
#include<Geom_module.hxx>
#include<TopLoc_module.hxx>
#include<Geom2d_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 IMeshTools.i
%import Message.i
%import gp.i
%import TopAbs.i
%import TopoDS.i
%import GeomAbs.i
%import TCollection.i
%import TColStd.i
%import BRepAdaptor.i
%import Adaptor3d.i
%import Poly.i
%import Bnd.i
%import TopLoc.i
%import Geom2d.i
%import Geom.i
%import IMeshData.i
%pythoncode {
from enum import IntEnum
from OCC.Core.Exception import *
};
/* public enums */
enum BRepMesh_FactoryError {
BRepMesh_FE_NOERROR = 0,
BRepMesh_FE_LIBRARYNOTFOUND = 1,
BRepMesh_FE_FUNCTIONNOTFOUND = 2,
BRepMesh_FE_CANNOTCREATEALGO = 3,
};
enum BRepMesh_DegreeOfFreedom {
BRepMesh_Free = 0,
BRepMesh_InVolume = 1,
BRepMesh_OnSurface = 2,
BRepMesh_OnCurve = 3,
BRepMesh_Fixed = 4,
BRepMesh_Frontier = 5,
BRepMesh_Deleted = 6,
};
/* end public enums declaration */
/* python proy classes for enums */
%pythoncode {
class BRepMesh_FactoryError(IntEnum):
BRepMesh_FE_NOERROR = 0
BRepMesh_FE_LIBRARYNOTFOUND = 1
BRepMesh_FE_FUNCTIONNOTFOUND = 2
BRepMesh_FE_CANNOTCREATEALGO = 3
BRepMesh_FE_NOERROR = BRepMesh_FactoryError.BRepMesh_FE_NOERROR
BRepMesh_FE_LIBRARYNOTFOUND = BRepMesh_FactoryError.BRepMesh_FE_LIBRARYNOTFOUND
BRepMesh_FE_FUNCTIONNOTFOUND = BRepMesh_FactoryError.BRepMesh_FE_FUNCTIONNOTFOUND
BRepMesh_FE_CANNOTCREATEALGO = BRepMesh_FactoryError.BRepMesh_FE_CANNOTCREATEALGO
class BRepMesh_DegreeOfFreedom(IntEnum):
BRepMesh_Free = 0
BRepMesh_InVolume = 1
BRepMesh_OnSurface = 2
BRepMesh_OnCurve = 3
BRepMesh_Fixed = 4
BRepMesh_Frontier = 5
BRepMesh_Deleted = 6
BRepMesh_Free = BRepMesh_DegreeOfFreedom.BRepMesh_Free
BRepMesh_InVolume = BRepMesh_DegreeOfFreedom.BRepMesh_InVolume
BRepMesh_OnSurface = BRepMesh_DegreeOfFreedom.BRepMesh_OnSurface
BRepMesh_OnCurve = BRepMesh_DegreeOfFreedom.BRepMesh_OnCurve
BRepMesh_Fixed = BRepMesh_DegreeOfFreedom.BRepMesh_Fixed
BRepMesh_Frontier = BRepMesh_DegreeOfFreedom.BRepMesh_Frontier
BRepMesh_Deleted = BRepMesh_DegreeOfFreedom.BRepMesh_Deleted
};
/* end python proxy for enums */
/* handles */
%wrap_handle(BRepMesh_Classifier)
%wrap_handle(BRepMesh_DataStructureOfDelaun)
%wrap_handle(BRepMesh_Deflection)
%wrap_handle(BRepMesh_DiscretRoot)
%wrap_handle(BRepMesh_FaceChecker)
%wrap_handle(BRepMesh_MeshTool)
%wrap_handle(BRepMesh_SelectorOfDataStructureOfDelaun)
%wrap_handle(BRepMesh_ShapeTool)
%wrap_handle(BRepMesh_VertexTool)
%wrap_handle(BRepMesh_IncrementalMesh)
/* end handles declaration */
/* templates */
/* end templates declaration */
/* typedefs */
typedef Standard_Integer ( * BRepMesh_PluginEntryType ) ( const TopoDS_Shape & theShape, const Standard_Real theLinDeflection, const Standard_Real theAngDeflection, BRepMesh_DiscretRoot * & theMeshAlgoInstance );
/* end typedefs declaration */
/***********************
* class <anon-class-1> *
***********************/
/******************************
* class BRepMesh_BaseMeshAlgo *
******************************/
%nodefaultctor BRepMesh_BaseMeshAlgo;
class BRepMesh_BaseMeshAlgo : public IMeshTools_MeshAlgo {
public:
typedef NCollection_Shared<NCollection_Vector<gp_Pnt>> VectorOfPnt;
/****************** Perform ******************/
/**** md5 signature: d685bfcd2d4c1ddec38b4671470322e6 ****/
%feature("compactdefaultargs") Perform;
%feature("autodoc", "Performs processing of the given face.
Parameters
----------
theDFace: IMeshData::IFaceHandle
theParameters: IMeshTools_Parameters
theRange: Message_ProgressRange,optional
default value is Message_ProgressRange()
Returns
-------
None
") Perform;
virtual void Perform(const IMeshData::IFaceHandle & theDFace, const IMeshTools_Parameters & theParameters, const Message_ProgressRange & theRange = Message_ProgressRange());
};
%extend BRepMesh_BaseMeshAlgo {
%pythoncode {
__repr__ = _dumps_object
}
};
/************************
* class BRepMesh_Circle *
************************/
class BRepMesh_Circle {
public:
/****************** BRepMesh_Circle ******************/
/**** md5 signature: 351446427e4f3cd2ee3d37f31f7510db ****/
%feature("compactdefaultargs") BRepMesh_Circle;
%feature("autodoc", "Default constructor.
Returns
-------
None
") BRepMesh_Circle;
BRepMesh_Circle();
/****************** BRepMesh_Circle ******************/
/**** md5 signature: c5833c762e5c82e444de7dd2eceedecd ****/
%feature("compactdefaultargs") BRepMesh_Circle;
%feature("autodoc", "Constructor. @param thelocation location of a circle. @param theradius radius of a circle.
Parameters
----------
theLocation: gp_XY
theRadius: float
Returns
-------
None
") BRepMesh_Circle;
BRepMesh_Circle(const gp_XY & theLocation, const Standard_Real theRadius);
/****************** Location ******************/
/**** md5 signature: 2ecc9f07f1d8eda4bb4073a2c1f35c81 ****/
%feature("compactdefaultargs") Location;
%feature("autodoc", "Returns location of a circle.
Returns
-------
gp_XY
") Location;
const gp_XY Location();
/****************** Radius ******************/
/**** md5 signature: a23a06a93bcd6b6bd7a4525b4ccf66ac ****/
%feature("compactdefaultargs") Radius;
%feature("autodoc", "Returns radius of a circle.
Returns
-------
float
") Radius;
const Standard_Real & Radius();
/****************** SetLocation ******************/
/**** md5 signature: 9327d7a19f0eeac7a91ff9bb889d6b3f ****/
%feature("compactdefaultargs") SetLocation;
%feature("autodoc", "Sets location of a circle. @param thelocation location of a circle.
Parameters
----------
theLocation: gp_XY
Returns
-------
None
") SetLocation;
void SetLocation(const gp_XY & theLocation);
/****************** SetRadius ******************/
/**** md5 signature: ec1ecbc6b8d5250d29d2812fb870ef3b ****/
%feature("compactdefaultargs") SetRadius;
%feature("autodoc", "Sets radius of a circle. @param theradius radius of a circle.
Parameters
----------
theRadius: float
Returns
-------
None
") SetRadius;
void SetRadius(const Standard_Real theRadius);
};
%extend BRepMesh_Circle {
%pythoncode {
__repr__ = _dumps_object
}
};
/*********************************
* class BRepMesh_CircleInspector *
*********************************/
class BRepMesh_CircleInspector : public NCollection_CellFilter_InspectorXY {
public:
typedef Standard_Integer Target;
/****************** BRepMesh_CircleInspector ******************/
/**** md5 signature: 9e543288b820133538a575a6fc20eeb1 ****/
%feature("compactdefaultargs") BRepMesh_CircleInspector;
%feature("autodoc", "Constructor. @param thetolerance tolerance to be used for identification of shot circles. @param thereservedsize size to be reserved for vector of circles. @param theallocator memory allocator to be used by internal collections.
Parameters
----------
theTolerance: float
theReservedSize: int
theAllocator: NCollection_IncAllocator
Returns
-------
None
") BRepMesh_CircleInspector;
BRepMesh_CircleInspector(const Standard_Real theTolerance, const Standard_Integer theReservedSize, const opencascade::handle<NCollection_IncAllocator> & theAllocator);
/****************** Bind ******************/
/**** md5 signature: 7cebd699dfcb51866c850e6e54217a62 ****/
%feature("compactdefaultargs") Bind;
%feature("autodoc", "Adds the circle to vector of circles at the given position. @param theindex position of circle in the vector. @param thecircle circle to be added.
Parameters
----------
theIndex: int
theCircle: BRepMesh_Circle
Returns
-------
None
") Bind;
void Bind(const Standard_Integer theIndex, const BRepMesh_Circle & theCircle);
/****************** Circle ******************/
/**** md5 signature: 06e7c3749668870601f344d946e7bede ****/
%feature("compactdefaultargs") Circle;
%feature("autodoc", "Returns circle with the given index. @param theindex index of circle. returns circle with the given index.
Parameters
----------
theIndex: int
Returns
-------
BRepMesh_Circle
") Circle;
BRepMesh_Circle & Circle(const Standard_Integer theIndex);
/****************** Circles ******************/
/**** md5 signature: 5715a9c41d841e4058a32bbf582cd2f3 ****/
%feature("compactdefaultargs") Circles;
%feature("autodoc", "Resutns vector of registered circles.
Returns
-------
IMeshData::VectorOfCircle
") Circles;
const IMeshData::VectorOfCircle & Circles();
/****************** GetShotCircles ******************/
/**** md5 signature: c1409009f8ad619775420c881c945c8f ****/
%feature("compactdefaultargs") GetShotCircles;
%feature("autodoc", "Returns list of circles shot by the reference point.
Returns
-------
IMeshData::ListOfInteger
") GetShotCircles;
IMeshData::ListOfInteger & GetShotCircles();
/****************** Inspect ******************/
/**** md5 signature: 36ed0deca30ac42bb917d21f9193ca76 ****/
%feature("compactdefaultargs") Inspect;
%feature("autodoc", "Performs inspection of a circle with the given index. @param thetargetindex index of a circle to be checked. returns status of the check.
Parameters
----------
theTargetIndex: int
Returns
-------
NCollection_CellFilter_Action
") Inspect;
NCollection_CellFilter_Action Inspect(const Standard_Integer theTargetIndex);
/****************** IsEqual ******************/
/**** md5 signature: dd38878b9463f31ea5c2351dd2f590e3 ****/
%feature("compactdefaultargs") IsEqual;
%feature("autodoc", "Checks indices for equlity.
Parameters
----------
theIndex: int
theTargetIndex: int
Returns
-------
bool
") IsEqual;
static Standard_Boolean IsEqual(const Standard_Integer theIndex, const Standard_Integer theTargetIndex);
/****************** SetPoint ******************/
/**** md5 signature: b521bfcebdca3f9d4da8c66d87603bc7 ****/
%feature("compactdefaultargs") SetPoint;
%feature("autodoc", "Set reference point to be checked. @param thepoint bullet point.
Parameters
----------
thePoint: gp_XY
Returns
-------
None
") SetPoint;
void SetPoint(const gp_XY & thePoint);
};
%extend BRepMesh_CircleInspector {
%pythoncode {
__repr__ = _dumps_object
}
};
/****************************
* class BRepMesh_CircleTool *
****************************/
class BRepMesh_CircleTool {
public:
/****************** BRepMesh_CircleTool ******************/
/**** md5 signature: cd4fc4f8a4dbaf9bbda62ee6ed26b484 ****/
%feature("compactdefaultargs") BRepMesh_CircleTool;
%feature("autodoc", "Constructor. @param theallocator memory allocator to be used by internal structures.
Parameters
----------
theAllocator: NCollection_IncAllocator
Returns
-------
None
") BRepMesh_CircleTool;
BRepMesh_CircleTool(const opencascade::handle<NCollection_IncAllocator> & theAllocator);
/****************** BRepMesh_CircleTool ******************/
/**** md5 signature: c6eb5dae5ac79dcae0854f80344cf319 ****/
%feature("compactdefaultargs") BRepMesh_CircleTool;
%feature("autodoc", "Constructor. @param thereservedsize size to be reserved for vector of circles. @param theallocator memory allocator to be used by internal structures.
Parameters
----------
theReservedSize: int
theAllocator: NCollection_IncAllocator
Returns
-------
None
") BRepMesh_CircleTool;
BRepMesh_CircleTool(const Standard_Integer theReservedSize, const opencascade::handle<NCollection_IncAllocator> & theAllocator);
/****************** Bind ******************/
/**** md5 signature: 154690b42ecbd10f375f8b7af8b5b652 ****/
%feature("compactdefaultargs") Bind;
%feature("autodoc", "Binds the circle to the tool. @param theindex index a circle should be bound with. @param thecircle circle to be bound.
Parameters
----------
theIndex: int
theCircle: gp_Circ2d
Returns
-------
None
") Bind;
void Bind(const Standard_Integer theIndex, const gp_Circ2d & theCircle);
/****************** Bind ******************/
/**** md5 signature: 6c8a2596059211c4304b11964bd3737f ****/
%feature("compactdefaultargs") Bind;
%feature("autodoc", "Computes circle on three points and bind it to the tool. @param theindex index a circle should be bound with. @param thepoint1 first point. @param thepoint2 second point. @param thepoint3 third point. returns false in case of impossibility to build a circle on the given points, true elsewhere.
Parameters
----------
theIndex: int
thePoint1: gp_XY
thePoint2: gp_XY
thePoint3: gp_XY
Returns
-------
bool
") Bind;
Standard_Boolean Bind(const Standard_Integer theIndex, const gp_XY & thePoint1, const gp_XY & thePoint2, const gp_XY & thePoint3);
/****************** Delete ******************/
/**** md5 signature: 071690f016ae5c038b98161e982d077e ****/
%feature("compactdefaultargs") Delete;
%feature("autodoc", "Deletes a circle from the tool. @param theindex index of a circle to be removed.
Parameters
----------
theIndex: int
Returns
-------
None
") Delete;
void Delete(const Standard_Integer theIndex);
/****************** Init ******************/
/**** md5 signature: 3dd4080a86e69636d0123b416448c0ee ****/
%feature("compactdefaultargs") Init;
%feature("autodoc", "Initializes the tool. @param thereservedsize size to be reserved for vector of circles.
Parameters
----------
Standard_Integer:
Returns
-------
None
") Init;
void Init(const Standard_Integer);
/****************** IsEmpty ******************/
/**** md5 signature: d529c07ce9e12eea3222188c82b0e80b ****/
%feature("compactdefaultargs") IsEmpty;
%feature("autodoc", "Retruns true if cell filter contains no circle.
Returns
-------
bool
") IsEmpty;
Standard_Boolean IsEmpty();
/****************** MakeCircle ******************/
/**** md5 signature: 46bcabfe7710c009f41e63b1f25fea06 ****/
%feature("compactdefaultargs") MakeCircle;
%feature("autodoc", "Computes circle on three points. @param thepoint1 first point. @param thepoint2 second point. @param thepoint3 third point. @param[out] thelocation center of computed circle. @param[out] theradius radius of computed circle. returns false in case of impossibility to build a circle on the given points, true elsewhere.
Parameters
----------
thePoint1: gp_XY
thePoint2: gp_XY
thePoint3: gp_XY
theLocation: gp_XY
Returns
-------
theRadius: float
") MakeCircle;
static Standard_Boolean MakeCircle(const gp_XY & thePoint1, const gp_XY & thePoint2, const gp_XY & thePoint3, gp_XY & theLocation, Standard_Real &OutValue);
/****************** MocBind ******************/
/**** md5 signature: ef973aed188f7fc29293e962039e4ce6 ****/
%feature("compactdefaultargs") MocBind;
%feature("autodoc", "Binds implicit zero circle. @param theindex index a zero circle should be bound with.
Parameters
----------
theIndex: int
Returns
-------
None
") MocBind;
void MocBind(const Standard_Integer theIndex);
/****************** Select ******************/
/**** md5 signature: 42d7f08c8f789406b882043c70333ebd ****/
%feature("compactdefaultargs") Select;
%feature("autodoc", "Select the circles shot by the given point. @param thepoint bullet point.
Parameters
----------
thePoint: gp_XY
Returns
-------
IMeshData::ListOfInteger
") Select;
IMeshData::ListOfInteger & Select(const gp_XY & thePoint);
/****************** SetCellSize ******************/
/**** md5 signature: 415a8b91be50170d2af0ba27dd19bc6c ****/
%feature("compactdefaultargs") SetCellSize;
%feature("autodoc", "Sets new size for cell filter. @param thesize cell size to be set for x and y dimensions.
Parameters
----------
theSize: float
Returns
-------
None
") SetCellSize;
void SetCellSize(const Standard_Real theSize);
/****************** SetCellSize ******************/
/**** md5 signature: 28e49b1c038f46447a07e18f6d52b3eb ****/
%feature("compactdefaultargs") SetCellSize;
%feature("autodoc", "Sets new size for cell filter. @param thesizex cell size to be set for x dimension. @param thesizey cell size to be set for y dimension.
Parameters
----------
theSizeX: float
theSizeY: float
Returns
-------
None
") SetCellSize;
void SetCellSize(const Standard_Real theSizeX, const Standard_Real theSizeY);
/****************** SetMinMaxSize ******************/
/**** md5 signature: f153182deac2fb83c6f4bb26b9903fb1 ****/
%feature("compactdefaultargs") SetMinMaxSize;
%feature("autodoc", "Sets limits of inspection area. @param themin bottom left corner of inspection area. @param themax top right corner of inspection area.
Parameters
----------
theMin: gp_XY
theMax: gp_XY
Returns
-------
None
") SetMinMaxSize;
void SetMinMaxSize(const gp_XY & theMin, const gp_XY & theMax);
};
%extend BRepMesh_CircleTool {
%pythoncode {
__repr__ = _dumps_object
}
};
/****************************
* class BRepMesh_Classifier *
****************************/
class BRepMesh_Classifier : public Standard_Transient {
public:
/****************** BRepMesh_Classifier ******************/
/**** md5 signature: 985f7a67456acfd7e203609355094286 ****/
%feature("compactdefaultargs") BRepMesh_Classifier;
%feature("autodoc", "Constructor.
Returns
-------
None
") BRepMesh_Classifier;
BRepMesh_Classifier();
/****************** Perform ******************/
/**** md5 signature: 668466fd138ea01dcd174ac83e766ee1 ****/
%feature("compactdefaultargs") Perform;
%feature("autodoc", "Performs classification of the given point regarding to face internals. @param thepoint point in parametric space to be classified. returns topabs_in if point lies within face boundaries and topabs_out elsewhere.
Parameters
----------
thePoint: gp_Pnt2d
Returns
-------
TopAbs_State
") Perform;
TopAbs_State Perform(const gp_Pnt2d & thePoint);
/****************** RegisterWire ******************/
/**** md5 signature: 9967b6710a5502eb1c8eafb8149cecf8 ****/
%feature("compactdefaultargs") RegisterWire;
%feature("autodoc", "Registers wire specified by sequence of points for further classification of points. @param thewire wire to be registered. specified by sequence of points. @param thetoluv tolerance to be used for calculations in parametric space. @param theumin lower u boundary of the face in parametric space. @param theumax upper u boundary of the face in parametric space. @param thevmin lower v boundary of the face in parametric space. @param thevmax upper v boundary of the face in parametric space.
Parameters
----------
theWire: NCollection_Sequence< gp_Pnt2d *>
theTolUV: std::pair<float, float>
theRangeU: std::pair<float, float>
theRangeV: std::pair<float, float>
Returns
-------
None
") RegisterWire;
void RegisterWire(const NCollection_Sequence<const gp_Pnt2d *> & theWire, const std::pair<Standard_Real, Standard_Real> & theTolUV, const std::pair<Standard_Real, Standard_Real> & theRangeU, const std::pair<Standard_Real, Standard_Real> & theRangeV);
};
%make_alias(BRepMesh_Classifier)
%extend BRepMesh_Classifier {
%pythoncode {
__repr__ = _dumps_object
}
};
/*************************
* class BRepMesh_Context *
*************************/
class BRepMesh_Context : public IMeshTools_Context {
public:
/****************** BRepMesh_Context ******************/
/**** md5 signature: b9a5ecaf630ba21afab7902c0bd2fa8b ****/
%feature("compactdefaultargs") BRepMesh_Context;
%feature("autodoc", "Constructor.
Parameters
----------
theMeshType: IMeshTools_MeshAlgoType,optional
default value is IMeshTools_MeshAlgoType_DEFAULT
Returns
-------
None
") BRepMesh_Context;
BRepMesh_Context(IMeshTools_MeshAlgoType theMeshType = IMeshTools_MeshAlgoType_DEFAULT);
};
%extend BRepMesh_Context {
%pythoncode {
__repr__ = _dumps_object
}
};
/**********************************
* class BRepMesh_CurveTessellator *
**********************************/
class BRepMesh_CurveTessellator : public IMeshTools_CurveTessellator {
public:
/****************** BRepMesh_CurveTessellator ******************/
/**** md5 signature: 3593aae58628fa87930993b4428a5e2a ****/
%feature("compactdefaultargs") BRepMesh_CurveTessellator;
%feature("autodoc", "Constructor.
Parameters
----------
theEdge: IMeshData::IEdgeHandle
theParameters: IMeshTools_Parameters
Returns
-------
None
") BRepMesh_CurveTessellator;
BRepMesh_CurveTessellator(const IMeshData::IEdgeHandle & theEdge, const IMeshTools_Parameters & theParameters);
/****************** BRepMesh_CurveTessellator ******************/
/**** md5 signature: 9a2c9c5077d96f99b2955155e2ab2441 ****/
%feature("compactdefaultargs") BRepMesh_CurveTessellator;
%feature("autodoc", "Constructor.
Parameters
----------
theEdge: IMeshData::IEdgeHandle
theOrientation: TopAbs_Orientation
theFace: IMeshData::IFaceHandle
theParameters: IMeshTools_Parameters
Returns
-------
None
") BRepMesh_CurveTessellator;
BRepMesh_CurveTessellator(const IMeshData::IEdgeHandle & theEdge, const TopAbs_Orientation theOrientation, const IMeshData::IFaceHandle & theFace, const IMeshTools_Parameters & theParameters);
/****************** PointsNb ******************/
/**** md5 signature: c7dec7b525c6ed3a148d8633ce567fe8 ****/
%feature("compactdefaultargs") PointsNb;
%feature("autodoc", "Returns number of tessellation points.
Returns
-------
int
") PointsNb;
virtual Standard_Integer PointsNb();
/****************** Value ******************/
/**** md5 signature: 4110d8d1bb060691997a3dfc00ca0b94 ****/
%feature("compactdefaultargs") Value;
%feature("autodoc", "Returns parameters of solution with the given index. @param theindex index of tessellation point. @param theparameter parameters on pcurve corresponded to the solution. @param thepoint tessellation point. returns true in case of valid result, false elewhere.
Parameters
----------
theIndex: int
thePoint: gp_Pnt
Returns
-------
theParameter: float
") Value;
virtual Standard_Boolean Value(const Standard_Integer theIndex, gp_Pnt & thePoint, Standard_Real &OutValue);
};
%extend BRepMesh_CurveTessellator {
%pythoncode {
__repr__ = _dumps_object
}
};
/********************************************
* class BRepMesh_CustomDelaunayBaseMeshAlgo *
********************************************/
/***************************************
* class BRepMesh_DataStructureOfDelaun *
***************************************/
class BRepMesh_DataStructureOfDelaun : public Standard_Transient {
public:
/****************** BRepMesh_DataStructureOfDelaun ******************/
/**** md5 signature: 2287ac69950ef2b0749f3b921b91ce4f ****/
%feature("compactdefaultargs") BRepMesh_DataStructureOfDelaun;
%feature("autodoc", "Constructor. @param theallocator memory allocator to be used by internal structures. @param thereservednodesize presumed number of nodes in this mesh.
Parameters
----------
theAllocator: NCollection_IncAllocator
theReservedNodeSize: int,optional
default value is 100
Returns
-------
None
") BRepMesh_DataStructureOfDelaun;
BRepMesh_DataStructureOfDelaun(const opencascade::handle<NCollection_IncAllocator> & theAllocator, const Standard_Integer theReservedNodeSize = 100);
/****************** AddElement ******************/
/**** md5 signature: 94a8b8e1417772021ce81c09a3356dbe ****/
%feature("compactdefaultargs") AddElement;
%feature("autodoc", "Adds element to the mesh if it is not already in the mesh. @param theelement element to be added to the mesh. returns index of the element in the structure.
Parameters
----------
theElement: BRepMesh_Triangle
Returns
-------
int
") AddElement;
Standard_Integer AddElement(const BRepMesh_Triangle & theElement);
/****************** AddLink ******************/
/**** md5 signature: 4691508da394d212a95c84d4b6e052e8 ****/
%feature("compactdefaultargs") AddLink;
%feature("autodoc", "Adds link to the mesh if it is not already in the mesh. @param thelink link to be added to the mesh. returns index of the link in the structure.
Parameters
----------
theLink: BRepMesh_Edge
Returns
-------
int
") AddLink;
Standard_Integer AddLink(const BRepMesh_Edge & theLink);
/****************** AddNode ******************/
/**** md5 signature: 0516fd4a8f3c95f7b1ed562c74328f62 ****/
%feature("compactdefaultargs") AddNode;
%feature("autodoc", "Adds node to the mesh if it is not already in the mesh. @param thenode node to be added to the mesh. @param isforceadd adds the given node to structure without checking on coincidence with other nodes. returns index of the node in the structure.
Parameters
----------
theNode: BRepMesh_Vertex
isForceAdd: bool,optional
default value is Standard_False
Returns
-------
int
") AddNode;
Standard_Integer AddNode(const BRepMesh_Vertex & theNode, const Standard_Boolean isForceAdd = Standard_False);
/****************** Allocator ******************/
/**** md5 signature: f62593783d4573ef5624106d77d9bbd9 ****/
%feature("compactdefaultargs") Allocator;
%feature("autodoc", "Returns memory allocator used by the structure.
Returns
-------
opencascade::handle<NCollection_IncAllocator>
") Allocator;
const opencascade::handle<NCollection_IncAllocator> & Allocator();
/****************** ClearDeleted ******************/
/**** md5 signature: 2f79f0e58312517eed899c340fbc034c ****/
%feature("compactdefaultargs") ClearDeleted;
%feature("autodoc", "Substitutes deleted items by the last one from corresponding map to have only non-deleted elements, links or nodes in the structure.
Returns
-------
None
") ClearDeleted;
void ClearDeleted();
/****************** ClearDomain ******************/
/**** md5 signature: cba3b5048c974ffd2154c94ad129dd31 ****/
%feature("compactdefaultargs") ClearDomain;
%feature("autodoc", "Removes all elements.
Returns
-------
None
") ClearDomain;
void ClearDomain();
/****************** Data ******************/
/**** md5 signature: 60a87eb41dbe1e7bddca17ebc155ae95 ****/
%feature("compactdefaultargs") Data;
%feature("autodoc", "Gives the data structure for initialization of cell size and tolerance.
Returns
-------
opencascade::handle<BRepMesh_VertexTool>
") Data;
const opencascade::handle<BRepMesh_VertexTool> & Data();
/****************** Dump ******************/
/**** md5 signature: d3d8c72524995f78a1b0cc6995a49cf5 ****/
%feature("compactdefaultargs") Dump;
%feature("autodoc", "No available documentation.
Parameters
----------
theFileNameStr: char *
Returns
-------
None
") Dump;
void Dump(const char * theFileNameStr);
/****************** ElementNodes ******************/
/**** md5 signature: 5db4f2cf5cd97ae13ac71bb7f7bf46de ****/
%feature("compactdefaultargs") ElementNodes;
%feature("autodoc", "Returns indices of nodes forming the given element. @param theelement element which nodes should be retrieved. @param[out] thenodes nodes of the given element.
Parameters
----------
theElement: BRepMesh_Triangle
): int ( theNodes
Returns
-------
None
") ElementNodes;
void ElementNodes(const BRepMesh_Triangle & theElement, Standard_Integer ( & theNodes )[3]);
/****************** ElementsConnectedTo ******************/
/**** md5 signature: 6a0793321d2308e1d5fc176a3a016706 ****/
%feature("compactdefaultargs") ElementsConnectedTo;
%feature("autodoc", "Returns indices of elements conected to the link with the given index. @param thelinkindex index of link whose data should be retrieved. returns indices of elements conected to the link.
Parameters
----------
theLinkIndex: int
Returns
-------
BRepMesh_PairOfIndex
") ElementsConnectedTo;
const BRepMesh_PairOfIndex & ElementsConnectedTo(const Standard_Integer theLinkIndex);
/****************** ElementsOfDomain ******************/
/**** md5 signature: 69b3fc4ed234e9f90fe6024d34e76746 ****/
%feature("compactdefaultargs") ElementsOfDomain;
%feature("autodoc", "Returns map of indices of elements registered in mesh.
Returns
-------
IMeshData::MapOfInteger
") ElementsOfDomain;
const IMeshData::MapOfInteger & ElementsOfDomain();
/****************** GetElement ******************/
/**** md5 signature: c9b9801039484bfc9f57f5dc42578498 ****/
%feature("compactdefaultargs") GetElement;
%feature("autodoc", "Get element by the index. @param theindex index of an element. returns element with the given index.
Parameters
----------
theIndex: int
Returns
-------
BRepMesh_Triangle
") GetElement;
const BRepMesh_Triangle & GetElement(const Standard_Integer theIndex);
/****************** GetLink ******************/
/**** md5 signature: 4ab6f14e075232adda60803210dc0a9f ****/