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 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110
|
// 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 <IntSurf_Transition.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 <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 <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>
// module includes
#include <IntSurf.hxx>
#include <IntSurf_Allocator.hxx>
#include <IntSurf_Couple.hxx>
#include <IntSurf_InteriorPoint.hxx>
#include <IntSurf_InteriorPointTool.hxx>
#include <IntSurf_LineOn2S.hxx>
#include <IntSurf_ListIteratorOfListOfPntOn2S.hxx>
#include <IntSurf_ListOfPntOn2S.hxx>
#include <IntSurf_PathPoint.hxx>
#include <IntSurf_PathPointTool.hxx>
#include <IntSurf_PntOn2S.hxx>
#include <IntSurf_Quadric.hxx>
#include <IntSurf_QuadricTool.hxx>
#include <IntSurf_SequenceOfCouple.hxx>
#include <IntSurf_SequenceOfInteriorPoint.hxx>
#include <IntSurf_SequenceOfPathPoint.hxx>
#include <IntSurf_SequenceOfPntOn2S.hxx>
#include <IntSurf_Situation.hxx>
#include <IntSurf_Transition.hxx>
#include <IntSurf_TypeTrans.hxx>
// template related includes
// ./opencascade/IntSurf_ListOfPntOn2S.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/IntSurf_ListOfPntOn2S.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/IntSurf_SequenceOfCouple.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/IntSurf_SequenceOfInteriorPoint.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/IntSurf_SequenceOfPathPoint.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/IntSurf_SequenceOfPntOn2S.hxx
#include "NCollection_tmpl.hxx"
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_IntSurf(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("IntSurf"));
py::object klass;
//Python trampoline classes
// classes
// Class IntSurf from ./opencascade/IntSurf.hxx
klass = m.attr("IntSurf");
// default constructor
register_default_constructor<IntSurf , shared_ptr<IntSurf>>(m,"IntSurf");
// nested enums
static_cast<py::class_<IntSurf , shared_ptr<IntSurf> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("MakeTransition_s",
(void (*)( const gp_Vec & , const gp_Vec & , const gp_Dir & , IntSurf_Transition & , IntSurf_Transition & ) ) static_cast<void (*)( const gp_Vec & , const gp_Vec & , const gp_Dir & , IntSurf_Transition & , IntSurf_Transition & ) >(&IntSurf::MakeTransition),
R"#(Computes the transition of the intersection point between the two lines. TgFirst is the tangent vector of the first line. TgSecond is the tangent vector of the second line. Normal is the direction used to orientate the cross product TgFirst^TgSecond. TFirst is the transition of the point on the first line. TSecond is the transition of the point on the second line.)#" , py::arg("TgFirst"), py::arg("TgSecond"), py::arg("Normal"), py::arg("TFirst"), py::arg("TSecond")
)
.def_static("SetPeriod_s",
(void (*)( const opencascade::handle<Adaptor3d_Surface> & , const opencascade::handle<Adaptor3d_Surface> & , Standard_Real[4] ) ) static_cast<void (*)( const opencascade::handle<Adaptor3d_Surface> & , const opencascade::handle<Adaptor3d_Surface> & , Standard_Real[4] ) >(&IntSurf::SetPeriod),
R"#(Fills theArrOfPeriod array by the period values of theFirstSurf and theSecondSurf. [0] = U-period of theFirstSurf, [1] = V-period of theFirstSurf, [2] = U-period of theSecondSurf, [3] = V-period of theSecondSurf.)#" , py::arg("theFirstSurf"), py::arg("theSecondSurf"), py::arg("theArrOfPeriod")
)
// 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 IntSurf_Couple from ./opencascade/IntSurf_Couple.hxx
klass = m.attr("IntSurf_Couple");
// nested enums
static_cast<py::class_<IntSurf_Couple , shared_ptr<IntSurf_Couple> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const Standard_Integer,const Standard_Integer >() , py::arg("Index1"), py::arg("Index2") )
// custom constructors
// methods
.def("First",
(Standard_Integer (IntSurf_Couple::*)() const) static_cast<Standard_Integer (IntSurf_Couple::*)() const>(&IntSurf_Couple::First),
R"#(returns the first element)#"
)
.def("Second",
(Standard_Integer (IntSurf_Couple::*)() const) static_cast<Standard_Integer (IntSurf_Couple::*)() const>(&IntSurf_Couple::Second),
R"#(returns the Second element)#"
)
.def("First",
(Standard_Integer (IntSurf_Couple::*)() const) static_cast<Standard_Integer (IntSurf_Couple::*)() const>(&IntSurf_Couple::First),
R"#(returns the first element)#"
)
.def("Second",
(Standard_Integer (IntSurf_Couple::*)() const) static_cast<Standard_Integer (IntSurf_Couple::*)() const>(&IntSurf_Couple::Second),
R"#(returns the Second element)#"
)
// 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 IntSurf_InteriorPoint from ./opencascade/IntSurf_InteriorPoint.hxx
klass = m.attr("IntSurf_InteriorPoint");
// nested enums
static_cast<py::class_<IntSurf_InteriorPoint , shared_ptr<IntSurf_InteriorPoint> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const gp_Pnt &,const Standard_Real,const Standard_Real,const gp_Vec &,const gp_Vec2d & >() , py::arg("P"), py::arg("U"), py::arg("V"), py::arg("Direc"), py::arg("Direc2d") )
// custom constructors
// methods
.def("SetValue",
(void (IntSurf_InteriorPoint::*)( const gp_Pnt & , const Standard_Real , const Standard_Real , const gp_Vec & , const gp_Vec2d & ) ) static_cast<void (IntSurf_InteriorPoint::*)( const gp_Pnt & , const Standard_Real , const Standard_Real , const gp_Vec & , const gp_Vec2d & ) >(&IntSurf_InteriorPoint::SetValue),
R"#(None)#" , py::arg("P"), py::arg("U"), py::arg("V"), py::arg("Direc"), py::arg("Direc2d")
)
.def("UParameter",
(Standard_Real (IntSurf_InteriorPoint::*)() const) static_cast<Standard_Real (IntSurf_InteriorPoint::*)() const>(&IntSurf_InteriorPoint::UParameter),
R"#(Returns the first parameter of the interior point on the parametric surface.)#"
)
.def("VParameter",
(Standard_Real (IntSurf_InteriorPoint::*)() const) static_cast<Standard_Real (IntSurf_InteriorPoint::*)() const>(&IntSurf_InteriorPoint::VParameter),
R"#(Returns the second parameter of the interior point on the parametric surface.)#"
)
.def("UParameter",
(Standard_Real (IntSurf_InteriorPoint::*)() const) static_cast<Standard_Real (IntSurf_InteriorPoint::*)() const>(&IntSurf_InteriorPoint::UParameter),
R"#(Returns the first parameter of the interior point on the parametric surface.)#"
)
.def("VParameter",
(Standard_Real (IntSurf_InteriorPoint::*)() const) static_cast<Standard_Real (IntSurf_InteriorPoint::*)() const>(&IntSurf_InteriorPoint::VParameter),
R"#(Returns the second parameter of the interior point on the parametric surface.)#"
)
// methods using call by reference i.s.o. return
.def("Parameters",
[]( IntSurf_InteriorPoint &self ){
Standard_Real U;
Standard_Real V;
self.Parameters(U,V);
return std::make_tuple(U,V); },
R"#(Returns the parameters of the interior point on the parametric surface.)#"
)
.def("Parameters",
[]( IntSurf_InteriorPoint &self ){
Standard_Real U;
Standard_Real V;
self.Parameters(U,V);
return std::make_tuple(U,V); },
R"#(Returns the parameters of the interior point on the parametric surface.)#"
)
// 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("Value",
(const gp_Pnt & (IntSurf_InteriorPoint::*)() const) static_cast<const gp_Pnt & (IntSurf_InteriorPoint::*)() const>(&IntSurf_InteriorPoint::Value),
R"#(Returns the 3d coordinates of the interior point.)#"
)
.def("Direction",
(const gp_Vec & (IntSurf_InteriorPoint::*)() const) static_cast<const gp_Vec & (IntSurf_InteriorPoint::*)() const>(&IntSurf_InteriorPoint::Direction),
R"#(Returns the tangent at the intersection in 3d space associated to the interior point.)#"
)
.def("Direction2d",
(const gp_Vec2d & (IntSurf_InteriorPoint::*)() const) static_cast<const gp_Vec2d & (IntSurf_InteriorPoint::*)() const>(&IntSurf_InteriorPoint::Direction2d),
R"#(Returns the tangent at the intersection in the parametric space of the parametric surface.)#"
)
.def("Value",
(const gp_Pnt & (IntSurf_InteriorPoint::*)() const) static_cast<const gp_Pnt & (IntSurf_InteriorPoint::*)() const>(&IntSurf_InteriorPoint::Value),
R"#(Returns the 3d coordinates of the interior point.)#"
)
.def("Direction",
(const gp_Vec & (IntSurf_InteriorPoint::*)() const) static_cast<const gp_Vec & (IntSurf_InteriorPoint::*)() const>(&IntSurf_InteriorPoint::Direction),
R"#(Returns the tangent at the intersection in 3d space associated to the interior point.)#"
)
.def("Direction2d",
(const gp_Vec2d & (IntSurf_InteriorPoint::*)() const) static_cast<const gp_Vec2d & (IntSurf_InteriorPoint::*)() const>(&IntSurf_InteriorPoint::Direction2d),
R"#(Returns the tangent at the intersection in the parametric space of the parametric surface.)#"
)
;
// Class IntSurf_InteriorPointTool from ./opencascade/IntSurf_InteriorPointTool.hxx
klass = m.attr("IntSurf_InteriorPointTool");
// default constructor
register_default_constructor<IntSurf_InteriorPointTool , shared_ptr<IntSurf_InteriorPointTool>>(m,"IntSurf_InteriorPointTool");
// nested enums
static_cast<py::class_<IntSurf_InteriorPointTool , shared_ptr<IntSurf_InteriorPointTool> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("Value3d_s",
(gp_Pnt (*)( const IntSurf_InteriorPoint & ) ) static_cast<gp_Pnt (*)( const IntSurf_InteriorPoint & ) >(&IntSurf_InteriorPointTool::Value3d),
R"#(Returns the 3d coordinates of the starting point.)#" , py::arg("PStart")
)
.def_static("Direction3d_s",
(gp_Vec (*)( const IntSurf_InteriorPoint & ) ) static_cast<gp_Vec (*)( const IntSurf_InteriorPoint & ) >(&IntSurf_InteriorPointTool::Direction3d),
R"#(returns the tangent at the intersectin in 3d space associated to <P>)#" , py::arg("PStart")
)
.def_static("Direction2d_s",
(gp_Dir2d (*)( const IntSurf_InteriorPoint & ) ) static_cast<gp_Dir2d (*)( const IntSurf_InteriorPoint & ) >(&IntSurf_InteriorPointTool::Direction2d),
R"#(returns the tangent at the intersectin in the parametric space of the parametrized surface.This tangent is associated to the value2d)#" , py::arg("PStart")
)
// static methods using call by reference i.s.o. return
.def_static("Value2d_s",
[](const IntSurf_InteriorPoint & PStart ){
Standard_Real U;
Standard_Real V;
IntSurf_InteriorPointTool::Value2d(PStart,U,V);
return std::make_tuple(U,V); },
R"#(Returns the <U,V> parameters which are associated with <P> it's the parameters which start the marching algorithm)#" , py::arg("PStart")
)
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class IntSurf_LineOn2S from ./opencascade/IntSurf_LineOn2S.hxx
klass = m.attr("IntSurf_LineOn2S");
// nested enums
static_cast<py::class_<IntSurf_LineOn2S ,opencascade::handle<IntSurf_LineOn2S> , Standard_Transient >>(klass)
// constructors
.def(py::init< const opencascade::handle<NCollection_BaseAllocator> & >() , py::arg("theAllocator")=static_cast< const opencascade::handle<NCollection_BaseAllocator> &>(0) )
// custom constructors
// methods
.def("Add",
(void (IntSurf_LineOn2S::*)( const IntSurf_PntOn2S & ) ) static_cast<void (IntSurf_LineOn2S::*)( const IntSurf_PntOn2S & ) >(&IntSurf_LineOn2S::Add),
R"#(Adds a point in the line.)#" , py::arg("P")
)
.def("NbPoints",
(Standard_Integer (IntSurf_LineOn2S::*)() const) static_cast<Standard_Integer (IntSurf_LineOn2S::*)() const>(&IntSurf_LineOn2S::NbPoints),
R"#(Returns the number of points in the line.)#"
)
.def("Value",
(const IntSurf_PntOn2S & (IntSurf_LineOn2S::*)( const Standard_Integer ) const) static_cast<const IntSurf_PntOn2S & (IntSurf_LineOn2S::*)( const Standard_Integer ) const>(&IntSurf_LineOn2S::Value),
R"#(Returns the point of range Index in the line.)#" , py::arg("Index")
)
.def("Reverse",
(void (IntSurf_LineOn2S::*)() ) static_cast<void (IntSurf_LineOn2S::*)() >(&IntSurf_LineOn2S::Reverse),
R"#(Reverses the order of points of the line.)#"
)
.def("Split",
(opencascade::handle<IntSurf_LineOn2S> (IntSurf_LineOn2S::*)( const Standard_Integer ) ) static_cast<opencascade::handle<IntSurf_LineOn2S> (IntSurf_LineOn2S::*)( const Standard_Integer ) >(&IntSurf_LineOn2S::Split),
R"#(Keeps in <me> the points 1 to Index-1, and returns the items Index to the end.)#" , py::arg("Index")
)
.def("Value",
(void (IntSurf_LineOn2S::*)( const Standard_Integer , const IntSurf_PntOn2S & ) ) static_cast<void (IntSurf_LineOn2S::*)( const Standard_Integer , const IntSurf_PntOn2S & ) >(&IntSurf_LineOn2S::Value),
R"#(Replaces the point of range Index in the line.)#" , py::arg("Index"), py::arg("P")
)
.def("SetPoint",
(void (IntSurf_LineOn2S::*)( const Standard_Integer , const gp_Pnt & ) ) static_cast<void (IntSurf_LineOn2S::*)( const Standard_Integer , const gp_Pnt & ) >(&IntSurf_LineOn2S::SetPoint),
R"#(Sets the 3D point of the Index-th PntOn2S)#" , py::arg("Index"), py::arg("thePnt")
)
.def("SetUV",
(void (IntSurf_LineOn2S::*)( const Standard_Integer , const Standard_Boolean , const Standard_Real , const Standard_Real ) ) static_cast<void (IntSurf_LineOn2S::*)( const Standard_Integer , const Standard_Boolean , const Standard_Real , const Standard_Real ) >(&IntSurf_LineOn2S::SetUV),
R"#(Sets the parametric coordinates on one of the surfaces of the point of range Index in the line.)#" , py::arg("Index"), py::arg("OnFirst"), py::arg("U"), py::arg("V")
)
.def("Clear",
(void (IntSurf_LineOn2S::*)() ) static_cast<void (IntSurf_LineOn2S::*)() >(&IntSurf_LineOn2S::Clear),
R"#(None)#"
)
.def("InsertBefore",
(void (IntSurf_LineOn2S::*)( const Standard_Integer , const IntSurf_PntOn2S & ) ) static_cast<void (IntSurf_LineOn2S::*)( const Standard_Integer , const IntSurf_PntOn2S & ) >(&IntSurf_LineOn2S::InsertBefore),
R"#(None)#" , py::arg("I"), py::arg("P")
)
.def("RemovePoint",
(void (IntSurf_LineOn2S::*)( const Standard_Integer ) ) static_cast<void (IntSurf_LineOn2S::*)( const Standard_Integer ) >(&IntSurf_LineOn2S::RemovePoint),
R"#(None)#" , py::arg("I")
)
.def("IsOutSurf1Box",
(Standard_Boolean (IntSurf_LineOn2S::*)( const gp_Pnt2d & ) ) static_cast<Standard_Boolean (IntSurf_LineOn2S::*)( const gp_Pnt2d & ) >(&IntSurf_LineOn2S::IsOutSurf1Box),
R"#(Returns TRUE if theP is out of the box built from the points on 1st surface)#" , py::arg("theP")
)
.def("IsOutSurf2Box",
(Standard_Boolean (IntSurf_LineOn2S::*)( const gp_Pnt2d & ) ) static_cast<Standard_Boolean (IntSurf_LineOn2S::*)( const gp_Pnt2d & ) >(&IntSurf_LineOn2S::IsOutSurf2Box),
R"#(Returns TRUE if theP is out of the box built from the points on 2nd surface)#" , py::arg("theP")
)
.def("IsOutBox",
(Standard_Boolean (IntSurf_LineOn2S::*)( const gp_Pnt & ) ) static_cast<Standard_Boolean (IntSurf_LineOn2S::*)( const gp_Pnt & ) >(&IntSurf_LineOn2S::IsOutBox),
R"#(Returns TRUE if theP is out of the box built from 3D-points.)#" , py::arg("theP")
)
.def("NbPoints",
(Standard_Integer (IntSurf_LineOn2S::*)() const) static_cast<Standard_Integer (IntSurf_LineOn2S::*)() const>(&IntSurf_LineOn2S::NbPoints),
R"#(Returns the number of points in the line.)#"
)
.def("Reverse",
(void (IntSurf_LineOn2S::*)() ) static_cast<void (IntSurf_LineOn2S::*)() >(&IntSurf_LineOn2S::Reverse),
R"#(Reverses the order of points of the line.)#"
)
.def("Value",
(const IntSurf_PntOn2S & (IntSurf_LineOn2S::*)( const Standard_Integer ) const) static_cast<const IntSurf_PntOn2S & (IntSurf_LineOn2S::*)( const Standard_Integer ) const>(&IntSurf_LineOn2S::Value),
R"#(Returns the point of range Index in the line.)#" , py::arg("Index")
)
.def("Value",
(void (IntSurf_LineOn2S::*)( const Standard_Integer , const IntSurf_PntOn2S & ) ) static_cast<void (IntSurf_LineOn2S::*)( const Standard_Integer , const IntSurf_PntOn2S & ) >(&IntSurf_LineOn2S::Value),
R"#(Replaces the point of range Index in the line.)#" , py::arg("Index"), py::arg("P")
)
.def("SetPoint",
(void (IntSurf_LineOn2S::*)( const Standard_Integer , const gp_Pnt & ) ) static_cast<void (IntSurf_LineOn2S::*)( const Standard_Integer , const gp_Pnt & ) >(&IntSurf_LineOn2S::SetPoint),
R"#(Sets the 3D point of the Index-th PntOn2S)#" , py::arg("Index"), py::arg("thePnt")
)
.def("Clear",
(void (IntSurf_LineOn2S::*)() ) static_cast<void (IntSurf_LineOn2S::*)() >(&IntSurf_LineOn2S::Clear),
R"#(None)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&IntSurf_LineOn2S::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&IntSurf_LineOn2S::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> & (IntSurf_LineOn2S::*)() const) static_cast<const opencascade::handle<Standard_Type> & (IntSurf_LineOn2S::*)() const>(&IntSurf_LineOn2S::DynamicType),
R"#(None)#"
)
;
// Class IntSurf_PathPoint from ./opencascade/IntSurf_PathPoint.hxx
klass = m.attr("IntSurf_PathPoint");
// nested enums
static_cast<py::class_<IntSurf_PathPoint , shared_ptr<IntSurf_PathPoint> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const gp_Pnt &,const Standard_Real,const Standard_Real >() , py::arg("P"), py::arg("U"), py::arg("V") )
// custom constructors
// methods
.def("SetValue",
(void (IntSurf_PathPoint::*)( const gp_Pnt & , const Standard_Real , const Standard_Real ) ) static_cast<void (IntSurf_PathPoint::*)( const gp_Pnt & , const Standard_Real , const Standard_Real ) >(&IntSurf_PathPoint::SetValue),
R"#(None)#" , py::arg("P"), py::arg("U"), py::arg("V")
)
.def("AddUV",
(void (IntSurf_PathPoint::*)( const Standard_Real , const Standard_Real ) ) static_cast<void (IntSurf_PathPoint::*)( const Standard_Real , const Standard_Real ) >(&IntSurf_PathPoint::AddUV),
R"#(None)#" , py::arg("U"), py::arg("V")
)
.def("SetDirections",
(void (IntSurf_PathPoint::*)( const gp_Vec & , const gp_Dir2d & ) ) static_cast<void (IntSurf_PathPoint::*)( const gp_Vec & , const gp_Dir2d & ) >(&IntSurf_PathPoint::SetDirections),
R"#(None)#" , py::arg("V"), py::arg("D")
)
.def("SetTangency",
(void (IntSurf_PathPoint::*)( const Standard_Boolean ) ) static_cast<void (IntSurf_PathPoint::*)( const Standard_Boolean ) >(&IntSurf_PathPoint::SetTangency),
R"#(None)#" , py::arg("Tang")
)
.def("SetPassing",
(void (IntSurf_PathPoint::*)( const Standard_Boolean ) ) static_cast<void (IntSurf_PathPoint::*)( const Standard_Boolean ) >(&IntSurf_PathPoint::SetPassing),
R"#(None)#" , py::arg("Pass")
)
.def("IsPassingPnt",
(Standard_Boolean (IntSurf_PathPoint::*)() const) static_cast<Standard_Boolean (IntSurf_PathPoint::*)() const>(&IntSurf_PathPoint::IsPassingPnt),
R"#(None)#"
)
.def("IsTangent",
(Standard_Boolean (IntSurf_PathPoint::*)() const) static_cast<Standard_Boolean (IntSurf_PathPoint::*)() const>(&IntSurf_PathPoint::IsTangent),
R"#(None)#"
)
.def("Multiplicity",
(Standard_Integer (IntSurf_PathPoint::*)() const) static_cast<Standard_Integer (IntSurf_PathPoint::*)() const>(&IntSurf_PathPoint::Multiplicity),
R"#(None)#"
)
.def("AddUV",
(void (IntSurf_PathPoint::*)( const Standard_Real , const Standard_Real ) ) static_cast<void (IntSurf_PathPoint::*)( const Standard_Real , const Standard_Real ) >(&IntSurf_PathPoint::AddUV),
R"#(None)#" , py::arg("U"), py::arg("V")
)
.def("SetDirections",
(void (IntSurf_PathPoint::*)( const gp_Vec & , const gp_Dir2d & ) ) static_cast<void (IntSurf_PathPoint::*)( const gp_Vec & , const gp_Dir2d & ) >(&IntSurf_PathPoint::SetDirections),
R"#(None)#" , py::arg("V"), py::arg("D")
)
.def("SetTangency",
(void (IntSurf_PathPoint::*)( const Standard_Boolean ) ) static_cast<void (IntSurf_PathPoint::*)( const Standard_Boolean ) >(&IntSurf_PathPoint::SetTangency),
R"#(None)#" , py::arg("Tang")
)
.def("SetPassing",
(void (IntSurf_PathPoint::*)( const Standard_Boolean ) ) static_cast<void (IntSurf_PathPoint::*)( const Standard_Boolean ) >(&IntSurf_PathPoint::SetPassing),
R"#(None)#" , py::arg("Pass")
)
.def("IsPassingPnt",
(Standard_Boolean (IntSurf_PathPoint::*)() const) static_cast<Standard_Boolean (IntSurf_PathPoint::*)() const>(&IntSurf_PathPoint::IsPassingPnt),
R"#(None)#"
)
.def("IsTangent",
(Standard_Boolean (IntSurf_PathPoint::*)() const) static_cast<Standard_Boolean (IntSurf_PathPoint::*)() const>(&IntSurf_PathPoint::IsTangent),
R"#(None)#"
)
.def("Multiplicity",
(Standard_Integer (IntSurf_PathPoint::*)() const) static_cast<Standard_Integer (IntSurf_PathPoint::*)() const>(&IntSurf_PathPoint::Multiplicity),
R"#(None)#"
)
// methods using call by reference i.s.o. return
.def("Value2d",
[]( IntSurf_PathPoint &self ){
Standard_Real U;
Standard_Real V;
self.Value2d(U,V);
return std::make_tuple(U,V); },
R"#(None)#"
)
.def("Parameters",
[]( IntSurf_PathPoint &self , const Standard_Integer Index ){
Standard_Real U;
Standard_Real V;
self.Parameters(Index,U,V);
return std::make_tuple(U,V); },
R"#(None)#" , py::arg("Index")
)
.def("Value2d",
[]( IntSurf_PathPoint &self ){
Standard_Real U;
Standard_Real V;
self.Value2d(U,V);
return std::make_tuple(U,V); },
R"#(None)#"
)
.def("Parameters",
[]( IntSurf_PathPoint &self , const Standard_Integer Index ){
Standard_Real U;
Standard_Real V;
self.Parameters(Index,U,V);
return std::make_tuple(U,V); },
R"#(None)#" , py::arg("Index")
)
// 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("Value",
(const gp_Pnt & (IntSurf_PathPoint::*)() const) static_cast<const gp_Pnt & (IntSurf_PathPoint::*)() const>(&IntSurf_PathPoint::Value),
R"#(None)#"
)
.def("Direction3d",
(const gp_Vec & (IntSurf_PathPoint::*)() const) static_cast<const gp_Vec & (IntSurf_PathPoint::*)() const>(&IntSurf_PathPoint::Direction3d),
R"#(None)#"
)
.def("Direction2d",
(const gp_Dir2d & (IntSurf_PathPoint::*)() const) static_cast<const gp_Dir2d & (IntSurf_PathPoint::*)() const>(&IntSurf_PathPoint::Direction2d),
R"#(None)#"
)
.def("Value",
(const gp_Pnt & (IntSurf_PathPoint::*)() const) static_cast<const gp_Pnt & (IntSurf_PathPoint::*)() const>(&IntSurf_PathPoint::Value),
R"#(None)#"
)
.def("Direction3d",
(const gp_Vec & (IntSurf_PathPoint::*)() const) static_cast<const gp_Vec & (IntSurf_PathPoint::*)() const>(&IntSurf_PathPoint::Direction3d),
R"#(None)#"
)
.def("Direction2d",
(const gp_Dir2d & (IntSurf_PathPoint::*)() const) static_cast<const gp_Dir2d & (IntSurf_PathPoint::*)() const>(&IntSurf_PathPoint::Direction2d),
R"#(None)#"
)
;
// Class IntSurf_PathPointTool from ./opencascade/IntSurf_PathPointTool.hxx
klass = m.attr("IntSurf_PathPointTool");
// default constructor
register_default_constructor<IntSurf_PathPointTool , shared_ptr<IntSurf_PathPointTool>>(m,"IntSurf_PathPointTool");
// nested enums
static_cast<py::class_<IntSurf_PathPointTool , shared_ptr<IntSurf_PathPointTool> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("Value3d_s",
(gp_Pnt (*)( const IntSurf_PathPoint & ) ) static_cast<gp_Pnt (*)( const IntSurf_PathPoint & ) >(&IntSurf_PathPointTool::Value3d),
R"#(Returns the 3d coordinates of the starting point.)#" , py::arg("PStart")
)
.def_static("IsPassingPnt_s",
(Standard_Boolean (*)( const IntSurf_PathPoint & ) ) static_cast<Standard_Boolean (*)( const IntSurf_PathPoint & ) >(&IntSurf_PathPointTool::IsPassingPnt),
R"#(Returns True if the point is a point on a non-oriented arc, which means that the intersection line does not stop at such a point but just go through such a point. IsPassingPnt is True when IsOnArc is True)#" , py::arg("PStart")
)
.def_static("IsTangent_s",
(Standard_Boolean (*)( const IntSurf_PathPoint & ) ) static_cast<Standard_Boolean (*)( const IntSurf_PathPoint & ) >(&IntSurf_PathPointTool::IsTangent),
R"#(Returns True if the surfaces are tangent at this point. IsTangent can be True when IsOnArc is True if IsPassingPnt is True and IsTangent is True,this point is a stopped point.)#" , py::arg("PStart")
)
.def_static("Direction3d_s",
(gp_Vec (*)( const IntSurf_PathPoint & ) ) static_cast<gp_Vec (*)( const IntSurf_PathPoint & ) >(&IntSurf_PathPointTool::Direction3d),
R"#(returns the tangent at the intersection in 3d space associated to <P> an exception is raised if IsTangent is true.)#" , py::arg("PStart")
)
.def_static("Direction2d_s",
(gp_Dir2d (*)( const IntSurf_PathPoint & ) ) static_cast<gp_Dir2d (*)( const IntSurf_PathPoint & ) >(&IntSurf_PathPointTool::Direction2d),
R"#(returns the tangent at the intersection in the parametric space of the parametrized surface.This tangent is associated to the value2d la tangente a un sens signifiant (indique le sens de chemin ement) an exception is raised if IsTangent is true.)#" , py::arg("PStart")
)
.def_static("Multiplicity_s",
(Standard_Integer (*)( const IntSurf_PathPoint & ) ) static_cast<Standard_Integer (*)( const IntSurf_PathPoint & ) >(&IntSurf_PathPointTool::Multiplicity),
R"#(Returns the multiplicity of the point i-e the number of auxillar parameters associated to the point which the principal parameters are given by Value2d)#" , py::arg("PStart")
)
// static methods using call by reference i.s.o. return
.def_static("Value2d_s",
[](const IntSurf_PathPoint & PStart ){
Standard_Real U;
Standard_Real V;
IntSurf_PathPointTool::Value2d(PStart,U,V);
return std::make_tuple(U,V); },
R"#(Returns the <U, V> parameters which are associated with <P> it's the parameters which start the marching algorithm)#" , py::arg("PStart")
)
.def_static("Parameters_s",
[](const IntSurf_PathPoint & PStart,const Standard_Integer Mult ){
Standard_Real U;
Standard_Real V;
IntSurf_PathPointTool::Parameters(PStart,Mult,U,V);
return std::make_tuple(U,V); },
R"#(Parametric coordinates associated to the multiplicity. An exception is raised if Mult<=0 or Mult>multiplicity.)#" , py::arg("PStart"), py::arg("Mult")
)
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class IntSurf_PntOn2S from ./opencascade/IntSurf_PntOn2S.hxx
klass = m.attr("IntSurf_PntOn2S");
// nested enums
static_cast<py::class_<IntSurf_PntOn2S , shared_ptr<IntSurf_PntOn2S> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("SetValue",
(void (IntSurf_PntOn2S::*)( const gp_Pnt & ) ) static_cast<void (IntSurf_PntOn2S::*)( const gp_Pnt & ) >(&IntSurf_PntOn2S::SetValue),
R"#(Sets the value of the point in 3d space.)#" , py::arg("Pt")
)
.def("SetValue",
(void (IntSurf_PntOn2S::*)( const gp_Pnt & , const Standard_Boolean , const Standard_Real , const Standard_Real ) ) static_cast<void (IntSurf_PntOn2S::*)( const gp_Pnt & , const Standard_Boolean , const Standard_Real , const Standard_Real ) >(&IntSurf_PntOn2S::SetValue),
R"#(Sets the values of the point in 3d space, and in the parametric space of one of the surface.)#" , py::arg("Pt"), py::arg("OnFirst"), py::arg("U"), py::arg("V")
)
.def("SetValue",
(void (IntSurf_PntOn2S::*)( const gp_Pnt & , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (IntSurf_PntOn2S::*)( const gp_Pnt & , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) >(&IntSurf_PntOn2S::SetValue),
R"#(Sets the values of the point in 3d space, and in the parametric space of each surface.)#" , py::arg("Pt"), py::arg("U1"), py::arg("V1"), py::arg("U2"), py::arg("V2")
)
.def("SetValue",
(void (IntSurf_PntOn2S::*)( const Standard_Boolean , const Standard_Real , const Standard_Real ) ) static_cast<void (IntSurf_PntOn2S::*)( const Standard_Boolean , const Standard_Real , const Standard_Real ) >(&IntSurf_PntOn2S::SetValue),
R"#(Set the values of the point in the parametric space of one of the surface.)#" , py::arg("OnFirst"), py::arg("U"), py::arg("V")
)
.def("SetValue",
(void (IntSurf_PntOn2S::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (IntSurf_PntOn2S::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) >(&IntSurf_PntOn2S::SetValue),
R"#(Set the values of the point in the parametric space of one of the surface.)#" , py::arg("U1"), py::arg("V1"), py::arg("U2"), py::arg("V2")
)
.def("ValueOnSurface",
(gp_Pnt2d (IntSurf_PntOn2S::*)( const Standard_Boolean ) const) static_cast<gp_Pnt2d (IntSurf_PntOn2S::*)( const Standard_Boolean ) const>(&IntSurf_PntOn2S::ValueOnSurface),
R"#(Returns the point in 2d space of one of the surfaces.)#" , py::arg("OnFirst")
)
.def("IsSame",
(Standard_Boolean (IntSurf_PntOn2S::*)( const IntSurf_PntOn2S & , const Standard_Real , const Standard_Real ) const) static_cast<Standard_Boolean (IntSurf_PntOn2S::*)( const IntSurf_PntOn2S & , const Standard_Real , const Standard_Real ) const>(&IntSurf_PntOn2S::IsSame),
R"#(Returns TRUE if 2D- and 3D-coordinates of theOterPoint are equal to corresponding coordinates of me (with given tolerance). If theTol2D < 0.0 we will compare 3D-points only.)#" , py::arg("theOtherPoint"), py::arg("theTol3D")=static_cast<const Standard_Real>(0.0), py::arg("theTol2D")=static_cast<const Standard_Real>(- 1.0)
)
.def("SetValue",
(void (IntSurf_PntOn2S::*)( const gp_Pnt & ) ) static_cast<void (IntSurf_PntOn2S::*)( const gp_Pnt & ) >(&IntSurf_PntOn2S::SetValue),
R"#(Sets the value of the point in 3d space.)#" , py::arg("Pt")
)
.def("SetValue",
(void (IntSurf_PntOn2S::*)( const gp_Pnt & , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (IntSurf_PntOn2S::*)( const gp_Pnt & , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) >(&IntSurf_PntOn2S::SetValue),
R"#(Sets the values of the point in 3d space, and in the parametric space of each surface.)#" , py::arg("Pt"), py::arg("U1"), py::arg("V1"), py::arg("U2"), py::arg("V2")
)
.def("SetValue",
(void (IntSurf_PntOn2S::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (IntSurf_PntOn2S::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) >(&IntSurf_PntOn2S::SetValue),
R"#(Set the values of the point in the parametric space of one of the surface.)#" , py::arg("U1"), py::arg("V1"), py::arg("U2"), py::arg("V2")
)
// methods using call by reference i.s.o. return
.def("ParametersOnS1",
[]( IntSurf_PntOn2S &self ){
Standard_Real U1;
Standard_Real V1;
self.ParametersOnS1(U1,V1);
return std::make_tuple(U1,V1); },
R"#(Returns the parameters of the point on the first surface.)#"
)
.def("ParametersOnS2",
[]( IntSurf_PntOn2S &self ){
Standard_Real U2;
Standard_Real V2;
self.ParametersOnS2(U2,V2);
return std::make_tuple(U2,V2); },
R"#(Returns the parameters of the point on the second surface.)#"
)
.def("ParametersOnSurface",
[]( IntSurf_PntOn2S &self , const Standard_Boolean OnFirst ){
Standard_Real U;
Standard_Real V;
self.ParametersOnSurface(OnFirst,U,V);
return std::make_tuple(U,V); },
R"#(Returns the parameters of the point in the parametric space of one of the surface.)#" , py::arg("OnFirst")
)
.def("Parameters",
[]( IntSurf_PntOn2S &self ){
Standard_Real U1;
Standard_Real V1;
Standard_Real U2;
Standard_Real V2;
self.Parameters(U1,V1,U2,V2);
return std::make_tuple(U1,V1,U2,V2); },
R"#(Returns the parameters of the point on both surfaces.)#"
)
.def("ParametersOnS1",
[]( IntSurf_PntOn2S &self ){
Standard_Real U1;
Standard_Real V1;
self.ParametersOnS1(U1,V1);
return std::make_tuple(U1,V1); },
R"#(Returns the parameters of the point on the first surface.)#"
)
.def("ParametersOnS2",
[]( IntSurf_PntOn2S &self ){
Standard_Real U2;
Standard_Real V2;
self.ParametersOnS2(U2,V2);
return std::make_tuple(U2,V2); },
R"#(Returns the parameters of the point on the second surface.)#"
)
.def("Parameters",
[]( IntSurf_PntOn2S &self ){
Standard_Real U1;
Standard_Real V1;
Standard_Real U2;
Standard_Real V2;
self.Parameters(U1,V1,U2,V2);
return std::make_tuple(U1,V1,U2,V2); },
R"#(Returns the parameters of the point on both surfaces.)#"
)
// 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("Value",
(const gp_Pnt & (IntSurf_PntOn2S::*)() const) static_cast<const gp_Pnt & (IntSurf_PntOn2S::*)() const>(&IntSurf_PntOn2S::Value),
R"#(Returns the point in 3d space.)#"
)
.def("Value",
(const gp_Pnt & (IntSurf_PntOn2S::*)() const) static_cast<const gp_Pnt & (IntSurf_PntOn2S::*)() const>(&IntSurf_PntOn2S::Value),
R"#(Returns the point in 3d space.)#"
)
;
// Class IntSurf_Quadric from ./opencascade/IntSurf_Quadric.hxx
klass = m.attr("IntSurf_Quadric");
// nested enums
static_cast<py::class_<IntSurf_Quadric , shared_ptr<IntSurf_Quadric> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const gp_Pln & >() , py::arg("P") )
.def(py::init< const gp_Cylinder & >() , py::arg("C") )
.def(py::init< const gp_Sphere & >() , py::arg("S") )
.def(py::init< const gp_Cone & >() , py::arg("C") )
.def(py::init< const gp_Torus & >() , py::arg("T") )
// custom constructors
// methods
.def("SetValue",
(void (IntSurf_Quadric::*)( const gp_Pln & ) ) static_cast<void (IntSurf_Quadric::*)( const gp_Pln & ) >(&IntSurf_Quadric::SetValue),
R"#(None)#" , py::arg("P")
)
.def("SetValue",
(void (IntSurf_Quadric::*)( const gp_Cylinder & ) ) static_cast<void (IntSurf_Quadric::*)( const gp_Cylinder & ) >(&IntSurf_Quadric::SetValue),
R"#(None)#" , py::arg("C")
)
.def("SetValue",
(void (IntSurf_Quadric::*)( const gp_Sphere & ) ) static_cast<void (IntSurf_Quadric::*)( const gp_Sphere & ) >(&IntSurf_Quadric::SetValue),
R"#(None)#" , py::arg("S")
)
.def("SetValue",
(void (IntSurf_Quadric::*)( const gp_Cone & ) ) static_cast<void (IntSurf_Quadric::*)( const gp_Cone & ) >(&IntSurf_Quadric::SetValue),
R"#(None)#" , py::arg("C")
)
.def("SetValue",
(void (IntSurf_Quadric::*)( const gp_Torus & ) ) static_cast<void (IntSurf_Quadric::*)( const gp_Torus & ) >(&IntSurf_Quadric::SetValue),
R"#(None)#" , py::arg("T")
)
.def("Distance",
(Standard_Real (IntSurf_Quadric::*)( const gp_Pnt & ) const) static_cast<Standard_Real (IntSurf_Quadric::*)( const gp_Pnt & ) const>(&IntSurf_Quadric::Distance),
R"#(None)#" , py::arg("P")
)
.def("Gradient",
(gp_Vec (IntSurf_Quadric::*)( const gp_Pnt & ) const) static_cast<gp_Vec (IntSurf_Quadric::*)( const gp_Pnt & ) const>(&IntSurf_Quadric::Gradient),
R"#(None)#" , py::arg("P")
)
.def("TypeQuadric",
(GeomAbs_SurfaceType (IntSurf_Quadric::*)() const) static_cast<GeomAbs_SurfaceType (IntSurf_Quadric::*)() const>(&IntSurf_Quadric::TypeQuadric),
R"#(None)#"
)
.def("Plane",
(gp_Pln (IntSurf_Quadric::*)() const) static_cast<gp_Pln (IntSurf_Quadric::*)() const>(&IntSurf_Quadric::Plane),
R"#(None)#"
)
.def("Sphere",
(gp_Sphere (IntSurf_Quadric::*)() const) static_cast<gp_Sphere (IntSurf_Quadric::*)() const>(&IntSurf_Quadric::Sphere),
R"#(None)#"
)
.def("Cylinder",
(gp_Cylinder (IntSurf_Quadric::*)() const) static_cast<gp_Cylinder (IntSurf_Quadric::*)() const>(&IntSurf_Quadric::Cylinder),
R"#(None)#"
)
.def("Cone",
(gp_Cone (IntSurf_Quadric::*)() const) static_cast<gp_Cone (IntSurf_Quadric::*)() const>(&IntSurf_Quadric::Cone),
R"#(None)#"
)
.def("Torus",
(gp_Torus (IntSurf_Quadric::*)() const) static_cast<gp_Torus (IntSurf_Quadric::*)() const>(&IntSurf_Quadric::Torus),
R"#(None)#"
)
.def("Value",
(gp_Pnt (IntSurf_Quadric::*)( const Standard_Real , const Standard_Real ) const) static_cast<gp_Pnt (IntSurf_Quadric::*)( const Standard_Real , const Standard_Real ) const>(&IntSurf_Quadric::Value),
R"#(None)#" , py::arg("U"), py::arg("V")
)
.def("D1",
(void (IntSurf_Quadric::*)( const Standard_Real , const Standard_Real , gp_Pnt & , gp_Vec & , gp_Vec & ) const) static_cast<void (IntSurf_Quadric::*)( const Standard_Real , const Standard_Real , gp_Pnt & , gp_Vec & , gp_Vec & ) const>(&IntSurf_Quadric::D1),
R"#(None)#" , py::arg("U"), py::arg("V"), py::arg("P"), py::arg("D1U"), py::arg("D1V")
)
.def("DN",
(gp_Vec (IntSurf_Quadric::*)( const Standard_Real , const Standard_Real , const Standard_Integer , const Standard_Integer ) const) static_cast<gp_Vec (IntSurf_Quadric::*)( const Standard_Real , const Standard_Real , const Standard_Integer , const Standard_Integer ) const>(&IntSurf_Quadric::DN),
R"#(None)#" , py::arg("U"), py::arg("V"), py::arg("Nu"), py::arg("Nv")
)
.def("Normale",
(gp_Vec (IntSurf_Quadric::*)( const Standard_Real , const Standard_Real ) const) static_cast<gp_Vec (IntSurf_Quadric::*)( const Standard_Real , const Standard_Real ) const>(&IntSurf_Quadric::Normale),
R"#(None)#" , py::arg("U"), py::arg("V")
)
.def("Normale",
(gp_Vec (IntSurf_Quadric::*)( const gp_Pnt & ) const) static_cast<gp_Vec (IntSurf_Quadric::*)( const gp_Pnt & ) const>(&IntSurf_Quadric::Normale),
R"#(None)#" , py::arg("P")
)
.def("TypeQuadric",
(GeomAbs_SurfaceType (IntSurf_Quadric::*)() const) static_cast<GeomAbs_SurfaceType (IntSurf_Quadric::*)() const>(&IntSurf_Quadric::TypeQuadric),
R"#(None)#"
)
.def("Plane",
(gp_Pln (IntSurf_Quadric::*)() const) static_cast<gp_Pln (IntSurf_Quadric::*)() const>(&IntSurf_Quadric::Plane),
R"#(None)#"
)
.def("Sphere",
(gp_Sphere (IntSurf_Quadric::*)() const) static_cast<gp_Sphere (IntSurf_Quadric::*)() const>(&IntSurf_Quadric::Sphere),
R"#(None)#"
)
.def("Cylinder",
(gp_Cylinder (IntSurf_Quadric::*)() const) static_cast<gp_Cylinder (IntSurf_Quadric::*)() const>(&IntSurf_Quadric::Cylinder),
R"#(None)#"
)
.def("Cone",
(gp_Cone (IntSurf_Quadric::*)() const) static_cast<gp_Cone (IntSurf_Quadric::*)() const>(&IntSurf_Quadric::Cone),
R"#(None)#"
)
.def("Torus",
(gp_Torus (IntSurf_Quadric::*)() const) static_cast<gp_Torus (IntSurf_Quadric::*)() const>(&IntSurf_Quadric::Torus),
R"#(None)#"
)
// methods using call by reference i.s.o. return
.def("ValAndGrad",
[]( IntSurf_Quadric &self , const gp_Pnt & P,gp_Vec & Grad ){
Standard_Real Dist;
self.ValAndGrad(P,Dist,Grad);
return std::make_tuple(Dist); },
R"#(None)#" , py::arg("P"), py::arg("Grad")
)
.def("Parameters",
[]( IntSurf_Quadric &self , const gp_Pnt & P ){
Standard_Real U;
Standard_Real V;
self.Parameters(P,U,V);
return std::make_tuple(U,V); },
R"#(None)#" , py::arg("P")
)
// 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 IntSurf_QuadricTool from ./opencascade/IntSurf_QuadricTool.hxx
klass = m.attr("IntSurf_QuadricTool");
// default constructor
register_default_constructor<IntSurf_QuadricTool , shared_ptr<IntSurf_QuadricTool>>(m,"IntSurf_QuadricTool");
// nested enums
static_cast<py::class_<IntSurf_QuadricTool , shared_ptr<IntSurf_QuadricTool> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("Value_s",
(Standard_Real (*)( const IntSurf_Quadric & , const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<Standard_Real (*)( const IntSurf_Quadric & , const Standard_Real , const Standard_Real , const Standard_Real ) >(&IntSurf_QuadricTool::Value),
R"#(Returns the value of the function.)#" , py::arg("Quad"), py::arg("X"), py::arg("Y"), py::arg("Z")
)
.def_static("Gradient_s",
(void (*)( const IntSurf_Quadric & , const Standard_Real , const Standard_Real , const Standard_Real , gp_Vec & ) ) static_cast<void (*)( const IntSurf_Quadric & , const Standard_Real , const Standard_Real , const Standard_Real , gp_Vec & ) >(&IntSurf_QuadricTool::Gradient),
R"#(Returns the gradient of the function.)#" , py::arg("Quad"), py::arg("X"), py::arg("Y"), py::arg("Z"), py::arg("V")
)
.def_static("Tolerance_s",
(Standard_Real (*)( const IntSurf_Quadric & ) ) static_cast<Standard_Real (*)( const IntSurf_Quadric & ) >(&IntSurf_QuadricTool::Tolerance),
R"#(returns the tolerance of the zero of the implicit function)#" , py::arg("Quad")
)
// static methods using call by reference i.s.o. return
.def_static("ValueAndGradient_s",
[](const IntSurf_Quadric & Quad,const Standard_Real X,const Standard_Real Y,const Standard_Real Z,gp_Vec & Grad ){
Standard_Real Val;
IntSurf_QuadricTool::ValueAndGradient(Quad,X,Y,Z,Val,Grad);
return std::make_tuple(Val); },
R"#(Returns the value and the gradient.)#" , py::arg("Quad"), py::arg("X"), py::arg("Y"), py::arg("Z"), py::arg("Grad")
)
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class IntSurf_Transition from ./opencascade/IntSurf_Transition.hxx
klass = m.attr("IntSurf_Transition");
// nested enums
static_cast<py::class_<IntSurf_Transition , shared_ptr<IntSurf_Transition> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const Standard_Boolean,const IntSurf_TypeTrans >() , py::arg("Tangent"), py::arg("Type") )
.def(py::init< const Standard_Boolean,const IntSurf_Situation,const Standard_Boolean >() , py::arg("Tangent"), py::arg("Situ"), py::arg("Oppos") )
// custom constructors
// methods
.def("SetValue",
(void (IntSurf_Transition::*)( const Standard_Boolean , const IntSurf_TypeTrans ) ) static_cast<void (IntSurf_Transition::*)( const Standard_Boolean , const IntSurf_TypeTrans ) >(&IntSurf_Transition::SetValue),
R"#(Set the values of an IN or OUT transition.)#" , py::arg("Tangent"), py::arg("Type")
)
.def("SetValue",
(void (IntSurf_Transition::*)( const Standard_Boolean , const IntSurf_Situation , const Standard_Boolean ) ) static_cast<void (IntSurf_Transition::*)( const Standard_Boolean , const IntSurf_Situation , const Standard_Boolean ) >(&IntSurf_Transition::SetValue),
R"#(Set the values of a TOUCH transition.)#" , py::arg("Tangent"), py::arg("Situ"), py::arg("Oppos")
)
.def("SetValue",
(void (IntSurf_Transition::*)() ) static_cast<void (IntSurf_Transition::*)() >(&IntSurf_Transition::SetValue),
R"#(Set the values of an UNDECIDED transition.)#"
)
.def("TransitionType",
(IntSurf_TypeTrans (IntSurf_Transition::*)() const) static_cast<IntSurf_TypeTrans (IntSurf_Transition::*)() const>(&IntSurf_Transition::TransitionType),
R"#(Returns the type of Transition (in/out/touch/undecided) for the arc given by value. This the transition of the intersection line compared to the Arc of restriction, i-e when the function returns INSIDE for example, it means that the intersection line goes inside the part of plane limited by the arc of restriction.)#"
)
.def("IsTangent",
(Standard_Boolean (IntSurf_Transition::*)() const) static_cast<Standard_Boolean (IntSurf_Transition::*)() const>(&IntSurf_Transition::IsTangent),
R"#(Returns TRUE if the point is tangent to the arc given by Value. An exception is raised if TransitionType returns UNDECIDED.)#"
)
.def("Situation",
(IntSurf_Situation (IntSurf_Transition::*)() const) static_cast<IntSurf_Situation (IntSurf_Transition::*)() const>(&IntSurf_Transition::Situation),
R"#(Returns a significant value if TransitionType returns TOUCH. In this case, the function returns : INSIDE when the intersection line remains inside the Arc, OUTSIDE when it remains outside the Arc, UNKNOWN when the calsulus cannot give results. If TransitionType returns IN, or OUT, or UNDECIDED, a exception is raised.)#"
)
.def("IsOpposite",
(Standard_Boolean (IntSurf_Transition::*)() const) static_cast<Standard_Boolean (IntSurf_Transition::*)() const>(&IntSurf_Transition::IsOpposite),
R"#(returns a significant value if TransitionType returns TOUCH. In this case, the function returns true when the 2 curves locally define two different parts of the space. If TransitionType returns IN or OUT or UNDECIDED, an exception is raised.)#"
)
.def("SetValue",
(void (IntSurf_Transition::*)( const Standard_Boolean , const IntSurf_TypeTrans ) ) static_cast<void (IntSurf_Transition::*)( const Standard_Boolean , const IntSurf_TypeTrans ) >(&IntSurf_Transition::SetValue),
R"#(Set the values of an IN or OUT transition.)#" , py::arg("Tangent"), py::arg("Type")
)
.def("SetValue",
(void (IntSurf_Transition::*)( const Standard_Boolean , const IntSurf_Situation , const Standard_Boolean ) ) static_cast<void (IntSurf_Transition::*)( const Standard_Boolean , const IntSurf_Situation , const Standard_Boolean ) >(&IntSurf_Transition::SetValue),
R"#(Set the values of a TOUCH transition.)#" , py::arg("Tangent"), py::arg("Situ"), py::arg("Oppos")
)
.def("SetValue",
(void (IntSurf_Transition::*)() ) static_cast<void (IntSurf_Transition::*)() >(&IntSurf_Transition::SetValue),
R"#(Set the values of an UNDECIDED transition.)#"
)
.def("TransitionType",
(IntSurf_TypeTrans (IntSurf_Transition::*)() const) static_cast<IntSurf_TypeTrans (IntSurf_Transition::*)() const>(&IntSurf_Transition::TransitionType),
R"#(Returns the type of Transition (in/out/touch/undecided) for the arc given by value. This the transition of the intersection line compared to the Arc of restriction, i-e when the function returns INSIDE for example, it means that the intersection line goes inside the part of plane limited by the arc of restriction.)#"
)
.def("IsTangent",
(Standard_Boolean (IntSurf_Transition::*)() const) static_cast<Standard_Boolean (IntSurf_Transition::*)() const>(&IntSurf_Transition::IsTangent),
R"#(Returns TRUE if the point is tangent to the arc given by Value. An exception is raised if TransitionType returns UNDECIDED.)#"
)
.def("Situation",
(IntSurf_Situation (IntSurf_Transition::*)() const) static_cast<IntSurf_Situation (IntSurf_Transition::*)() const>(&IntSurf_Transition::Situation),
R"#(Returns a significant value if TransitionType returns TOUCH. In this case, the function returns : INSIDE when the intersection line remains inside the Arc, OUTSIDE when it remains outside the Arc, UNKNOWN when the calsulus cannot give results. If TransitionType returns IN, or OUT, or UNDECIDED, a exception is raised.)#"
)
.def("IsOpposite",
(Standard_Boolean (IntSurf_Transition::*)() const) static_cast<Standard_Boolean (IntSurf_Transition::*)() const>(&IntSurf_Transition::IsOpposite),
R"#(returns a significant value if TransitionType returns TOUCH. In this case, the function returns true when the 2 curves locally define two different parts of the space. If TransitionType returns IN or OUT or UNDECIDED, an exception is raised.)#"
)
// 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
;
// functions
// ./opencascade/IntSurf.hxx
// ./opencascade/IntSurf_Allocator.hxx
// ./opencascade/IntSurf_Couple.hxx
// ./opencascade/IntSurf_InteriorPoint.hxx
// ./opencascade/IntSurf_InteriorPointTool.hxx
// ./opencascade/IntSurf_LineOn2S.hxx
// ./opencascade/IntSurf_ListIteratorOfListOfPntOn2S.hxx
// ./opencascade/IntSurf_ListOfPntOn2S.hxx
// ./opencascade/IntSurf_PathPoint.hxx
// ./opencascade/IntSurf_PathPointTool.hxx
// ./opencascade/IntSurf_PntOn2S.hxx
// ./opencascade/IntSurf_Quadric.hxx
// ./opencascade/IntSurf_QuadricTool.hxx
// ./opencascade/IntSurf_SequenceOfCouple.hxx
// ./opencascade/IntSurf_SequenceOfInteriorPoint.hxx
// ./opencascade/IntSurf_SequenceOfPathPoint.hxx
// ./opencascade/IntSurf_SequenceOfPntOn2S.hxx
// ./opencascade/IntSurf_Situation.hxx
// ./opencascade/IntSurf_Transition.hxx
// ./opencascade/IntSurf_TypeTrans.hxx
// Additional functions
// operators
// register typdefs
register_template_NCollection_List<IntSurf_PntOn2S>(m,"IntSurf_ListOfPntOn2S");
register_template_NCollection_Sequence<IntSurf_Couple>(m,"IntSurf_SequenceOfCouple");
register_template_NCollection_Sequence<IntSurf_InteriorPoint>(m,"IntSurf_SequenceOfInteriorPoint");
register_template_NCollection_Sequence<IntSurf_PathPoint>(m,"IntSurf_SequenceOfPathPoint");
register_template_NCollection_Sequence<IntSurf_PntOn2S>(m,"IntSurf_SequenceOfPntOn2S");
// exceptions
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|