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
|
// std lib related includes
#include <tuple>
// pybind 11 related includes
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
// Standard Handle
#include <Standard_Handle.hxx>
// includes to resolve forward declarations
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Geom_Surface.hxx>
#include <TopoDS_Face.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS_Compound.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <BRepAlgo_AsDes.hxx>
#include <BRepAlgo_Image.hxx>
#include <BRepOffset_Analyse.hxx>
#include <BRepOffset_Offset.hxx>
#include <TopoDS_Face.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <BRepAlgo_AsDes.hxx>
#include <BRepAlgo_Image.hxx>
#include <BRepOffset_Analyse.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <BRepAlgo_AsDes.hxx>
#include <BRepAlgo_Image.hxx>
#include <BRepOffset_Analyse.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <BRepAlgo_AsDes.hxx>
#include <BRepOffset_Inter3d.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Vertex.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopoDS_Face.hxx>
#include <BRepOffset_Analyse.hxx>
#include <TopoDS_Wire.hxx>
#include <BRepAlgo_AsDes.hxx>
#include <BRepAlgo_Image.hxx>
#include <Geom_Curve.hxx>
// module includes
#include <BRepOffset.hxx>
#include <BRepOffset_Analyse.hxx>
#include <BRepOffset_DataMapIteratorOfDataMapOfShapeListOfInterval.hxx>
#include <BRepOffset_DataMapIteratorOfDataMapOfShapeMapOfShape.hxx>
#include <BRepOffset_DataMapIteratorOfDataMapOfShapeOffset.hxx>
#include <BRepOffset_DataMapOfShapeListOfInterval.hxx>
#include <BRepOffset_DataMapOfShapeMapOfShape.hxx>
#include <BRepOffset_DataMapOfShapeOffset.hxx>
#include <BRepOffset_Error.hxx>
#include <BRepOffset_Inter2d.hxx>
#include <BRepOffset_Inter3d.hxx>
#include <BRepOffset_Interval.hxx>
#include <BRepOffset_ListIteratorOfListOfInterval.hxx>
#include <BRepOffset_ListOfInterval.hxx>
#include <BRepOffset_MakeLoops.hxx>
#include <BRepOffset_MakeOffset.hxx>
#include <BRepOffset_MakeSimpleOffset.hxx>
#include <BRepOffset_Mode.hxx>
#include <BRepOffset_Offset.hxx>
#include <BRepOffset_SimpleOffset.hxx>
#include <BRepOffset_Status.hxx>
#include <BRepOffset_Tool.hxx>
// template related includes
// ./opencascade/BRepOffset_DataMapOfShapeListOfInterval.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/BRepOffset_DataMapOfShapeListOfInterval.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/BRepOffset_DataMapOfShapeMapOfShape.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/BRepOffset_DataMapOfShapeMapOfShape.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/BRepOffset_DataMapOfShapeOffset.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/BRepOffset_DataMapOfShapeOffset.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/BRepOffset_ListOfInterval.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/BRepOffset_ListOfInterval.hxx
#include "NCollection_tmpl.hxx"
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_BRepOffset(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("BRepOffset"));
py::object klass;
//Python trampoline classes
// classes
// Class BRepOffset from ./opencascade/BRepOffset.hxx
klass = m.attr("BRepOffset");
// default constructor
register_default_constructor<BRepOffset , shared_ptr<BRepOffset>>(m,"BRepOffset");
// nested enums
static_cast<py::class_<BRepOffset , shared_ptr<BRepOffset> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("Surface_s",
(opencascade::handle<Geom_Surface> (*)( const opencascade::handle<Geom_Surface> & , const Standard_Real , BRepOffset_Status & , Standard_Boolean ) ) static_cast<opencascade::handle<Geom_Surface> (*)( const opencascade::handle<Geom_Surface> & , const Standard_Real , BRepOffset_Status & , Standard_Boolean ) >(&BRepOffset::Surface),
R"#(returns the Offset surface computed from the surface <Surface> at an OffsetDistance <Offset>.)#" , py::arg("Surface"), py::arg("Offset"), py::arg("theStatus"), py::arg("allowC0")=static_cast<Standard_Boolean>(Standard_False)
)
.def_static("CollapseSingularities_s",
(opencascade::handle<Geom_Surface> (*)( const opencascade::handle<Geom_Surface> & , const TopoDS_Face & , Standard_Real ) ) static_cast<opencascade::handle<Geom_Surface> (*)( const opencascade::handle<Geom_Surface> & , const TopoDS_Face & , Standard_Real ) >(&BRepOffset::CollapseSingularities),
R"#(Preprocess surface to be offset (bspline, bezier, or revolution based on bspline or bezier curve), by collapsing each singular side to single point.)#" , py::arg("theSurface"), py::arg("theFace"), py::arg("thePrecision")
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class BRepOffset_Analyse from ./opencascade/BRepOffset_Analyse.hxx
klass = m.attr("BRepOffset_Analyse");
// nested enums
static_cast<py::class_<BRepOffset_Analyse , shared_ptr<BRepOffset_Analyse> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Shape &,const Standard_Real >() , py::arg("theS"), py::arg("theAngle") )
// custom constructors
// methods
.def("Perform",
(void (BRepOffset_Analyse::*)( const TopoDS_Shape & , const Standard_Real , const Message_ProgressRange & ) ) static_cast<void (BRepOffset_Analyse::*)( const TopoDS_Shape & , const Standard_Real , const Message_ProgressRange & ) >(&BRepOffset_Analyse::Perform),
R"#(Performs the analysis)#" , py::arg("theS"), py::arg("theAngle"), py::arg("theRange")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("IsDone",
(Standard_Boolean (BRepOffset_Analyse::*)() const) static_cast<Standard_Boolean (BRepOffset_Analyse::*)() const>(&BRepOffset_Analyse::IsDone),
R"#(Returns status of the algorithm)#"
)
.def("Type",
(const BRepOffset_ListOfInterval & (BRepOffset_Analyse::*)( const TopoDS_Edge & ) const) static_cast<const BRepOffset_ListOfInterval & (BRepOffset_Analyse::*)( const TopoDS_Edge & ) const>(&BRepOffset_Analyse::Type),
R"#(Returns the connectivity type of the edge)#" , py::arg("theE")
)
.def("Edges",
(void (BRepOffset_Analyse::*)( const TopoDS_Vertex & , const ChFiDS_TypeOfConcavity , NCollection_List<TopoDS_Shape> & ) const) static_cast<void (BRepOffset_Analyse::*)( const TopoDS_Vertex & , const ChFiDS_TypeOfConcavity , NCollection_List<TopoDS_Shape> & ) const>(&BRepOffset_Analyse::Edges),
R"#(Stores in <L> all the edges of Type <T> on the vertex <V>.)#" , py::arg("theV"), py::arg("theType"), py::arg("theL")
)
.def("Edges",
(void (BRepOffset_Analyse::*)( const TopoDS_Face & , const ChFiDS_TypeOfConcavity , NCollection_List<TopoDS_Shape> & ) const) static_cast<void (BRepOffset_Analyse::*)( const TopoDS_Face & , const ChFiDS_TypeOfConcavity , NCollection_List<TopoDS_Shape> & ) const>(&BRepOffset_Analyse::Edges),
R"#(Stores in <L> all the edges of Type <T> on the face <F>.)#" , py::arg("theF"), py::arg("theType"), py::arg("theL")
)
.def("TangentEdges",
(void (BRepOffset_Analyse::*)( const TopoDS_Edge & , const TopoDS_Vertex & , NCollection_List<TopoDS_Shape> & ) const) static_cast<void (BRepOffset_Analyse::*)( const TopoDS_Edge & , const TopoDS_Vertex & , NCollection_List<TopoDS_Shape> & ) const>(&BRepOffset_Analyse::TangentEdges),
R"#(set in <Edges> all the Edges of <Shape> which are tangent to <Edge> at the vertex <Vertex>.)#" , py::arg("theEdge"), py::arg("theVertex"), py::arg("theEdges")
)
.def("HasAncestor",
(Standard_Boolean (BRepOffset_Analyse::*)( const TopoDS_Shape & ) const) static_cast<Standard_Boolean (BRepOffset_Analyse::*)( const TopoDS_Shape & ) const>(&BRepOffset_Analyse::HasAncestor),
R"#(Checks if the given shape has ancestors)#" , py::arg("theS")
)
.def("Ancestors",
(const TopTools_ListOfShape & (BRepOffset_Analyse::*)( const TopoDS_Shape & ) const) static_cast<const TopTools_ListOfShape & (BRepOffset_Analyse::*)( const TopoDS_Shape & ) const>(&BRepOffset_Analyse::Ancestors),
R"#(Returns ancestors for the shape)#" , py::arg("theS")
)
.def("Explode",
(void (BRepOffset_Analyse::*)( NCollection_List<TopoDS_Shape> & , const ChFiDS_TypeOfConcavity ) const) static_cast<void (BRepOffset_Analyse::*)( NCollection_List<TopoDS_Shape> & , const ChFiDS_TypeOfConcavity ) const>(&BRepOffset_Analyse::Explode),
R"#(Explode in compounds of faces where all the connex edges are of type <Side>)#" , py::arg("theL"), py::arg("theType")
)
.def("Explode",
(void (BRepOffset_Analyse::*)( NCollection_List<TopoDS_Shape> & , const ChFiDS_TypeOfConcavity , const ChFiDS_TypeOfConcavity ) const) static_cast<void (BRepOffset_Analyse::*)( NCollection_List<TopoDS_Shape> & , const ChFiDS_TypeOfConcavity , const ChFiDS_TypeOfConcavity ) const>(&BRepOffset_Analyse::Explode),
R"#(Explode in compounds of faces where all the connex edges are of type <Side1> or <Side2>)#" , py::arg("theL"), py::arg("theType1"), py::arg("theType2")
)
.def("AddFaces",
(void (BRepOffset_Analyse::*)( const TopoDS_Face & , TopoDS_Compound & , NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> & , const ChFiDS_TypeOfConcavity ) const) static_cast<void (BRepOffset_Analyse::*)( const TopoDS_Face & , TopoDS_Compound & , NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> & , const ChFiDS_TypeOfConcavity ) const>(&BRepOffset_Analyse::AddFaces),
R"#(Add in <CO> the faces of the shell containing <Face> where all the connex edges are of type <Side>.)#" , py::arg("theFace"), py::arg("theCo"), py::arg("theMap"), py::arg("theType")
)
.def("AddFaces",
(void (BRepOffset_Analyse::*)( const TopoDS_Face & , TopoDS_Compound & , NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> & , const ChFiDS_TypeOfConcavity , const ChFiDS_TypeOfConcavity ) const) static_cast<void (BRepOffset_Analyse::*)( const TopoDS_Face & , TopoDS_Compound & , NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> & , const ChFiDS_TypeOfConcavity , const ChFiDS_TypeOfConcavity ) const>(&BRepOffset_Analyse::AddFaces),
R"#(Add in <CO> the faces of the shell containing <Face> where all the connex edges are of type <Side1> or <Side2>.)#" , py::arg("theFace"), py::arg("theCo"), py::arg("theMap"), py::arg("theType1"), py::arg("theType2")
)
.def("SetOffsetValue",
(void (BRepOffset_Analyse::*)( const Standard_Real ) ) static_cast<void (BRepOffset_Analyse::*)( const Standard_Real ) >(&BRepOffset_Analyse::SetOffsetValue),
R"#(None)#" , py::arg("theOffset")
)
.def("SetFaceOffsetMap",
(void (BRepOffset_Analyse::*)( const NCollection_DataMap<TopoDS_Shape, Standard_Real, TopTools_ShapeMapHasher> & ) ) static_cast<void (BRepOffset_Analyse::*)( const NCollection_DataMap<TopoDS_Shape, Standard_Real, TopTools_ShapeMapHasher> & ) >(&BRepOffset_Analyse::SetFaceOffsetMap),
R"#(Sets the face-offset data map to analyze tangential cases)#" , py::arg("theMap")
)
.def("Generated",
(TopoDS_Shape (BRepOffset_Analyse::*)( const TopoDS_Shape & ) const) static_cast<TopoDS_Shape (BRepOffset_Analyse::*)( const TopoDS_Shape & ) const>(&BRepOffset_Analyse::Generated),
R"#(Returns the new face constructed for the edge connecting the two tangent faces having different offset values)#" , py::arg("theS")
)
.def("HasGenerated",
(Standard_Boolean (BRepOffset_Analyse::*)( const TopoDS_Shape & ) const) static_cast<Standard_Boolean (BRepOffset_Analyse::*)( const TopoDS_Shape & ) const>(&BRepOffset_Analyse::HasGenerated),
R"#(Checks if the edge has generated a new face.)#" , py::arg("theS")
)
.def("EdgeReplacement",
(const TopoDS_Edge & (BRepOffset_Analyse::*)( const TopoDS_Face & , const TopoDS_Edge & ) const) static_cast<const TopoDS_Edge & (BRepOffset_Analyse::*)( const TopoDS_Face & , const TopoDS_Edge & ) const>(&BRepOffset_Analyse::EdgeReplacement),
R"#(Returns the replacement of the edge in the face. If no replacement exists, returns the edge)#" , py::arg("theFace"), py::arg("theEdge")
)
.def("Descendants",
(const TopTools_ListOfShape * (BRepOffset_Analyse::*)( const TopoDS_Shape & , const Standard_Boolean ) const) static_cast<const TopTools_ListOfShape * (BRepOffset_Analyse::*)( const TopoDS_Shape & , const Standard_Boolean ) const>(&BRepOffset_Analyse::Descendants),
R"#(Returns the shape descendants.)#" , py::arg("theS"), py::arg("theUpdate")=static_cast<const Standard_Boolean>(Standard_False)
)
.def("Clear",
(void (BRepOffset_Analyse::*)() ) static_cast<void (BRepOffset_Analyse::*)() >(&BRepOffset_Analyse::Clear),
R"#(Clears the content of the algorithm)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("NewFaces",
(const TopTools_ListOfShape & (BRepOffset_Analyse::*)() const) static_cast<const TopTools_ListOfShape & (BRepOffset_Analyse::*)() const>(&BRepOffset_Analyse::NewFaces),
R"#(Returns the new faces constructed between tangent faces having different offset values on the shape)#"
)
;
// Class BRepOffset_Inter2d from ./opencascade/BRepOffset_Inter2d.hxx
klass = m.attr("BRepOffset_Inter2d");
// default constructor
register_default_constructor<BRepOffset_Inter2d , shared_ptr<BRepOffset_Inter2d>>(m,"BRepOffset_Inter2d");
// nested enums
static_cast<py::class_<BRepOffset_Inter2d , shared_ptr<BRepOffset_Inter2d> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("Compute_s",
(void (*)( const opencascade::handle<BRepAlgo_AsDes> & , const TopoDS_Face & , const NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher> & , const Standard_Real , const NCollection_DataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , NCollection_IndexedDataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , const Message_ProgressRange & ) ) static_cast<void (*)( const opencascade::handle<BRepAlgo_AsDes> & , const TopoDS_Face & , const NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher> & , const Standard_Real , const NCollection_DataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , NCollection_IndexedDataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , const Message_ProgressRange & ) >(&BRepOffset_Inter2d::Compute),
R"#(Computes the intersections between the edges stored is AsDes as descendants of <F> . Intersections is computed between two edges if one of them is bound in NewEdges. When all faces of the shape are treated the intersection vertices have to be fused using the FuseVertices method. theDMVV contains the vertices that should be fused)#" , py::arg("AsDes"), py::arg("F"), py::arg("NewEdges"), py::arg("Tol"), py::arg("theEdgeIntEdges"), py::arg("theDMVV"), py::arg("theRange")
)
.def_static("ConnexIntByInt_s",
(Standard_Boolean (*)( const TopoDS_Face & , BRepOffset_Offset & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , const NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , const opencascade::handle<BRepAlgo_AsDes> & , const opencascade::handle<BRepAlgo_AsDes> & , const Standard_Real , const Standard_Real , const BRepOffset_Analyse & , NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher> & , BRepAlgo_Image & , NCollection_DataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , NCollection_IndexedDataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , const Message_ProgressRange & ) ) static_cast<Standard_Boolean (*)( const TopoDS_Face & , BRepOffset_Offset & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , const NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , const opencascade::handle<BRepAlgo_AsDes> & , const opencascade::handle<BRepAlgo_AsDes> & , const Standard_Real , const Standard_Real , const BRepOffset_Analyse & , NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher> & , BRepAlgo_Image & , NCollection_DataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , NCollection_IndexedDataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , const Message_ProgressRange & ) >(&BRepOffset_Inter2d::ConnexIntByInt),
R"#(Computes the intersection between the offset edges of the <FI>. All intersection vertices will be stored in AsDes2d. When all faces of the shape are treated the intersection vertices have to be fused using the FuseVertices method. theDMVV contains the vertices that should be fused.)#" , py::arg("FI"), py::arg("OFI"), py::arg("MES"), py::arg("Build"), py::arg("theAsDes"), py::arg("AsDes2d"), py::arg("Offset"), py::arg("Tol"), py::arg("Analyse"), py::arg("FacesWithVerts"), py::arg("theImageVV"), py::arg("theEdgeIntEdges"), py::arg("theDMVV"), py::arg("theRange")
)
.def_static("ConnexIntByIntInVert_s",
(void (*)( const TopoDS_Face & , BRepOffset_Offset & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , const NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , const opencascade::handle<BRepAlgo_AsDes> & , const opencascade::handle<BRepAlgo_AsDes> & , const Standard_Real , const BRepOffset_Analyse & , NCollection_IndexedDataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , const Message_ProgressRange & ) ) static_cast<void (*)( const TopoDS_Face & , BRepOffset_Offset & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , const NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , const opencascade::handle<BRepAlgo_AsDes> & , const opencascade::handle<BRepAlgo_AsDes> & , const Standard_Real , const BRepOffset_Analyse & , NCollection_IndexedDataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , const Message_ProgressRange & ) >(&BRepOffset_Inter2d::ConnexIntByIntInVert),
R"#(Computes the intersection between the offset edges generated from vertices and stored into AsDes as descendants of the <FI>. All intersection vertices will be stored in AsDes2d. When all faces of the shape are treated the intersection vertices have to be fused using the FuseVertices method. theDMVV contains the vertices that should be fused.)#" , py::arg("FI"), py::arg("OFI"), py::arg("MES"), py::arg("Build"), py::arg("AsDes"), py::arg("AsDes2d"), py::arg("Tol"), py::arg("Analyse"), py::arg("theDMVV"), py::arg("theRange")
)
.def_static("FuseVertices_s",
(Standard_Boolean (*)( const NCollection_IndexedDataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , const opencascade::handle<BRepAlgo_AsDes> & , BRepAlgo_Image & ) ) static_cast<Standard_Boolean (*)( const NCollection_IndexedDataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , const opencascade::handle<BRepAlgo_AsDes> & , BRepAlgo_Image & ) >(&BRepOffset_Inter2d::FuseVertices),
R"#(Fuses the chains of vertices in the theDMVV and updates AsDes by replacing the old vertices with the new ones.)#" , py::arg("theDMVV"), py::arg("theAsDes"), py::arg("theImageVV")
)
.def_static("ExtentEdge_s",
(Standard_Boolean (*)( const TopoDS_Edge & , TopoDS_Edge & , const Standard_Real ) ) static_cast<Standard_Boolean (*)( const TopoDS_Edge & , TopoDS_Edge & , const Standard_Real ) >(&BRepOffset_Inter2d::ExtentEdge),
R"#(extents the edge)#" , py::arg("E"), py::arg("NE"), py::arg("theOffset")
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class BRepOffset_Inter3d from ./opencascade/BRepOffset_Inter3d.hxx
klass = m.attr("BRepOffset_Inter3d");
// nested enums
static_cast<py::class_<BRepOffset_Inter3d , shared_ptr<BRepOffset_Inter3d> >>(klass)
// constructors
.def(py::init< const opencascade::handle<BRepAlgo_AsDes> &,const TopAbs_State,const Standard_Real >() , py::arg("AsDes"), py::arg("Side"), py::arg("Tol") )
// custom constructors
// methods
.def("CompletInt",
(void (BRepOffset_Inter3d::*)( const NCollection_List<TopoDS_Shape> & , const BRepAlgo_Image & , const Message_ProgressRange & ) ) static_cast<void (BRepOffset_Inter3d::*)( const NCollection_List<TopoDS_Shape> & , const BRepAlgo_Image & , const Message_ProgressRange & ) >(&BRepOffset_Inter3d::CompletInt),
R"#(None)#" , py::arg("SetOfFaces"), py::arg("InitOffsetFace"), py::arg("theRange")
)
.def("FaceInter",
(void (BRepOffset_Inter3d::*)( const TopoDS_Face & , const TopoDS_Face & , const BRepAlgo_Image & ) ) static_cast<void (BRepOffset_Inter3d::*)( const TopoDS_Face & , const TopoDS_Face & , const BRepAlgo_Image & ) >(&BRepOffset_Inter3d::FaceInter),
R"#(Computes intersection of pair of faces)#" , py::arg("F1"), py::arg("F2"), py::arg("InitOffsetFace")
)
.def("ConnexIntByArc",
(void (BRepOffset_Inter3d::*)( const NCollection_List<TopoDS_Shape> & , const TopoDS_Shape & , const BRepOffset_Analyse & , const BRepAlgo_Image & , const Message_ProgressRange & ) ) static_cast<void (BRepOffset_Inter3d::*)( const NCollection_List<TopoDS_Shape> & , const TopoDS_Shape & , const BRepOffset_Analyse & , const BRepAlgo_Image & , const Message_ProgressRange & ) >(&BRepOffset_Inter3d::ConnexIntByArc),
R"#(Computes connections of the offset faces that have to be connected by arcs.)#" , py::arg("SetOfFaces"), py::arg("ShapeInit"), py::arg("Analyse"), py::arg("InitOffsetFace"), py::arg("theRange")
)
.def("ConnexIntByInt",
(void (BRepOffset_Inter3d::*)( const TopoDS_Shape & , const NCollection_DataMap<TopoDS_Shape, BRepOffset_Offset, TopTools_ShapeMapHasher> & , const BRepOffset_Analyse & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , NCollection_List<TopoDS_Shape> & , const Message_ProgressRange & , const Standard_Boolean ) ) static_cast<void (BRepOffset_Inter3d::*)( const TopoDS_Shape & , const NCollection_DataMap<TopoDS_Shape, BRepOffset_Offset, TopTools_ShapeMapHasher> & , const BRepOffset_Analyse & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , NCollection_List<TopoDS_Shape> & , const Message_ProgressRange & , const Standard_Boolean ) >(&BRepOffset_Inter3d::ConnexIntByInt),
R"#(Computes intersection of the offset faces that have to be connected by sharp edges, i.e. it computes intersection between extended offset faces.)#" , py::arg("SI"), py::arg("MapSF"), py::arg("A"), py::arg("MES"), py::arg("Build"), py::arg("Failed"), py::arg("theRange"), py::arg("bIsPlanar")=static_cast<const Standard_Boolean>(Standard_False)
)
.def("ContextIntByInt",
(void (BRepOffset_Inter3d::*)( const NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher> & , const Standard_Boolean , const NCollection_DataMap<TopoDS_Shape, BRepOffset_Offset, TopTools_ShapeMapHasher> & , const BRepOffset_Analyse & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , NCollection_List<TopoDS_Shape> & , const Message_ProgressRange & , const Standard_Boolean ) ) static_cast<void (BRepOffset_Inter3d::*)( const NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher> & , const Standard_Boolean , const NCollection_DataMap<TopoDS_Shape, BRepOffset_Offset, TopTools_ShapeMapHasher> & , const BRepOffset_Analyse & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , NCollection_List<TopoDS_Shape> & , const Message_ProgressRange & , const Standard_Boolean ) >(&BRepOffset_Inter3d::ContextIntByInt),
R"#(Computes intersection with not offset faces .)#" , py::arg("ContextFaces"), py::arg("ExtentContext"), py::arg("MapSF"), py::arg("A"), py::arg("MES"), py::arg("Build"), py::arg("Failed"), py::arg("theRange"), py::arg("bIsPlanar")=static_cast<const Standard_Boolean>(Standard_False)
)
.def("ContextIntByArc",
(void (BRepOffset_Inter3d::*)( const NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher> & , const Standard_Boolean , const BRepOffset_Analyse & , const BRepAlgo_Image & , BRepAlgo_Image & , const Message_ProgressRange & ) ) static_cast<void (BRepOffset_Inter3d::*)( const NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher> & , const Standard_Boolean , const BRepOffset_Analyse & , const BRepAlgo_Image & , BRepAlgo_Image & , const Message_ProgressRange & ) >(&BRepOffset_Inter3d::ContextIntByArc),
R"#(Computes connections of the not offset faces that have to be connected by arcs)#" , py::arg("ContextFaces"), py::arg("ExtentContext"), py::arg("Analyse"), py::arg("InitOffsetFace"), py::arg("InitOffsetEdge"), py::arg("theRange")
)
.def("SetDone",
(void (BRepOffset_Inter3d::*)( const TopoDS_Face & , const TopoDS_Face & ) ) static_cast<void (BRepOffset_Inter3d::*)( const TopoDS_Face & , const TopoDS_Face & ) >(&BRepOffset_Inter3d::SetDone),
R"#(Marks the pair of faces as already intersected)#" , py::arg("F1"), py::arg("F2")
)
.def("IsDone",
(Standard_Boolean (BRepOffset_Inter3d::*)( const TopoDS_Face & , const TopoDS_Face & ) const) static_cast<Standard_Boolean (BRepOffset_Inter3d::*)( const TopoDS_Face & , const TopoDS_Face & ) const>(&BRepOffset_Inter3d::IsDone),
R"#(Checks if the pair of faces has already been treated.)#" , py::arg("F1"), py::arg("F2")
)
.def("AsDes",
(opencascade::handle<BRepAlgo_AsDes> (BRepOffset_Inter3d::*)() const) static_cast<opencascade::handle<BRepAlgo_AsDes> (BRepOffset_Inter3d::*)() const>(&BRepOffset_Inter3d::AsDes),
R"#(Returns AsDes tool)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("TouchedFaces",
(TopTools_IndexedMapOfShape & (BRepOffset_Inter3d::*)() ) static_cast<TopTools_IndexedMapOfShape & (BRepOffset_Inter3d::*)() >(&BRepOffset_Inter3d::TouchedFaces),
R"#(Returns touched faces)#"
, py::return_value_policy::reference_internal
)
.def("NewEdges",
(TopTools_IndexedMapOfShape & (BRepOffset_Inter3d::*)() ) static_cast<TopTools_IndexedMapOfShape & (BRepOffset_Inter3d::*)() >(&BRepOffset_Inter3d::NewEdges),
R"#(Returns new edges)#"
, py::return_value_policy::reference_internal
)
;
// Class BRepOffset_Interval from ./opencascade/BRepOffset_Interval.hxx
klass = m.attr("BRepOffset_Interval");
// nested enums
static_cast<py::class_<BRepOffset_Interval , shared_ptr<BRepOffset_Interval> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const Standard_Real,const Standard_Real,const ChFiDS_TypeOfConcavity >() , py::arg("U1"), py::arg("U2"), py::arg("Type") )
// custom constructors
// methods
.def("First",
(void (BRepOffset_Interval::*)( const Standard_Real ) ) static_cast<void (BRepOffset_Interval::*)( const Standard_Real ) >(&BRepOffset_Interval::First),
R"#(None)#" , py::arg("U")
)
.def("Last",
(void (BRepOffset_Interval::*)( const Standard_Real ) ) static_cast<void (BRepOffset_Interval::*)( const Standard_Real ) >(&BRepOffset_Interval::Last),
R"#(None)#" , py::arg("U")
)
.def("Type",
(void (BRepOffset_Interval::*)( const ChFiDS_TypeOfConcavity ) ) static_cast<void (BRepOffset_Interval::*)( const ChFiDS_TypeOfConcavity ) >(&BRepOffset_Interval::Type),
R"#(None)#" , py::arg("T")
)
.def("First",
(Standard_Real (BRepOffset_Interval::*)() const) static_cast<Standard_Real (BRepOffset_Interval::*)() const>(&BRepOffset_Interval::First),
R"#(None)#"
)
.def("Last",
(Standard_Real (BRepOffset_Interval::*)() const) static_cast<Standard_Real (BRepOffset_Interval::*)() const>(&BRepOffset_Interval::Last),
R"#(None)#"
)
.def("Type",
(ChFiDS_TypeOfConcavity (BRepOffset_Interval::*)() const) static_cast<ChFiDS_TypeOfConcavity (BRepOffset_Interval::*)() const>(&BRepOffset_Interval::Type),
R"#(None)#"
)
.def("First",
(void (BRepOffset_Interval::*)( const Standard_Real ) ) static_cast<void (BRepOffset_Interval::*)( const Standard_Real ) >(&BRepOffset_Interval::First),
R"#(None)#" , py::arg("U")
)
.def("Last",
(void (BRepOffset_Interval::*)( const Standard_Real ) ) static_cast<void (BRepOffset_Interval::*)( const Standard_Real ) >(&BRepOffset_Interval::Last),
R"#(None)#" , py::arg("U")
)
.def("Type",
(void (BRepOffset_Interval::*)( const ChFiDS_TypeOfConcavity ) ) static_cast<void (BRepOffset_Interval::*)( const ChFiDS_TypeOfConcavity ) >(&BRepOffset_Interval::Type),
R"#(None)#" , py::arg("T")
)
.def("First",
(Standard_Real (BRepOffset_Interval::*)() const) static_cast<Standard_Real (BRepOffset_Interval::*)() const>(&BRepOffset_Interval::First),
R"#(None)#"
)
.def("Last",
(Standard_Real (BRepOffset_Interval::*)() const) static_cast<Standard_Real (BRepOffset_Interval::*)() const>(&BRepOffset_Interval::Last),
R"#(None)#"
)
.def("Type",
(ChFiDS_TypeOfConcavity (BRepOffset_Interval::*)() const) static_cast<ChFiDS_TypeOfConcavity (BRepOffset_Interval::*)() const>(&BRepOffset_Interval::Type),
R"#(None)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class BRepOffset_MakeLoops from ./opencascade/BRepOffset_MakeLoops.hxx
klass = m.attr("BRepOffset_MakeLoops");
// nested enums
static_cast<py::class_<BRepOffset_MakeLoops , shared_ptr<BRepOffset_MakeLoops> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Build",
(void (BRepOffset_MakeLoops::*)( const NCollection_List<TopoDS_Shape> & , const opencascade::handle<BRepAlgo_AsDes> & , BRepAlgo_Image & , BRepAlgo_Image & , const Message_ProgressRange & ) ) static_cast<void (BRepOffset_MakeLoops::*)( const NCollection_List<TopoDS_Shape> & , const opencascade::handle<BRepAlgo_AsDes> & , BRepAlgo_Image & , BRepAlgo_Image & , const Message_ProgressRange & ) >(&BRepOffset_MakeLoops::Build),
R"#(None)#" , py::arg("LF"), py::arg("AsDes"), py::arg("Image"), py::arg("theImageVV"), py::arg("theRange")
)
.def("BuildOnContext",
(void (BRepOffset_MakeLoops::*)( const NCollection_List<TopoDS_Shape> & , const BRepOffset_Analyse & , const opencascade::handle<BRepAlgo_AsDes> & , BRepAlgo_Image & , const Standard_Boolean , const Message_ProgressRange & ) ) static_cast<void (BRepOffset_MakeLoops::*)( const NCollection_List<TopoDS_Shape> & , const BRepOffset_Analyse & , const opencascade::handle<BRepAlgo_AsDes> & , BRepAlgo_Image & , const Standard_Boolean , const Message_ProgressRange & ) >(&BRepOffset_MakeLoops::BuildOnContext),
R"#(None)#" , py::arg("LContext"), py::arg("Analyse"), py::arg("AsDes"), py::arg("Image"), py::arg("InSide"), py::arg("theRange")
)
.def("BuildFaces",
(void (BRepOffset_MakeLoops::*)( const NCollection_List<TopoDS_Shape> & , const opencascade::handle<BRepAlgo_AsDes> & , BRepAlgo_Image & , const Message_ProgressRange & ) ) static_cast<void (BRepOffset_MakeLoops::*)( const NCollection_List<TopoDS_Shape> & , const opencascade::handle<BRepAlgo_AsDes> & , BRepAlgo_Image & , const Message_ProgressRange & ) >(&BRepOffset_MakeLoops::BuildFaces),
R"#(None)#" , py::arg("LF"), py::arg("AsDes"), py::arg("Image"), py::arg("theRange")
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class BRepOffset_MakeOffset from ./opencascade/BRepOffset_MakeOffset.hxx
klass = m.attr("BRepOffset_MakeOffset");
// nested enums
static_cast<py::class_<BRepOffset_MakeOffset , shared_ptr<BRepOffset_MakeOffset> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Shape &,const Standard_Real,const Standard_Real,const BRepOffset_Mode,const Standard_Boolean,const Standard_Boolean,const GeomAbs_JoinType,const Standard_Boolean,const Standard_Boolean,const Message_ProgressRange & >() , py::arg("S"), py::arg("Offset"), py::arg("Tol"), py::arg("Mode")=static_cast<const BRepOffset_Mode>(BRepOffset_Skin), py::arg("Intersection")=static_cast<const Standard_Boolean>(Standard_False), py::arg("SelfInter")=static_cast<const Standard_Boolean>(Standard_False), py::arg("Join")=static_cast<const GeomAbs_JoinType>(GeomAbs_Arc), py::arg("Thickening")=static_cast<const Standard_Boolean>(Standard_False), py::arg("RemoveIntEdges")=static_cast<const Standard_Boolean>(Standard_False), py::arg("theRange")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( )) )
// custom constructors
// methods
.def("Initialize",
(void (BRepOffset_MakeOffset::*)( const TopoDS_Shape & , const Standard_Real , const Standard_Real , const BRepOffset_Mode , const Standard_Boolean , const Standard_Boolean , const GeomAbs_JoinType , const Standard_Boolean , const Standard_Boolean ) ) static_cast<void (BRepOffset_MakeOffset::*)( const TopoDS_Shape & , const Standard_Real , const Standard_Real , const BRepOffset_Mode , const Standard_Boolean , const Standard_Boolean , const GeomAbs_JoinType , const Standard_Boolean , const Standard_Boolean ) >(&BRepOffset_MakeOffset::Initialize),
R"#(None)#" , py::arg("S"), py::arg("Offset"), py::arg("Tol"), py::arg("Mode")=static_cast<const BRepOffset_Mode>(BRepOffset_Skin), py::arg("Intersection")=static_cast<const Standard_Boolean>(Standard_False), py::arg("SelfInter")=static_cast<const Standard_Boolean>(Standard_False), py::arg("Join")=static_cast<const GeomAbs_JoinType>(GeomAbs_Arc), py::arg("Thickening")=static_cast<const Standard_Boolean>(Standard_False), py::arg("RemoveIntEdges")=static_cast<const Standard_Boolean>(Standard_False)
)
.def("Clear",
(void (BRepOffset_MakeOffset::*)() ) static_cast<void (BRepOffset_MakeOffset::*)() >(&BRepOffset_MakeOffset::Clear),
R"#(None)#"
)
.def("AllowLinearization",
(void (BRepOffset_MakeOffset::*)( const Standard_Boolean ) ) static_cast<void (BRepOffset_MakeOffset::*)( const Standard_Boolean ) >(&BRepOffset_MakeOffset::AllowLinearization),
R"#(Changes the flag allowing the linearization)#" , py::arg("theIsAllowed")
)
.def("AddFace",
(void (BRepOffset_MakeOffset::*)( const TopoDS_Face & ) ) static_cast<void (BRepOffset_MakeOffset::*)( const TopoDS_Face & ) >(&BRepOffset_MakeOffset::AddFace),
R"#(Add Closing Faces, <F> has to be in the initial shape S.)#" , py::arg("F")
)
.def("SetOffsetOnFace",
(void (BRepOffset_MakeOffset::*)( const TopoDS_Face & , const Standard_Real ) ) static_cast<void (BRepOffset_MakeOffset::*)( const TopoDS_Face & , const Standard_Real ) >(&BRepOffset_MakeOffset::SetOffsetOnFace),
R"#(set the offset <Off> on the Face <F>)#" , py::arg("F"), py::arg("Off")
)
.def("MakeOffsetShape",
(void (BRepOffset_MakeOffset::*)( const Message_ProgressRange & ) ) static_cast<void (BRepOffset_MakeOffset::*)( const Message_ProgressRange & ) >(&BRepOffset_MakeOffset::MakeOffsetShape),
R"#(None)#" , py::arg("theRange")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("MakeThickSolid",
(void (BRepOffset_MakeOffset::*)( const Message_ProgressRange & ) ) static_cast<void (BRepOffset_MakeOffset::*)( const Message_ProgressRange & ) >(&BRepOffset_MakeOffset::MakeThickSolid),
R"#(None)#" , py::arg("theRange")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("IsDone",
(Standard_Boolean (BRepOffset_MakeOffset::*)() const) static_cast<Standard_Boolean (BRepOffset_MakeOffset::*)() const>(&BRepOffset_MakeOffset::IsDone),
R"#(None)#"
)
.def("Error",
(BRepOffset_Error (BRepOffset_MakeOffset::*)() const) static_cast<BRepOffset_Error (BRepOffset_MakeOffset::*)() const>(&BRepOffset_MakeOffset::Error),
R"#(returns information about offset state.)#"
)
.def("GetJoinType",
(GeomAbs_JoinType (BRepOffset_MakeOffset::*)() const) static_cast<GeomAbs_JoinType (BRepOffset_MakeOffset::*)() const>(&BRepOffset_MakeOffset::GetJoinType),
R"#(Returns myJoin.)#"
)
.def("CheckInputData",
(Standard_Boolean (BRepOffset_MakeOffset::*)( const Message_ProgressRange & ) ) static_cast<Standard_Boolean (BRepOffset_MakeOffset::*)( const Message_ProgressRange & ) >(&BRepOffset_MakeOffset::CheckInputData),
R"#(Makes pre analysis of possibility offset perform. Use method Error() to get more information. Finds first error. List of checks: 1) Check for existence object with non-null offset. 2) Check for connectivity in offset shell. 3) Check continuity of input surfaces. 4) Check for normals existence on grid.)#" , py::arg("theRange")
)
.def("Generated",
(const TopTools_ListOfShape & (BRepOffset_MakeOffset::*)( const TopoDS_Shape & ) ) static_cast<const TopTools_ListOfShape & (BRepOffset_MakeOffset::*)( const TopoDS_Shape & ) >(&BRepOffset_MakeOffset::Generated),
R"#(Returns the list of shapes generated from the shape <S>.)#" , py::arg("theS")
)
.def("Modified",
(const TopTools_ListOfShape & (BRepOffset_MakeOffset::*)( const TopoDS_Shape & ) ) static_cast<const TopTools_ListOfShape & (BRepOffset_MakeOffset::*)( const TopoDS_Shape & ) >(&BRepOffset_MakeOffset::Modified),
R"#(Returns the list of shapes modified from the shape <S>.)#" , py::arg("theS")
)
.def("IsDeleted",
(Standard_Boolean (BRepOffset_MakeOffset::*)( const TopoDS_Shape & ) ) static_cast<Standard_Boolean (BRepOffset_MakeOffset::*)( const TopoDS_Shape & ) >(&BRepOffset_MakeOffset::IsDeleted),
R"#(Returns true if the shape S has been deleted.)#" , py::arg("S")
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("Shape",
(const TopoDS_Shape & (BRepOffset_MakeOffset::*)() const) static_cast<const TopoDS_Shape & (BRepOffset_MakeOffset::*)() const>(&BRepOffset_MakeOffset::Shape),
R"#(None)#"
)
.def("InitShape",
(const TopoDS_Shape & (BRepOffset_MakeOffset::*)() const) static_cast<const TopoDS_Shape & (BRepOffset_MakeOffset::*)() const>(&BRepOffset_MakeOffset::InitShape),
R"#(None)#"
)
.def("OffsetFacesFromShapes",
(const BRepAlgo_Image & (BRepOffset_MakeOffset::*)() const) static_cast<const BRepAlgo_Image & (BRepOffset_MakeOffset::*)() const>(&BRepOffset_MakeOffset::OffsetFacesFromShapes),
R"#(Returns <Image> containing links between initials shapes and offset faces.)#"
)
.def("OffsetEdgesFromShapes",
(const BRepAlgo_Image & (BRepOffset_MakeOffset::*)() const) static_cast<const BRepAlgo_Image & (BRepOffset_MakeOffset::*)() const>(&BRepOffset_MakeOffset::OffsetEdgesFromShapes),
R"#(Returns <Image> containing links between initials shapes and offset edges.)#"
)
.def("ClosingFaces",
(const TopTools_IndexedMapOfShape & (BRepOffset_MakeOffset::*)() const) static_cast<const TopTools_IndexedMapOfShape & (BRepOffset_MakeOffset::*)() const>(&BRepOffset_MakeOffset::ClosingFaces),
R"#(Returns the list of closing faces stores by AddFace)#"
)
.def("GetBadShape",
(const TopoDS_Shape & (BRepOffset_MakeOffset::*)() const) static_cast<const TopoDS_Shape & (BRepOffset_MakeOffset::*)() const>(&BRepOffset_MakeOffset::GetBadShape),
R"#(Return bad shape, which obtained in CheckInputData.)#"
)
;
// Class BRepOffset_MakeSimpleOffset from ./opencascade/BRepOffset_MakeSimpleOffset.hxx
klass = m.attr("BRepOffset_MakeSimpleOffset");
// nested enums
static_cast<py::class_<BRepOffset_MakeSimpleOffset , shared_ptr<BRepOffset_MakeSimpleOffset> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Shape &,const Standard_Real >() , py::arg("theInputShape"), py::arg("theOffsetValue") )
// custom constructors
// methods
.def("Initialize",
(void (BRepOffset_MakeSimpleOffset::*)( const TopoDS_Shape & , const Standard_Real ) ) static_cast<void (BRepOffset_MakeSimpleOffset::*)( const TopoDS_Shape & , const Standard_Real ) >(&BRepOffset_MakeSimpleOffset::Initialize),
R"#(Initialies shape for modifications.)#" , py::arg("theInputShape"), py::arg("theOffsetValue")
)
.def("Perform",
(void (BRepOffset_MakeSimpleOffset::*)() ) static_cast<void (BRepOffset_MakeSimpleOffset::*)() >(&BRepOffset_MakeSimpleOffset::Perform),
R"#(Computes offset shape.)#"
)
.def("GetErrorMessage",
(TCollection_AsciiString (BRepOffset_MakeSimpleOffset::*)() const) static_cast<TCollection_AsciiString (BRepOffset_MakeSimpleOffset::*)() const>(&BRepOffset_MakeSimpleOffset::GetErrorMessage),
R"#(Gets error message.)#"
)
.def("GetError",
(BRepOffsetSimple_Status (BRepOffset_MakeSimpleOffset::*)() const) static_cast<BRepOffsetSimple_Status (BRepOffset_MakeSimpleOffset::*)() const>(&BRepOffset_MakeSimpleOffset::GetError),
R"#(Gets error code.)#"
)
.def("GetBuildSolidFlag",
(Standard_Boolean (BRepOffset_MakeSimpleOffset::*)() const) static_cast<Standard_Boolean (BRepOffset_MakeSimpleOffset::*)() const>(&BRepOffset_MakeSimpleOffset::GetBuildSolidFlag),
R"#(Gets solid building flag.)#"
)
.def("SetBuildSolidFlag",
(void (BRepOffset_MakeSimpleOffset::*)( const Standard_Boolean ) ) static_cast<void (BRepOffset_MakeSimpleOffset::*)( const Standard_Boolean ) >(&BRepOffset_MakeSimpleOffset::SetBuildSolidFlag),
R"#(Sets solid building flag.)#" , py::arg("theBuildFlag")
)
.def("GetOffsetValue",
(Standard_Real (BRepOffset_MakeSimpleOffset::*)() const) static_cast<Standard_Real (BRepOffset_MakeSimpleOffset::*)() const>(&BRepOffset_MakeSimpleOffset::GetOffsetValue),
R"#(Gets offset value.)#"
)
.def("SetOffsetValue",
(void (BRepOffset_MakeSimpleOffset::*)( const Standard_Real ) ) static_cast<void (BRepOffset_MakeSimpleOffset::*)( const Standard_Real ) >(&BRepOffset_MakeSimpleOffset::SetOffsetValue),
R"#(Sets offset value.)#" , py::arg("theOffsetValue")
)
.def("GetTolerance",
(Standard_Real (BRepOffset_MakeSimpleOffset::*)() const) static_cast<Standard_Real (BRepOffset_MakeSimpleOffset::*)() const>(&BRepOffset_MakeSimpleOffset::GetTolerance),
R"#(Gets tolerance (used for handling singularities).)#"
)
.def("SetTolerance",
(void (BRepOffset_MakeSimpleOffset::*)( const Standard_Real ) ) static_cast<void (BRepOffset_MakeSimpleOffset::*)( const Standard_Real ) >(&BRepOffset_MakeSimpleOffset::SetTolerance),
R"#(Sets tolerance (used for handling singularities).)#" , py::arg("theValue")
)
.def("IsDone",
(Standard_Boolean (BRepOffset_MakeSimpleOffset::*)() const) static_cast<Standard_Boolean (BRepOffset_MakeSimpleOffset::*)() const>(&BRepOffset_MakeSimpleOffset::IsDone),
R"#(Gets done state.)#"
)
.def("GetSafeOffset",
(Standard_Real (BRepOffset_MakeSimpleOffset::*)( const Standard_Real ) ) static_cast<Standard_Real (BRepOffset_MakeSimpleOffset::*)( const Standard_Real ) >(&BRepOffset_MakeSimpleOffset::GetSafeOffset),
R"#(Computes max safe offset value for the given tolerance.)#" , py::arg("theExpectedToler")
)
.def("Generated",
(const TopoDS_Shape (BRepOffset_MakeSimpleOffset::*)( const TopoDS_Shape & ) const) static_cast<const TopoDS_Shape (BRepOffset_MakeSimpleOffset::*)( const TopoDS_Shape & ) const>(&BRepOffset_MakeSimpleOffset::Generated),
R"#(Returns result shape for the given one (if exists).)#" , py::arg("theShape")
)
.def("Modified",
(const TopoDS_Shape (BRepOffset_MakeSimpleOffset::*)( const TopoDS_Shape & ) const) static_cast<const TopoDS_Shape (BRepOffset_MakeSimpleOffset::*)( const TopoDS_Shape & ) const>(&BRepOffset_MakeSimpleOffset::Modified),
R"#(Returns modified shape for the given one (if exists).)#" , py::arg("theShape")
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("GetResultShape",
(const TopoDS_Shape & (BRepOffset_MakeSimpleOffset::*)() const) static_cast<const TopoDS_Shape & (BRepOffset_MakeSimpleOffset::*)() const>(&BRepOffset_MakeSimpleOffset::GetResultShape),
R"#(Returns result shape.)#"
)
;
// Class BRepOffset_Offset from ./opencascade/BRepOffset_Offset.hxx
klass = m.attr("BRepOffset_Offset");
// nested enums
static_cast<py::class_<BRepOffset_Offset , shared_ptr<BRepOffset_Offset> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Face &,const Standard_Real,const Standard_Boolean,const GeomAbs_JoinType >() , py::arg("Face"), py::arg("Offset"), py::arg("OffsetOutside")=static_cast<const Standard_Boolean>(Standard_True), py::arg("JoinType")=static_cast<const GeomAbs_JoinType>(GeomAbs_Arc) )
.def(py::init< const TopoDS_Face &,const Standard_Real, const NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> &,const Standard_Boolean,const GeomAbs_JoinType >() , py::arg("Face"), py::arg("Offset"), py::arg("Created"), py::arg("OffsetOutside")=static_cast<const Standard_Boolean>(Standard_True), py::arg("JoinType")=static_cast<const GeomAbs_JoinType>(GeomAbs_Arc) )
.def(py::init< const TopoDS_Edge &,const TopoDS_Edge &,const TopoDS_Edge &,const Standard_Real,const Standard_Boolean,const Standard_Real,const GeomAbs_Shape >() , py::arg("Path"), py::arg("Edge1"), py::arg("Edge2"), py::arg("Offset"), py::arg("Polynomial")=static_cast<const Standard_Boolean>(Standard_False), py::arg("Tol")=static_cast<const Standard_Real>(1.0e-4), py::arg("Conti")=static_cast<const GeomAbs_Shape>(GeomAbs_C1) )
.def(py::init< const TopoDS_Edge &,const TopoDS_Edge &,const TopoDS_Edge &,const Standard_Real,const TopoDS_Edge &,const TopoDS_Edge &,const Standard_Boolean,const Standard_Real,const GeomAbs_Shape >() , py::arg("Path"), py::arg("Edge1"), py::arg("Edge2"), py::arg("Offset"), py::arg("FirstEdge"), py::arg("LastEdge"), py::arg("Polynomial")=static_cast<const Standard_Boolean>(Standard_False), py::arg("Tol")=static_cast<const Standard_Real>(1.0e-4), py::arg("Conti")=static_cast<const GeomAbs_Shape>(GeomAbs_C1) )
.def(py::init< const TopoDS_Vertex &, const NCollection_List<TopoDS_Shape> &,const Standard_Real,const Standard_Boolean,const Standard_Real,const GeomAbs_Shape >() , py::arg("Vertex"), py::arg("LEdge"), py::arg("Offset"), py::arg("Polynomial")=static_cast<const Standard_Boolean>(Standard_False), py::arg("Tol")=static_cast<const Standard_Real>(1.0e-4), py::arg("Conti")=static_cast<const GeomAbs_Shape>(GeomAbs_C1) )
// custom constructors
// methods
.def("Init",
(void (BRepOffset_Offset::*)( const TopoDS_Face & , const Standard_Real , const Standard_Boolean , const GeomAbs_JoinType ) ) static_cast<void (BRepOffset_Offset::*)( const TopoDS_Face & , const Standard_Real , const Standard_Boolean , const GeomAbs_JoinType ) >(&BRepOffset_Offset::Init),
R"#(None)#" , py::arg("Face"), py::arg("Offset"), py::arg("OffsetOutside")=static_cast<const Standard_Boolean>(Standard_True), py::arg("JoinType")=static_cast<const GeomAbs_JoinType>(GeomAbs_Arc)
)
.def("Init",
(void (BRepOffset_Offset::*)( const TopoDS_Face & , const Standard_Real , const NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , const Standard_Boolean , const GeomAbs_JoinType ) ) static_cast<void (BRepOffset_Offset::*)( const TopoDS_Face & , const Standard_Real , const NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , const Standard_Boolean , const GeomAbs_JoinType ) >(&BRepOffset_Offset::Init),
R"#(None)#" , py::arg("Face"), py::arg("Offset"), py::arg("Created"), py::arg("OffsetOutside")=static_cast<const Standard_Boolean>(Standard_True), py::arg("JoinType")=static_cast<const GeomAbs_JoinType>(GeomAbs_Arc)
)
.def("Init",
(void (BRepOffset_Offset::*)( const TopoDS_Edge & , const TopoDS_Edge & , const TopoDS_Edge & , const Standard_Real , const Standard_Boolean , const Standard_Real , const GeomAbs_Shape ) ) static_cast<void (BRepOffset_Offset::*)( const TopoDS_Edge & , const TopoDS_Edge & , const TopoDS_Edge & , const Standard_Real , const Standard_Boolean , const Standard_Real , const GeomAbs_Shape ) >(&BRepOffset_Offset::Init),
R"#(None)#" , py::arg("Path"), py::arg("Edge1"), py::arg("Edge2"), py::arg("Offset"), py::arg("Polynomial")=static_cast<const Standard_Boolean>(Standard_False), py::arg("Tol")=static_cast<const Standard_Real>(1.0e-4), py::arg("Conti")=static_cast<const GeomAbs_Shape>(GeomAbs_C1)
)
.def("Init",
(void (BRepOffset_Offset::*)( const TopoDS_Edge & , const TopoDS_Edge & , const TopoDS_Edge & , const Standard_Real , const TopoDS_Edge & , const TopoDS_Edge & , const Standard_Boolean , const Standard_Real , const GeomAbs_Shape ) ) static_cast<void (BRepOffset_Offset::*)( const TopoDS_Edge & , const TopoDS_Edge & , const TopoDS_Edge & , const Standard_Real , const TopoDS_Edge & , const TopoDS_Edge & , const Standard_Boolean , const Standard_Real , const GeomAbs_Shape ) >(&BRepOffset_Offset::Init),
R"#(None)#" , py::arg("Path"), py::arg("Edge1"), py::arg("Edge2"), py::arg("Offset"), py::arg("FirstEdge"), py::arg("LastEdge"), py::arg("Polynomial")=static_cast<const Standard_Boolean>(Standard_False), py::arg("Tol")=static_cast<const Standard_Real>(1.0e-4), py::arg("Conti")=static_cast<const GeomAbs_Shape>(GeomAbs_C1)
)
.def("Init",
(void (BRepOffset_Offset::*)( const TopoDS_Vertex & , const NCollection_List<TopoDS_Shape> & , const Standard_Real , const Standard_Boolean , const Standard_Real , const GeomAbs_Shape ) ) static_cast<void (BRepOffset_Offset::*)( const TopoDS_Vertex & , const NCollection_List<TopoDS_Shape> & , const Standard_Real , const Standard_Boolean , const Standard_Real , const GeomAbs_Shape ) >(&BRepOffset_Offset::Init),
R"#(Tol and Conti are only used if Polynomial is True (Used to perform the approximation))#" , py::arg("Vertex"), py::arg("LEdge"), py::arg("Offset"), py::arg("Polynomial")=static_cast<const Standard_Boolean>(Standard_False), py::arg("Tol")=static_cast<const Standard_Real>(1.0e-4), py::arg("Conti")=static_cast<const GeomAbs_Shape>(GeomAbs_C1)
)
.def("Init",
(void (BRepOffset_Offset::*)( const TopoDS_Edge & , const Standard_Real ) ) static_cast<void (BRepOffset_Offset::*)( const TopoDS_Edge & , const Standard_Real ) >(&BRepOffset_Offset::Init),
R"#(Only used in Rolling Ball. Pipe on Free Boundary)#" , py::arg("Edge"), py::arg("Offset")
)
.def("Generated",
(TopoDS_Shape (BRepOffset_Offset::*)( const TopoDS_Shape & ) const) static_cast<TopoDS_Shape (BRepOffset_Offset::*)( const TopoDS_Shape & ) const>(&BRepOffset_Offset::Generated),
R"#(None)#" , py::arg("Shape")
)
.def("Status",
(BRepOffset_Status (BRepOffset_Offset::*)() const) static_cast<BRepOffset_Status (BRepOffset_Offset::*)() const>(&BRepOffset_Offset::Status),
R"#(None)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("InitialShape",
(const TopoDS_Shape & (BRepOffset_Offset::*)() const) static_cast<const TopoDS_Shape & (BRepOffset_Offset::*)() const>(&BRepOffset_Offset::InitialShape),
R"#(None)#"
)
.def("Face",
(const TopoDS_Face & (BRepOffset_Offset::*)() const) static_cast<const TopoDS_Face & (BRepOffset_Offset::*)() const>(&BRepOffset_Offset::Face),
R"#(None)#"
)
.def("InitialShape",
(const TopoDS_Shape & (BRepOffset_Offset::*)() const) static_cast<const TopoDS_Shape & (BRepOffset_Offset::*)() const>(&BRepOffset_Offset::InitialShape),
R"#(None)#"
)
;
// Class BRepOffset_SimpleOffset from ./opencascade/BRepOffset_SimpleOffset.hxx
klass = m.attr("BRepOffset_SimpleOffset");
// nested enums
static_cast<py::class_<BRepOffset_SimpleOffset ,opencascade::handle<BRepOffset_SimpleOffset> , BRepTools_Modification >>(klass)
// constructors
.def(py::init< const TopoDS_Shape &,const Standard_Real,const Standard_Real >() , py::arg("theInputShape"), py::arg("theOffsetValue"), py::arg("theTolerance") )
// custom constructors
// methods
.def("NewSurface",
(Standard_Boolean (BRepOffset_SimpleOffset::*)( const TopoDS_Face & , opencascade::handle<Geom_Surface> & , TopLoc_Location & , Standard_Real & , Standard_Boolean & , Standard_Boolean & ) ) static_cast<Standard_Boolean (BRepOffset_SimpleOffset::*)( const TopoDS_Face & , opencascade::handle<Geom_Surface> & , TopLoc_Location & , Standard_Real & , Standard_Boolean & , Standard_Boolean & ) >(&BRepOffset_SimpleOffset::NewSurface),
R"#(Returns Standard_True if the face <F> has been modified. In this case, <S> is the new geometric support of the face, <L> the new location,<Tol> the new tolerance.<RevWires> has to be set to Standard_True when the modification reverses the normal of the surface.(the wires have to be reversed). <RevFace> has to be set to Standard_True if the orientation of the modified face changes in the shells which contain it. -- Here, <RevFace> will return Standard_True if the -- gp_Trsf is negative.)#" , py::arg("F"), py::arg("S"), py::arg("L"), py::arg("Tol"), py::arg("RevWires"), py::arg("RevFace")
)
.def("NewCurve",
(Standard_Boolean (BRepOffset_SimpleOffset::*)( const TopoDS_Edge & , opencascade::handle<Geom_Curve> & , TopLoc_Location & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepOffset_SimpleOffset::*)( const TopoDS_Edge & , opencascade::handle<Geom_Curve> & , TopLoc_Location & , Standard_Real & ) >(&BRepOffset_SimpleOffset::NewCurve),
R"#(Returns Standard_True if the edge <E> has been modified. In this case, <C> is the new geometric support of the edge, <L> the new location, <Tol> the new tolerance. Otherwise, returns Standard_False, and <C>, <L>, <Tol> are not significant.)#" , py::arg("E"), py::arg("C"), py::arg("L"), py::arg("Tol")
)
.def("NewPoint",
(Standard_Boolean (BRepOffset_SimpleOffset::*)( const TopoDS_Vertex & , gp_Pnt & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepOffset_SimpleOffset::*)( const TopoDS_Vertex & , gp_Pnt & , Standard_Real & ) >(&BRepOffset_SimpleOffset::NewPoint),
R"#(Returns Standard_True if the vertex <V> has been modified. In this case, <P> is the new geometric support of the vertex, <Tol> the new tolerance. Otherwise, returns Standard_False, and <P>, <Tol> are not significant.)#" , py::arg("V"), py::arg("P"), py::arg("Tol")
)
.def("NewCurve2d",
(Standard_Boolean (BRepOffset_SimpleOffset::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Geom2d_Curve> & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepOffset_SimpleOffset::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Geom2d_Curve> & , Standard_Real & ) >(&BRepOffset_SimpleOffset::NewCurve2d),
R"#(Returns Standard_True if the edge <E> has a new curve on surface on the face <F>.In this case, <C> is the new geometric support of the edge, <L> the new location, <Tol> the new tolerance. Otherwise, returns Standard_False, and <C>, <L>, <Tol> are not significant.)#" , py::arg("E"), py::arg("F"), py::arg("NewE"), py::arg("NewF"), py::arg("C"), py::arg("Tol")
)
.def("NewParameter",
(Standard_Boolean (BRepOffset_SimpleOffset::*)( const TopoDS_Vertex & , const TopoDS_Edge & , Standard_Real & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepOffset_SimpleOffset::*)( const TopoDS_Vertex & , const TopoDS_Edge & , Standard_Real & , Standard_Real & ) >(&BRepOffset_SimpleOffset::NewParameter),
R"#(Returns Standard_True if the Vertex <V> has a new parameter on the edge <E>. In this case, <P> is the parameter, <Tol> the new tolerance. Otherwise, returns Standard_False, and <P>, <Tol> are not significant.)#" , py::arg("V"), py::arg("E"), py::arg("P"), py::arg("Tol")
)
.def("Continuity",
(GeomAbs_Shape (BRepOffset_SimpleOffset::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & ) ) static_cast<GeomAbs_Shape (BRepOffset_SimpleOffset::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & ) >(&BRepOffset_SimpleOffset::Continuity),
R"#(Returns the continuity of <NewE> between <NewF1> and <NewF2>.)#" , py::arg("E"), py::arg("F1"), py::arg("F2"), py::arg("NewE"), py::arg("NewF1"), py::arg("NewF2")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&BRepOffset_SimpleOffset::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&BRepOffset_SimpleOffset::get_type_descriptor),
R"#(None)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (BRepOffset_SimpleOffset::*)() const) static_cast<const opencascade::handle<Standard_Type> & (BRepOffset_SimpleOffset::*)() const>(&BRepOffset_SimpleOffset::DynamicType),
R"#(None)#"
)
;
// Class BRepOffset_Tool from ./opencascade/BRepOffset_Tool.hxx
klass = m.attr("BRepOffset_Tool");
// default constructor
register_default_constructor<BRepOffset_Tool , shared_ptr<BRepOffset_Tool>>(m,"BRepOffset_Tool");
// nested enums
static_cast<py::class_<BRepOffset_Tool , shared_ptr<BRepOffset_Tool> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("EdgeVertices_s",
(void (*)( const TopoDS_Edge & , TopoDS_Vertex & , TopoDS_Vertex & ) ) static_cast<void (*)( const TopoDS_Edge & , TopoDS_Vertex & , TopoDS_Vertex & ) >(&BRepOffset_Tool::EdgeVertices),
R"#(<V1> is the FirstVertex ,<V2> is the Last Vertex of <Edge> taking account the orientation of Edge.)#" , py::arg("E"), py::arg("V1"), py::arg("V2")
)
.def_static("OrientSection_s",
(void (*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & , TopAbs_Orientation & , TopAbs_Orientation & ) ) static_cast<void (*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & , TopAbs_Orientation & , TopAbs_Orientation & ) >(&BRepOffset_Tool::OrientSection),
R"#(<E> is a section between <F1> and <F2>. Computes <O1> the orientation of <E> in <F1> influenced by <F2>. idem for <O2>.)#" , py::arg("E"), py::arg("F1"), py::arg("F2"), py::arg("O1"), py::arg("O2")
)
.def_static("FindCommonShapes_s",
(Standard_Boolean (*)( const TopoDS_Face & , const TopoDS_Face & , NCollection_List<TopoDS_Shape> & , NCollection_List<TopoDS_Shape> & ) ) static_cast<Standard_Boolean (*)( const TopoDS_Face & , const TopoDS_Face & , NCollection_List<TopoDS_Shape> & , NCollection_List<TopoDS_Shape> & ) >(&BRepOffset_Tool::FindCommonShapes),
R"#(Looks for the common Vertices and Edges between faces <theF1> and <theF2>. Returns TRUE if common shapes have been found. <theLE> will contain the found common edges; <theLV> will contain the found common vertices.)#" , py::arg("theF1"), py::arg("theF2"), py::arg("theLE"), py::arg("theLV")
)
.def_static("FindCommonShapes_s",
(Standard_Boolean (*)( const TopoDS_Shape & , const TopoDS_Shape & , const TopAbs_ShapeEnum , NCollection_List<TopoDS_Shape> & ) ) static_cast<Standard_Boolean (*)( const TopoDS_Shape & , const TopoDS_Shape & , const TopAbs_ShapeEnum , NCollection_List<TopoDS_Shape> & ) >(&BRepOffset_Tool::FindCommonShapes),
R"#(Looks for the common shapes of type <theType> between shapes <theS1> and <theS2>. Returns TRUE if common shapes have been found. <theLSC> will contain the found common shapes.)#" , py::arg("theS1"), py::arg("theS2"), py::arg("theType"), py::arg("theLSC")
)
.def_static("Inter3D_s",
(void (*)( const TopoDS_Face & , const TopoDS_Face & , NCollection_List<TopoDS_Shape> & , NCollection_List<TopoDS_Shape> & , const TopAbs_State , const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & ) ) static_cast<void (*)( const TopoDS_Face & , const TopoDS_Face & , NCollection_List<TopoDS_Shape> & , NCollection_List<TopoDS_Shape> & , const TopAbs_State , const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & ) >(&BRepOffset_Tool::Inter3D),
R"#(Computes the Section betwwen <F1> and <F2> the edges solution are stored in <LInt1> with the orientation on <F1>, the sames edges are stored in <Lint2> with the orientation on <F2>.)#" , py::arg("F1"), py::arg("F2"), py::arg("LInt1"), py::arg("LInt2"), py::arg("Side"), py::arg("RefEdge"), py::arg("RefFace1"), py::arg("RefFace2")
)
.def_static("TryProject_s",
(Standard_Boolean (*)( const TopoDS_Face & , const TopoDS_Face & , const NCollection_List<TopoDS_Shape> & , NCollection_List<TopoDS_Shape> & , NCollection_List<TopoDS_Shape> & , const TopAbs_State , const Standard_Real ) ) static_cast<Standard_Boolean (*)( const TopoDS_Face & , const TopoDS_Face & , const NCollection_List<TopoDS_Shape> & , NCollection_List<TopoDS_Shape> & , NCollection_List<TopoDS_Shape> & , const TopAbs_State , const Standard_Real ) >(&BRepOffset_Tool::TryProject),
R"#(Find if the edges <Edges> of the face <F2> are on the face <F1>. Set in <LInt1> <LInt2> the updated edges. If all the edges are computed, returns true.)#" , py::arg("F1"), py::arg("F2"), py::arg("Edges"), py::arg("LInt1"), py::arg("LInt2"), py::arg("Side"), py::arg("TolConf")
)
.def_static("PipeInter_s",
(void (*)( const TopoDS_Face & , const TopoDS_Face & , NCollection_List<TopoDS_Shape> & , NCollection_List<TopoDS_Shape> & , const TopAbs_State ) ) static_cast<void (*)( const TopoDS_Face & , const TopoDS_Face & , NCollection_List<TopoDS_Shape> & , NCollection_List<TopoDS_Shape> & , const TopAbs_State ) >(&BRepOffset_Tool::PipeInter),
R"#(None)#" , py::arg("F1"), py::arg("F2"), py::arg("LInt1"), py::arg("LInt2"), py::arg("Side")
)
.def_static("Inter2d_s",
(void (*)( const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Edge & , NCollection_List<TopoDS_Shape> & , const Standard_Real ) ) static_cast<void (*)( const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Edge & , NCollection_List<TopoDS_Shape> & , const Standard_Real ) >(&BRepOffset_Tool::Inter2d),
R"#(None)#" , py::arg("F"), py::arg("E1"), py::arg("E2"), py::arg("LV"), py::arg("Tol")
)
.def_static("InterOrExtent_s",
(void (*)( const TopoDS_Face & , const TopoDS_Face & , NCollection_List<TopoDS_Shape> & , NCollection_List<TopoDS_Shape> & , const TopAbs_State ) ) static_cast<void (*)( const TopoDS_Face & , const TopoDS_Face & , NCollection_List<TopoDS_Shape> & , NCollection_List<TopoDS_Shape> & , const TopAbs_State ) >(&BRepOffset_Tool::InterOrExtent),
R"#(None)#" , py::arg("F1"), py::arg("F2"), py::arg("LInt1"), py::arg("LInt2"), py::arg("Side")
)
.def_static("EnLargeFace_s",
(Standard_Boolean (*)( const TopoDS_Face & , TopoDS_Face & , const Standard_Boolean , const Standard_Boolean , const Standard_Boolean , const Standard_Boolean , const Standard_Boolean , const Standard_Integer , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<Standard_Boolean (*)( const TopoDS_Face & , TopoDS_Face & , const Standard_Boolean , const Standard_Boolean , const Standard_Boolean , const Standard_Boolean , const Standard_Boolean , const Standard_Integer , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) >(&BRepOffset_Tool::EnLargeFace),
R"#(Returns True if The Surface of <NF> has changed. if <ChangeGeom> is TRUE , the surface can be changed . if <UpdatePCurve> is TRUE, update the pcurves of the edges of <F> on the new surface if the surface has been changed. <enlargeU>, <enlargeVfirst>, <enlargeVlast> allow or forbid enlargement in U and V directions correspondingly. <theExtensionMode> is a mode of extension of the surface of the face: if <theExtensionMode> equals 1, potentially infinite surfaces are extended by maximum value, and limited surfaces are extended by 25%. if <theExtensionMode> equals 2, potentially infinite surfaces are extended by 10*(correspondent size of face), and limited surfaces are extended by 100%. <theLenBeforeUfirst>, <theLenAfterUlast>, <theLenBeforeVfirst>, <theLenAfterVlast> set the values of enlargement on correspondent directions. If some of them equals -1, the default value of enlargement is used.)#" , py::arg("F"), py::arg("NF"), py::arg("ChangeGeom"), py::arg("UpDatePCurve")=static_cast<const Standard_Boolean>(Standard_False), py::arg("enlargeU")=static_cast<const Standard_Boolean>(Standard_True), py::arg("enlargeVfirst")=static_cast<const Standard_Boolean>(Standard_True), py::arg("enlargeVlast")=static_cast<const Standard_Boolean>(Standard_True), py::arg("theExtensionMode")=static_cast<const Standard_Integer>(1), py::arg("theLenBeforeUfirst")=static_cast<const Standard_Real>(- 1.), py::arg("theLenAfterUlast")=static_cast<const Standard_Real>(- 1.), py::arg("theLenBeforeVfirst")=static_cast<const Standard_Real>(- 1.), py::arg("theLenAfterVlast")=static_cast<const Standard_Real>(- 1.)
)
.def_static("ExtentFace_s",
(void (*)( const TopoDS_Face & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , const TopAbs_State , const Standard_Real , TopoDS_Face & ) ) static_cast<void (*)( const TopoDS_Face & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , const TopAbs_State , const Standard_Real , TopoDS_Face & ) >(&BRepOffset_Tool::ExtentFace),
R"#(None)#" , py::arg("F"), py::arg("ConstShapes"), py::arg("ToBuild"), py::arg("Side"), py::arg("TolConf"), py::arg("NF")
)
.def_static("BuildNeighbour_s",
(void (*)( const TopoDS_Wire & , const TopoDS_Face & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & ) ) static_cast<void (*)( const TopoDS_Wire & , const TopoDS_Face & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & , NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> & ) >(&BRepOffset_Tool::BuildNeighbour),
R"#(Via the wire explorer store in <NOnV1> for an Edge <E> of <W> his Edge neighbour on the first vertex <V1> of <E>. Store in NOnV2 the Neighbour of <E>on the last vertex <V2> of <E>.)#" , py::arg("W"), py::arg("F"), py::arg("NOnV1"), py::arg("NOnV2")
)
.def_static("MapVertexEdges_s",
(void (*)( const TopoDS_Shape & , NCollection_DataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & ) ) static_cast<void (*)( const TopoDS_Shape & , NCollection_DataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & ) >(&BRepOffset_Tool::MapVertexEdges),
R"#(Store in MVE for a vertex <V> in <S> the incident edges <E> in <S>. An Edge is Store only one Time for a vertex.)#" , py::arg("S"), py::arg("MVE")
)
.def_static("Deboucle3D_s",
(TopoDS_Shape (*)( const TopoDS_Shape & , const NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> & ) ) static_cast<TopoDS_Shape (*)( const TopoDS_Shape & , const NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> & ) >(&BRepOffset_Tool::Deboucle3D),
R"#(Remove the non valid part of an offsetshape 1 - Remove all the free boundary and the faces connex to such edges. 2 - Remove all the shapes not valid in the result (according to the side of offsetting) in this version only the first point is implemented.)#" , py::arg("S"), py::arg("Boundary")
)
.def_static("Gabarit_s",
(Standard_Real (*)( const opencascade::handle<Geom_Curve> & ) ) static_cast<Standard_Real (*)( const opencascade::handle<Geom_Curve> & ) >(&BRepOffset_Tool::Gabarit),
R"#(None)#" , py::arg("aCurve")
)
.def_static("CheckPlanesNormals_s",
(Standard_Boolean (*)( const TopoDS_Face & , const TopoDS_Face & , const Standard_Real ) ) static_cast<Standard_Boolean (*)( const TopoDS_Face & , const TopoDS_Face & , const Standard_Real ) >(&BRepOffset_Tool::CheckPlanesNormals),
R"#(Compares the normal directions of the planar faces and returns TRUE if the directions are the same with the given precision.)#" , py::arg("theFace1"), py::arg("theFace2"), py::arg("theTolAng")=static_cast<const Standard_Real>(1.e-8)
)
// static methods using call by reference i.s.o. return
.def_static("CheckBounds_s",
[](const TopoDS_Face & F,const BRepOffset_Analyse & Analyse ){
Standard_Boolean enlargeU;
Standard_Boolean enlargeVfirst;
Standard_Boolean enlargeVlast;
BRepOffset_Tool::CheckBounds(F,Analyse,enlargeU,enlargeVfirst,enlargeVlast);
return std::make_tuple(enlargeU,enlargeVfirst,enlargeVlast); },
R"#(None)#" , py::arg("F"), py::arg("Analyse")
)
.def_static("CorrectOrientation_s",
[](const TopoDS_Shape & SI, const NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher> & NewEdges,BRepAlgo_AsDes& AsDes,BRepAlgo_Image & InitOffset,const Standard_Real Offset ){
opencascade::handle<BRepAlgo_AsDes> AsDes_ptr; AsDes_ptr = &AsDes;
BRepOffset_Tool::CorrectOrientation(SI,NewEdges,AsDes_ptr,InitOffset,Offset);
if ( AsDes_ptr.get() != &AsDes ) copy_if_copy_constructible(AsDes, *AsDes_ptr);
},
R"#(None)#" , py::arg("SI"), py::arg("NewEdges"), py::arg("AsDes"), py::arg("InitOffset"), py::arg("Offset")
)
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// functions
// ./opencascade/BRepOffset.hxx
// ./opencascade/BRepOffset_Analyse.hxx
// ./opencascade/BRepOffset_DataMapIteratorOfDataMapOfShapeListOfInterval.hxx
// ./opencascade/BRepOffset_DataMapIteratorOfDataMapOfShapeMapOfShape.hxx
// ./opencascade/BRepOffset_DataMapIteratorOfDataMapOfShapeOffset.hxx
// ./opencascade/BRepOffset_DataMapOfShapeListOfInterval.hxx
// ./opencascade/BRepOffset_DataMapOfShapeMapOfShape.hxx
// ./opencascade/BRepOffset_DataMapOfShapeOffset.hxx
// ./opencascade/BRepOffset_Error.hxx
// ./opencascade/BRepOffset_Inter2d.hxx
// ./opencascade/BRepOffset_Inter3d.hxx
// ./opencascade/BRepOffset_Interval.hxx
// ./opencascade/BRepOffset_ListIteratorOfListOfInterval.hxx
// ./opencascade/BRepOffset_ListOfInterval.hxx
// ./opencascade/BRepOffset_MakeLoops.hxx
// ./opencascade/BRepOffset_MakeOffset.hxx
// ./opencascade/BRepOffset_MakeSimpleOffset.hxx
// ./opencascade/BRepOffset_Mode.hxx
// ./opencascade/BRepOffset_Offset.hxx
// ./opencascade/BRepOffset_SimpleOffset.hxx
// ./opencascade/BRepOffset_Status.hxx
// ./opencascade/BRepOffset_Tool.hxx
// Additional functions
// operators
// register typdefs
register_template_NCollection_DataMap<TopoDS_Shape, BRepOffset_ListOfInterval, TopTools_ShapeMapHasher>(m,"BRepOffset_DataMapOfShapeListOfInterval");
register_template_NCollection_DataMap<TopoDS_Shape, TopTools_MapOfShape, TopTools_ShapeMapHasher>(m,"BRepOffset_DataMapOfShapeMapOfShape");
register_template_NCollection_DataMap<TopoDS_Shape, BRepOffset_Offset, TopTools_ShapeMapHasher>(m,"BRepOffset_DataMapOfShapeOffset");
register_template_NCollection_List<BRepOffset_Interval>(m,"BRepOffset_ListOfInterval");
// exceptions
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|