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 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166
|
// 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 <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Geom_BSplineCurve.hxx>
#include <Geom2d_BSplineCurve.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 <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 <Geom_Curve.hxx>
#include <Geom2d_Curve.hxx>
#include <Geom_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 <Approx_SweepFunction.hxx>
#include <AdvApprox_Cutting.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
// module includes
#include <Approx_Array1OfAdHSurface.hxx>
#include <Approx_Array1OfGTrsf2d.hxx>
#include <Approx_Curve2d.hxx>
#include <Approx_Curve3d.hxx>
#include <Approx_CurveOnSurface.hxx>
#include <Approx_CurvilinearParameter.hxx>
#include <Approx_CurvlinFunc.hxx>
#include <Approx_FitAndDivide.hxx>
#include <Approx_FitAndDivide2d.hxx>
#include <Approx_HArray1OfAdHSurface.hxx>
#include <Approx_HArray1OfGTrsf2d.hxx>
#include <Approx_MCurvesToBSpCurve.hxx>
#include <Approx_ParametrizationType.hxx>
#include <Approx_SameParameter.hxx>
#include <Approx_SequenceOfHArray1OfReal.hxx>
#include <Approx_Status.hxx>
#include <Approx_SweepApproximation.hxx>
#include <Approx_SweepFunction.hxx>
// template related includes
// ./opencascade/Approx_Array1OfAdHSurface.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/Approx_Array1OfGTrsf2d.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/Approx_SequenceOfHArray1OfReal.hxx
#include "NCollection_tmpl.hxx"
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_Approx(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("Approx"));
py::object klass;
//Python trampoline classes
class Py_Approx_SweepFunction : public Approx_SweepFunction{
public:
using Approx_SweepFunction::Approx_SweepFunction;
// public pure virtual
Standard_Boolean D0( const Standard_Real Param, const Standard_Real First, const Standard_Real Last,TColgp_Array1OfPnt & Poles,TColgp_Array1OfPnt2d & Poles2d,TColStd_Array1OfReal & Weigths) override { using return_type = Standard_Boolean;
PYBIND11_OVERLOAD_PURE(return_type,Approx_SweepFunction,D0,Param,First,Last,Poles,Poles2d,Weigths) };
Standard_Integer Nb2dCurves() const override { using return_type = Standard_Integer;
PYBIND11_OVERLOAD_PURE(return_type,Approx_SweepFunction,Nb2dCurves,) };
void Knots(TColStd_Array1OfReal & TKnots) const override { using return_type = void;
PYBIND11_OVERLOAD_PURE(return_type,Approx_SweepFunction,Knots,TKnots) };
void Mults(TColStd_Array1OfInteger & TMults) const override { using return_type = void;
PYBIND11_OVERLOAD_PURE(return_type,Approx_SweepFunction,Mults,TMults) };
Standard_Boolean IsRational() const override { using return_type = Standard_Boolean;
PYBIND11_OVERLOAD_PURE(return_type,Approx_SweepFunction,IsRational,) };
Standard_Integer NbIntervals( const GeomAbs_Shape S) const override { using return_type = Standard_Integer;
PYBIND11_OVERLOAD_PURE(return_type,Approx_SweepFunction,NbIntervals,S) };
void Intervals(TColStd_Array1OfReal & T, const GeomAbs_Shape S) const override { using return_type = void;
PYBIND11_OVERLOAD_PURE(return_type,Approx_SweepFunction,Intervals,T,S) };
void SetInterval( const Standard_Real First, const Standard_Real Last) override { using return_type = void;
PYBIND11_OVERLOAD_PURE(return_type,Approx_SweepFunction,SetInterval,First,Last) };
void GetTolerance( const Standard_Real BoundTol, const Standard_Real SurfTol, const Standard_Real AngleTol,TColStd_Array1OfReal & Tol3d) const override { using return_type = void;
PYBIND11_OVERLOAD_PURE(return_type,Approx_SweepFunction,GetTolerance,BoundTol,SurfTol,AngleTol,Tol3d) };
void SetTolerance( const Standard_Real Tol3d, const Standard_Real Tol2d) override { using return_type = void;
PYBIND11_OVERLOAD_PURE(return_type,Approx_SweepFunction,SetTolerance,Tol3d,Tol2d) };
void SectionShape(Standard_Integer & NbPoles,Standard_Integer & NbKnots,Standard_Integer & Degree) const override { using return_type = void;
PYBIND11_OVERLOAD_PURE(return_type,Approx_SweepFunction,SectionShape,NbPoles,NbKnots,Degree) };
// protected pure virtual
// private pure virtual
};
// classes
// Class Approx_Curve2d from ./opencascade/Approx_Curve2d.hxx
klass = m.attr("Approx_Curve2d");
// nested enums
static_cast<py::class_<Approx_Curve2d , shared_ptr<Approx_Curve2d> >>(klass)
// constructors
.def(py::init< const handle<Adaptor2d_Curve2d> &, const Standard_Real, const Standard_Real, const Standard_Real, const Standard_Real, const GeomAbs_Shape, const Standard_Integer, const Standard_Integer >() , py::arg("C2D"), py::arg("First"), py::arg("Last"), py::arg("TolU"), py::arg("TolV"), py::arg("Continuity"), py::arg("MaxDegree"), py::arg("MaxSegments") )
// custom constructors
// methods
.def("IsDone",
(Standard_Boolean (Approx_Curve2d::*)() const) static_cast<Standard_Boolean (Approx_Curve2d::*)() const>(&Approx_Curve2d::IsDone),
R"#()#"
)
.def("HasResult",
(Standard_Boolean (Approx_Curve2d::*)() const) static_cast<Standard_Boolean (Approx_Curve2d::*)() const>(&Approx_Curve2d::HasResult),
R"#()#"
)
.def("Curve",
(handle<Geom2d_BSplineCurve> (Approx_Curve2d::*)() const) static_cast<handle<Geom2d_BSplineCurve> (Approx_Curve2d::*)() const>(&Approx_Curve2d::Curve),
R"#()#"
)
.def("MaxError2dU",
(Standard_Real (Approx_Curve2d::*)() const) static_cast<Standard_Real (Approx_Curve2d::*)() const>(&Approx_Curve2d::MaxError2dU),
R"#()#"
)
.def("MaxError2dV",
(Standard_Real (Approx_Curve2d::*)() const) static_cast<Standard_Real (Approx_Curve2d::*)() const>(&Approx_Curve2d::MaxError2dV),
R"#()#"
)
// 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 Approx_Curve3d from ./opencascade/Approx_Curve3d.hxx
klass = m.attr("Approx_Curve3d");
// nested enums
static_cast<py::class_<Approx_Curve3d , shared_ptr<Approx_Curve3d> >>(klass)
// constructors
.def(py::init< const handle<Adaptor3d_Curve> &, const Standard_Real, const GeomAbs_Shape, const Standard_Integer, const Standard_Integer >() , py::arg("Curve"), py::arg("Tol3d"), py::arg("Order"), py::arg("MaxSegments"), py::arg("MaxDegree") )
// custom constructors
// methods
.def("Curve",
(handle<Geom_BSplineCurve> (Approx_Curve3d::*)() const) static_cast<handle<Geom_BSplineCurve> (Approx_Curve3d::*)() const>(&Approx_Curve3d::Curve),
R"#()#"
)
.def("IsDone",
(Standard_Boolean (Approx_Curve3d::*)() const) static_cast<Standard_Boolean (Approx_Curve3d::*)() const>(&Approx_Curve3d::IsDone),
R"#(returns Standard_True if the approximation has been done within required tolerance)#"
)
.def("HasResult",
(Standard_Boolean (Approx_Curve3d::*)() const) static_cast<Standard_Boolean (Approx_Curve3d::*)() const>(&Approx_Curve3d::HasResult),
R"#(returns Standard_True if the approximation did come out with a result that is not NECESSARELY within the required tolerance)#"
)
.def("MaxError",
(Standard_Real (Approx_Curve3d::*)() const) static_cast<Standard_Real (Approx_Curve3d::*)() const>(&Approx_Curve3d::MaxError),
R"#(returns the Maximum Error (>0 when an approximation has been done, 0 if no approximation))#"
)
.def("Dump",
(void (Approx_Curve3d::*)( Standard_OStream & ) const) static_cast<void (Approx_Curve3d::*)( Standard_OStream & ) const>(&Approx_Curve3d::Dump),
R"#(Print on the stream o information about the object)#" , py::arg("o")
)
// 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 Approx_CurveOnSurface from ./opencascade/Approx_CurveOnSurface.hxx
klass = m.attr("Approx_CurveOnSurface");
// nested enums
static_cast<py::class_<Approx_CurveOnSurface , shared_ptr<Approx_CurveOnSurface> >>(klass)
// constructors
.def(py::init< const handle<Adaptor2d_Curve2d> &, const handle<Adaptor3d_Surface> &, const Standard_Real, const Standard_Real, const Standard_Real, const GeomAbs_Shape, const Standard_Integer, const Standard_Integer, const Standard_Boolean, const Standard_Boolean >() , py::arg("C2D"), py::arg("Surf"), py::arg("First"), py::arg("Last"), py::arg("Tol"), py::arg("Continuity"), py::arg("MaxDegree"), py::arg("MaxSegments"), py::arg("Only3d")=static_cast< const Standard_Boolean>(Standard_False), py::arg("Only2d")=static_cast< const Standard_Boolean>(Standard_False) )
.def(py::init< const handle<Adaptor2d_Curve2d> &, const handle<Adaptor3d_Surface> &, const Standard_Real, const Standard_Real, const Standard_Real >() , py::arg("theC2D"), py::arg("theSurf"), py::arg("theFirst"), py::arg("theLast"), py::arg("theTol") )
// custom constructors
// methods
.def("IsDone",
(Standard_Boolean (Approx_CurveOnSurface::*)() const) static_cast<Standard_Boolean (Approx_CurveOnSurface::*)() const>(&Approx_CurveOnSurface::IsDone),
R"#()#"
)
.def("HasResult",
(Standard_Boolean (Approx_CurveOnSurface::*)() const) static_cast<Standard_Boolean (Approx_CurveOnSurface::*)() const>(&Approx_CurveOnSurface::HasResult),
R"#()#"
)
.def("Curve3d",
(handle<Geom_BSplineCurve> (Approx_CurveOnSurface::*)() const) static_cast<handle<Geom_BSplineCurve> (Approx_CurveOnSurface::*)() const>(&Approx_CurveOnSurface::Curve3d),
R"#()#"
)
.def("MaxError3d",
(Standard_Real (Approx_CurveOnSurface::*)() const) static_cast<Standard_Real (Approx_CurveOnSurface::*)() const>(&Approx_CurveOnSurface::MaxError3d),
R"#()#"
)
.def("Curve2d",
(handle<Geom2d_BSplineCurve> (Approx_CurveOnSurface::*)() const) static_cast<handle<Geom2d_BSplineCurve> (Approx_CurveOnSurface::*)() const>(&Approx_CurveOnSurface::Curve2d),
R"#()#"
)
.def("MaxError2dU",
(Standard_Real (Approx_CurveOnSurface::*)() const) static_cast<Standard_Real (Approx_CurveOnSurface::*)() const>(&Approx_CurveOnSurface::MaxError2dU),
R"#()#"
)
.def("MaxError2dV",
(Standard_Real (Approx_CurveOnSurface::*)() const) static_cast<Standard_Real (Approx_CurveOnSurface::*)() const>(&Approx_CurveOnSurface::MaxError2dV),
R"#(returns the maximum errors relatively to the U component or the V component of the 2d Curve)#"
)
.def("Perform",
(void (Approx_CurveOnSurface::*)( const Standard_Integer , const Standard_Integer , const GeomAbs_Shape , const Standard_Boolean , const Standard_Boolean ) ) static_cast<void (Approx_CurveOnSurface::*)( const Standard_Integer , const Standard_Integer , const GeomAbs_Shape , const Standard_Boolean , const Standard_Boolean ) >(&Approx_CurveOnSurface::Perform),
R"#(Constructs the 3d curve. Input parameters are ignored when the input curve is U-isoline or V-isoline.)#" , py::arg("theMaxSegments"), py::arg("theMaxDegree"), py::arg("theContinuity"), py::arg("theOnly3d")=static_cast< const Standard_Boolean>(Standard_False), py::arg("theOnly2d")=static_cast< const Standard_Boolean>(Standard_False)
)
// 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 Approx_CurvilinearParameter from ./opencascade/Approx_CurvilinearParameter.hxx
klass = m.attr("Approx_CurvilinearParameter");
// nested enums
static_cast<py::class_<Approx_CurvilinearParameter , shared_ptr<Approx_CurvilinearParameter> >>(klass)
// constructors
.def(py::init< const handle<Adaptor3d_Curve> &, const Standard_Real, const GeomAbs_Shape, const Standard_Integer, const Standard_Integer >() , py::arg("C3D"), py::arg("Tol"), py::arg("Order"), py::arg("MaxDegree"), py::arg("MaxSegments") )
.def(py::init< const handle<Adaptor2d_Curve2d> &, const handle<Adaptor3d_Surface> &, const Standard_Real, const GeomAbs_Shape, const Standard_Integer, const Standard_Integer >() , py::arg("C2D"), py::arg("Surf"), py::arg("Tol"), py::arg("Order"), py::arg("MaxDegree"), py::arg("MaxSegments") )
.def(py::init< const handle<Adaptor2d_Curve2d> &, const handle<Adaptor3d_Surface> &, const handle<Adaptor2d_Curve2d> &, const handle<Adaptor3d_Surface> &, const Standard_Real, const GeomAbs_Shape, const Standard_Integer, const Standard_Integer >() , py::arg("C2D1"), py::arg("Surf1"), py::arg("C2D2"), py::arg("Surf2"), py::arg("Tol"), py::arg("Order"), py::arg("MaxDegree"), py::arg("MaxSegments") )
// custom constructors
// methods
.def("IsDone",
(Standard_Boolean (Approx_CurvilinearParameter::*)() const) static_cast<Standard_Boolean (Approx_CurvilinearParameter::*)() const>(&Approx_CurvilinearParameter::IsDone),
R"#()#"
)
.def("HasResult",
(Standard_Boolean (Approx_CurvilinearParameter::*)() const) static_cast<Standard_Boolean (Approx_CurvilinearParameter::*)() const>(&Approx_CurvilinearParameter::HasResult),
R"#()#"
)
.def("Curve3d",
(handle<Geom_BSplineCurve> (Approx_CurvilinearParameter::*)() const) static_cast<handle<Geom_BSplineCurve> (Approx_CurvilinearParameter::*)() const>(&Approx_CurvilinearParameter::Curve3d),
R"#(returns the Bspline curve corresponding to the reparametrized 3D curve)#"
)
.def("MaxError3d",
(Standard_Real (Approx_CurvilinearParameter::*)() const) static_cast<Standard_Real (Approx_CurvilinearParameter::*)() const>(&Approx_CurvilinearParameter::MaxError3d),
R"#(returns the maximum error on the reparametrized 3D curve)#"
)
.def("Curve2d1",
(handle<Geom2d_BSplineCurve> (Approx_CurvilinearParameter::*)() const) static_cast<handle<Geom2d_BSplineCurve> (Approx_CurvilinearParameter::*)() const>(&Approx_CurvilinearParameter::Curve2d1),
R"#(returns the BsplineCurve representing the reparametrized 2D curve on the first surface (case of a curve on one or two surfaces))#"
)
.def("MaxError2d1",
(Standard_Real (Approx_CurvilinearParameter::*)() const) static_cast<Standard_Real (Approx_CurvilinearParameter::*)() const>(&Approx_CurvilinearParameter::MaxError2d1),
R"#(returns the maximum error on the first reparametrized 2D curve)#"
)
.def("Curve2d2",
(handle<Geom2d_BSplineCurve> (Approx_CurvilinearParameter::*)() const) static_cast<handle<Geom2d_BSplineCurve> (Approx_CurvilinearParameter::*)() const>(&Approx_CurvilinearParameter::Curve2d2),
R"#(returns the BsplineCurve representing the reparametrized 2D curve on the second surface (case of a curve on two surfaces))#"
)
.def("MaxError2d2",
(Standard_Real (Approx_CurvilinearParameter::*)() const) static_cast<Standard_Real (Approx_CurvilinearParameter::*)() const>(&Approx_CurvilinearParameter::MaxError2d2),
R"#(returns the maximum error on the second reparametrized 2D curve)#"
)
.def("Dump",
(void (Approx_CurvilinearParameter::*)( Standard_OStream & ) const) static_cast<void (Approx_CurvilinearParameter::*)( Standard_OStream & ) const>(&Approx_CurvilinearParameter::Dump),
R"#(print the maximum errors(s))#" , py::arg("o")
)
// 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 Approx_CurvlinFunc from ./opencascade/Approx_CurvlinFunc.hxx
klass = m.attr("Approx_CurvlinFunc");
// nested enums
static_cast<py::class_<Approx_CurvlinFunc ,opencascade::handle<Approx_CurvlinFunc> , Standard_Transient >>(klass)
// constructors
.def(py::init< const handle<Adaptor3d_Curve> &, const Standard_Real >() , py::arg("C"), py::arg("Tol") )
.def(py::init< const handle<Adaptor2d_Curve2d> &, const handle<Adaptor3d_Surface> &, const Standard_Real >() , py::arg("C2D"), py::arg("S"), py::arg("Tol") )
.def(py::init< const handle<Adaptor2d_Curve2d> &, const handle<Adaptor2d_Curve2d> &, const handle<Adaptor3d_Surface> &, const handle<Adaptor3d_Surface> &, const Standard_Real >() , py::arg("C2D1"), py::arg("C2D2"), py::arg("S1"), py::arg("S2"), py::arg("Tol") )
// custom constructors
// methods
.def("SetTol",
(void (Approx_CurvlinFunc::*)( const Standard_Real ) ) static_cast<void (Approx_CurvlinFunc::*)( const Standard_Real ) >(&Approx_CurvlinFunc::SetTol),
R"#(---Purpose Update the tolerance to used)#" , py::arg("Tol")
)
.def("FirstParameter",
(Standard_Real (Approx_CurvlinFunc::*)() const) static_cast<Standard_Real (Approx_CurvlinFunc::*)() const>(&Approx_CurvlinFunc::FirstParameter),
R"#()#"
)
.def("LastParameter",
(Standard_Real (Approx_CurvlinFunc::*)() const) static_cast<Standard_Real (Approx_CurvlinFunc::*)() const>(&Approx_CurvlinFunc::LastParameter),
R"#()#"
)
.def("NbIntervals",
(Standard_Integer (Approx_CurvlinFunc::*)( const GeomAbs_Shape ) const) static_cast<Standard_Integer (Approx_CurvlinFunc::*)( const GeomAbs_Shape ) const>(&Approx_CurvlinFunc::NbIntervals),
R"#(Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>)#" , py::arg("S")
)
.def("Intervals",
(void (Approx_CurvlinFunc::*)( TColStd_Array1OfReal & , const GeomAbs_Shape ) const) static_cast<void (Approx_CurvlinFunc::*)( TColStd_Array1OfReal & , const GeomAbs_Shape ) const>(&Approx_CurvlinFunc::Intervals),
R"#(Stores in <T> the parameters bounding the intervals of continuity <S>.)#" , py::arg("T"), py::arg("S")
)
.def("Trim",
(void (Approx_CurvlinFunc::*)( const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (Approx_CurvlinFunc::*)( const Standard_Real , const Standard_Real , const Standard_Real ) >(&Approx_CurvlinFunc::Trim),
R"#(if First < 0 or Last > 1)#" , py::arg("First"), py::arg("Last"), py::arg("Tol")
)
.def("Length",
(void (Approx_CurvlinFunc::*)() ) static_cast<void (Approx_CurvlinFunc::*)() >(&Approx_CurvlinFunc::Length),
R"#(Computes length of the curve.)#"
)
.def("Length",
(Standard_Real (Approx_CurvlinFunc::*)( Adaptor3d_Curve & , const Standard_Real , const Standard_Real ) const) static_cast<Standard_Real (Approx_CurvlinFunc::*)( Adaptor3d_Curve & , const Standard_Real , const Standard_Real ) const>(&Approx_CurvlinFunc::Length),
R"#(Computes length of the curve segment.)#" , py::arg("C"), py::arg("FirstU"), py::arg("LasrU")
)
.def("GetLength",
(Standard_Real (Approx_CurvlinFunc::*)() const) static_cast<Standard_Real (Approx_CurvlinFunc::*)() const>(&Approx_CurvlinFunc::GetLength),
R"#()#"
)
.def("GetUParameter",
(Standard_Real (Approx_CurvlinFunc::*)( Adaptor3d_Curve & , const Standard_Real , const Standard_Integer ) const) static_cast<Standard_Real (Approx_CurvlinFunc::*)( Adaptor3d_Curve & , const Standard_Real , const Standard_Integer ) const>(&Approx_CurvlinFunc::GetUParameter),
R"#(returns original parameter corresponding S. if Case == 1 computation is performed on myC2D1 and mySurf1, otherwise it is done on myC2D2 and mySurf2.)#" , py::arg("C"), py::arg("S"), py::arg("NumberOfCurve")
)
.def("GetSParameter",
(Standard_Real (Approx_CurvlinFunc::*)( const Standard_Real ) const) static_cast<Standard_Real (Approx_CurvlinFunc::*)( const Standard_Real ) const>(&Approx_CurvlinFunc::GetSParameter),
R"#(returns original parameter corresponding S.)#" , py::arg("U")
)
.def("EvalCase1",
(Standard_Boolean (Approx_CurvlinFunc::*)( const Standard_Real , const Standard_Integer , TColStd_Array1OfReal & ) const) static_cast<Standard_Boolean (Approx_CurvlinFunc::*)( const Standard_Real , const Standard_Integer , TColStd_Array1OfReal & ) const>(&Approx_CurvlinFunc::EvalCase1),
R"#(if myCase != 1)#" , py::arg("S"), py::arg("Order"), py::arg("Result")
)
.def("EvalCase2",
(Standard_Boolean (Approx_CurvlinFunc::*)( const Standard_Real , const Standard_Integer , TColStd_Array1OfReal & ) const) static_cast<Standard_Boolean (Approx_CurvlinFunc::*)( const Standard_Real , const Standard_Integer , TColStd_Array1OfReal & ) const>(&Approx_CurvlinFunc::EvalCase2),
R"#(if myCase != 2)#" , py::arg("S"), py::arg("Order"), py::arg("Result")
)
.def("EvalCase3",
(Standard_Boolean (Approx_CurvlinFunc::*)( const Standard_Real , const Standard_Integer , TColStd_Array1OfReal & ) ) static_cast<Standard_Boolean (Approx_CurvlinFunc::*)( const Standard_Real , const Standard_Integer , TColStd_Array1OfReal & ) >(&Approx_CurvlinFunc::EvalCase3),
R"#(if myCase != 3)#" , py::arg("S"), py::arg("Order"), py::arg("Result")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&Approx_CurvlinFunc::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&Approx_CurvlinFunc::get_type_descriptor),
R"#()#"
)
// 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 handle<Standard_Type> & (Approx_CurvlinFunc::*)() const) static_cast< const handle<Standard_Type> & (Approx_CurvlinFunc::*)() const>(&Approx_CurvlinFunc::DynamicType),
R"#()#"
)
;
// Class Approx_FitAndDivide from ./opencascade/Approx_FitAndDivide.hxx
klass = m.attr("Approx_FitAndDivide");
// nested enums
static_cast<py::class_<Approx_FitAndDivide , shared_ptr<Approx_FitAndDivide> >>(klass)
// constructors
.def(py::init< const AppCont_Function &, const Standard_Integer, const Standard_Integer, const Standard_Real, const Standard_Real, const Standard_Boolean, const AppParCurves_Constraint, const AppParCurves_Constraint >() , py::arg("Line"), py::arg("degreemin")=static_cast< const Standard_Integer>(3), py::arg("degreemax")=static_cast< const Standard_Integer>(8), py::arg("Tolerance3d")=static_cast< const Standard_Real>(1.0e-5), py::arg("Tolerance2d")=static_cast< const Standard_Real>(1.0e-5), py::arg("cutting")=static_cast< const Standard_Boolean>(Standard_False), py::arg("FirstC")=static_cast< const AppParCurves_Constraint>(AppParCurves_TangencyPoint), py::arg("LastC")=static_cast< const AppParCurves_Constraint>(AppParCurves_TangencyPoint) )
.def(py::init< const Standard_Integer, const Standard_Integer, const Standard_Real, const Standard_Real, const Standard_Boolean, const AppParCurves_Constraint, const AppParCurves_Constraint >() , py::arg("degreemin")=static_cast< const Standard_Integer>(3), py::arg("degreemax")=static_cast< const Standard_Integer>(8), py::arg("Tolerance3d")=static_cast< const Standard_Real>(1.0e-05), py::arg("Tolerance2d")=static_cast< const Standard_Real>(1.0e-05), py::arg("cutting")=static_cast< const Standard_Boolean>(Standard_False), py::arg("FirstC")=static_cast< const AppParCurves_Constraint>(AppParCurves_TangencyPoint), py::arg("LastC")=static_cast< const AppParCurves_Constraint>(AppParCurves_TangencyPoint) )
// custom constructors
// methods
.def("Perform",
(void (Approx_FitAndDivide::*)( const AppCont_Function & ) ) static_cast<void (Approx_FitAndDivide::*)( const AppCont_Function & ) >(&Approx_FitAndDivide::Perform),
R"#(runs the algorithm after having initialized the fields.)#" , py::arg("Line")
)
.def("SetDegrees",
(void (Approx_FitAndDivide::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<void (Approx_FitAndDivide::*)( const Standard_Integer , const Standard_Integer ) >(&Approx_FitAndDivide::SetDegrees),
R"#(changes the degrees of the approximation.)#" , py::arg("degreemin"), py::arg("degreemax")
)
.def("SetTolerances",
(void (Approx_FitAndDivide::*)( const Standard_Real , const Standard_Real ) ) static_cast<void (Approx_FitAndDivide::*)( const Standard_Real , const Standard_Real ) >(&Approx_FitAndDivide::SetTolerances),
R"#(Changes the tolerances of the approximation.)#" , py::arg("Tolerance3d"), py::arg("Tolerance2d")
)
.def("SetConstraints",
(void (Approx_FitAndDivide::*)( const AppParCurves_Constraint , const AppParCurves_Constraint ) ) static_cast<void (Approx_FitAndDivide::*)( const AppParCurves_Constraint , const AppParCurves_Constraint ) >(&Approx_FitAndDivide::SetConstraints),
R"#(Changes the constraints of the approximation.)#" , py::arg("FirstC"), py::arg("LastC")
)
.def("SetMaxSegments",
(void (Approx_FitAndDivide::*)( const Standard_Integer ) ) static_cast<void (Approx_FitAndDivide::*)( const Standard_Integer ) >(&Approx_FitAndDivide::SetMaxSegments),
R"#(Changes the max number of segments, which is allowed for cutting.)#" , py::arg("theMaxSegments")
)
.def("SetInvOrder",
(void (Approx_FitAndDivide::*)( const Standard_Boolean ) ) static_cast<void (Approx_FitAndDivide::*)( const Standard_Boolean ) >(&Approx_FitAndDivide::SetInvOrder),
R"#(Set inverse order of degree selection: if theInvOrdr = true, current degree is chosen by inverse order - from maxdegree to mindegree. By default inverse order is used.)#" , py::arg("theInvOrder")
)
.def("SetHangChecking",
(void (Approx_FitAndDivide::*)( const Standard_Boolean ) ) static_cast<void (Approx_FitAndDivide::*)( const Standard_Boolean ) >(&Approx_FitAndDivide::SetHangChecking),
R"#(Set value of hang checking flag if this flag = true, possible hang of algorithm is checked and algorithm is forced to stop. By default hang checking is used.)#" , py::arg("theHangChecking")
)
.def("IsAllApproximated",
(Standard_Boolean (Approx_FitAndDivide::*)() const) static_cast<Standard_Boolean (Approx_FitAndDivide::*)() const>(&Approx_FitAndDivide::IsAllApproximated),
R"#(returns False if at a moment of the approximation, the status NoApproximation has been sent by the user when more points were needed.)#"
)
.def("IsToleranceReached",
(Standard_Boolean (Approx_FitAndDivide::*)() const) static_cast<Standard_Boolean (Approx_FitAndDivide::*)() const>(&Approx_FitAndDivide::IsToleranceReached),
R"#(returns False if the status NoPointsAdded has been sent.)#"
)
.def("NbMultiCurves",
(Standard_Integer (Approx_FitAndDivide::*)() const) static_cast<Standard_Integer (Approx_FitAndDivide::*)() const>(&Approx_FitAndDivide::NbMultiCurves),
R"#(Returns the number of MultiCurve doing the approximation of the MultiLine.)#"
)
.def("Value",
(AppParCurves_MultiCurve (Approx_FitAndDivide::*)( const Standard_Integer ) const) static_cast<AppParCurves_MultiCurve (Approx_FitAndDivide::*)( const Standard_Integer ) const>(&Approx_FitAndDivide::Value),
R"#(returns the approximation MultiCurve of range <Index>.)#" , py::arg("Index")=static_cast< const Standard_Integer>(1)
)
// methods using call by reference i.s.o. return
.def("Error",
[]( Approx_FitAndDivide &self , const Standard_Integer Index ){
Standard_Real tol3d;
Standard_Real tol2d;
self.Error(Index,tol3d,tol2d);
return std::make_tuple(tol3d,tol2d); },
R"#(returns the tolerances 2d and 3d of the <Index> MultiCurve.)#" , py::arg("Index")
)
.def("Parameters",
[]( Approx_FitAndDivide &self , const Standard_Integer Index ){
Standard_Real firstp;
Standard_Real lastp;
self.Parameters(Index,firstp,lastp);
return std::make_tuple(firstp,lastp); },
R"#()#" , 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
;
// Class Approx_FitAndDivide2d from ./opencascade/Approx_FitAndDivide2d.hxx
klass = m.attr("Approx_FitAndDivide2d");
// nested enums
static_cast<py::class_<Approx_FitAndDivide2d , shared_ptr<Approx_FitAndDivide2d> >>(klass)
// constructors
.def(py::init< const AppCont_Function &, const Standard_Integer, const Standard_Integer, const Standard_Real, const Standard_Real, const Standard_Boolean, const AppParCurves_Constraint, const AppParCurves_Constraint >() , py::arg("Line"), py::arg("degreemin")=static_cast< const Standard_Integer>(3), py::arg("degreemax")=static_cast< const Standard_Integer>(8), py::arg("Tolerance3d")=static_cast< const Standard_Real>(1.0e-5), py::arg("Tolerance2d")=static_cast< const Standard_Real>(1.0e-5), py::arg("cutting")=static_cast< const Standard_Boolean>(Standard_False), py::arg("FirstC")=static_cast< const AppParCurves_Constraint>(AppParCurves_TangencyPoint), py::arg("LastC")=static_cast< const AppParCurves_Constraint>(AppParCurves_TangencyPoint) )
.def(py::init< const Standard_Integer, const Standard_Integer, const Standard_Real, const Standard_Real, const Standard_Boolean, const AppParCurves_Constraint, const AppParCurves_Constraint >() , py::arg("degreemin")=static_cast< const Standard_Integer>(3), py::arg("degreemax")=static_cast< const Standard_Integer>(8), py::arg("Tolerance3d")=static_cast< const Standard_Real>(1.0e-05), py::arg("Tolerance2d")=static_cast< const Standard_Real>(1.0e-05), py::arg("cutting")=static_cast< const Standard_Boolean>(Standard_False), py::arg("FirstC")=static_cast< const AppParCurves_Constraint>(AppParCurves_TangencyPoint), py::arg("LastC")=static_cast< const AppParCurves_Constraint>(AppParCurves_TangencyPoint) )
// custom constructors
// methods
.def("Perform",
(void (Approx_FitAndDivide2d::*)( const AppCont_Function & ) ) static_cast<void (Approx_FitAndDivide2d::*)( const AppCont_Function & ) >(&Approx_FitAndDivide2d::Perform),
R"#(runs the algorithm after having initialized the fields.)#" , py::arg("Line")
)
.def("SetDegrees",
(void (Approx_FitAndDivide2d::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<void (Approx_FitAndDivide2d::*)( const Standard_Integer , const Standard_Integer ) >(&Approx_FitAndDivide2d::SetDegrees),
R"#(changes the degrees of the approximation.)#" , py::arg("degreemin"), py::arg("degreemax")
)
.def("SetTolerances",
(void (Approx_FitAndDivide2d::*)( const Standard_Real , const Standard_Real ) ) static_cast<void (Approx_FitAndDivide2d::*)( const Standard_Real , const Standard_Real ) >(&Approx_FitAndDivide2d::SetTolerances),
R"#(Changes the tolerances of the approximation.)#" , py::arg("Tolerance3d"), py::arg("Tolerance2d")
)
.def("SetConstraints",
(void (Approx_FitAndDivide2d::*)( const AppParCurves_Constraint , const AppParCurves_Constraint ) ) static_cast<void (Approx_FitAndDivide2d::*)( const AppParCurves_Constraint , const AppParCurves_Constraint ) >(&Approx_FitAndDivide2d::SetConstraints),
R"#(Changes the constraints of the approximation.)#" , py::arg("FirstC"), py::arg("LastC")
)
.def("SetMaxSegments",
(void (Approx_FitAndDivide2d::*)( const Standard_Integer ) ) static_cast<void (Approx_FitAndDivide2d::*)( const Standard_Integer ) >(&Approx_FitAndDivide2d::SetMaxSegments),
R"#(Changes the max number of segments, which is allowed for cutting.)#" , py::arg("theMaxSegments")
)
.def("SetInvOrder",
(void (Approx_FitAndDivide2d::*)( const Standard_Boolean ) ) static_cast<void (Approx_FitAndDivide2d::*)( const Standard_Boolean ) >(&Approx_FitAndDivide2d::SetInvOrder),
R"#(Set inverse order of degree selection: if theInvOrdr = true, current degree is chosen by inverse order - from maxdegree to mindegree. By default inverse order is used.)#" , py::arg("theInvOrder")
)
.def("SetHangChecking",
(void (Approx_FitAndDivide2d::*)( const Standard_Boolean ) ) static_cast<void (Approx_FitAndDivide2d::*)( const Standard_Boolean ) >(&Approx_FitAndDivide2d::SetHangChecking),
R"#(Set value of hang checking flag if this flag = true, possible hang of algorithm is checked and algorithm is forced to stop. By default hang checking is used.)#" , py::arg("theHangChecking")
)
.def("IsAllApproximated",
(Standard_Boolean (Approx_FitAndDivide2d::*)() const) static_cast<Standard_Boolean (Approx_FitAndDivide2d::*)() const>(&Approx_FitAndDivide2d::IsAllApproximated),
R"#(returns False if at a moment of the approximation, the status NoApproximation has been sent by the user when more points were needed.)#"
)
.def("IsToleranceReached",
(Standard_Boolean (Approx_FitAndDivide2d::*)() const) static_cast<Standard_Boolean (Approx_FitAndDivide2d::*)() const>(&Approx_FitAndDivide2d::IsToleranceReached),
R"#(returns False if the status NoPointsAdded has been sent.)#"
)
.def("NbMultiCurves",
(Standard_Integer (Approx_FitAndDivide2d::*)() const) static_cast<Standard_Integer (Approx_FitAndDivide2d::*)() const>(&Approx_FitAndDivide2d::NbMultiCurves),
R"#(Returns the number of MultiCurve doing the approximation of the MultiLine.)#"
)
.def("Value",
(AppParCurves_MultiCurve (Approx_FitAndDivide2d::*)( const Standard_Integer ) const) static_cast<AppParCurves_MultiCurve (Approx_FitAndDivide2d::*)( const Standard_Integer ) const>(&Approx_FitAndDivide2d::Value),
R"#(returns the approximation MultiCurve of range <Index>.)#" , py::arg("Index")=static_cast< const Standard_Integer>(1)
)
// methods using call by reference i.s.o. return
.def("Error",
[]( Approx_FitAndDivide2d &self , const Standard_Integer Index ){
Standard_Real tol3d;
Standard_Real tol2d;
self.Error(Index,tol3d,tol2d);
return std::make_tuple(tol3d,tol2d); },
R"#(returns the tolerances 2d and 3d of the <Index> MultiCurve.)#" , py::arg("Index")
)
.def("Parameters",
[]( Approx_FitAndDivide2d &self , const Standard_Integer Index ){
Standard_Real firstp;
Standard_Real lastp;
self.Parameters(Index,firstp,lastp);
return std::make_tuple(firstp,lastp); },
R"#()#" , 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
;
// Class Approx_HArray1OfAdHSurface from ./opencascade/Approx_HArray1OfAdHSurface.hxx
klass = m.attr("Approx_HArray1OfAdHSurface");
// nested enums
static_cast<py::class_<Approx_HArray1OfAdHSurface ,opencascade::handle<Approx_HArray1OfAdHSurface> , Approx_Array1OfAdHSurface , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const Standard_Integer, const Standard_Integer >() , py::arg("theLower"), py::arg("theUpper") )
.def(py::init< const Standard_Integer, const Standard_Integer, const typename NCollection_Array1<opencascade::handle<Adaptor3d_Surface>>::value_type & >() , py::arg("theLower"), py::arg("theUpper"), py::arg("theValue") )
.def(py::init< const typename NCollection_Array1<opencascade::handle<Adaptor3d_Surface>>::value_type &, const Standard_Integer, const Standard_Integer, const bool >() , py::arg("theBegin"), py::arg("theLower"), py::arg("theUpper"), py::arg("arg3") )
.def(py::init< const Approx_Array1OfAdHSurface & >() , py::arg("theOther") )
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&Approx_HArray1OfAdHSurface::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&Approx_HArray1OfAdHSurface::get_type_descriptor),
R"#()#"
)
// 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("Array1",
( const Approx_Array1OfAdHSurface & (Approx_HArray1OfAdHSurface::*)() const) static_cast< const Approx_Array1OfAdHSurface & (Approx_HArray1OfAdHSurface::*)() const>(&Approx_HArray1OfAdHSurface::Array1),
R"#()#"
)
.def("ChangeArray1",
(Approx_Array1OfAdHSurface & (Approx_HArray1OfAdHSurface::*)() ) static_cast<Approx_Array1OfAdHSurface & (Approx_HArray1OfAdHSurface::*)() >(&Approx_HArray1OfAdHSurface::ChangeArray1),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("DynamicType",
( const handle<Standard_Type> & (Approx_HArray1OfAdHSurface::*)() const) static_cast< const handle<Standard_Type> & (Approx_HArray1OfAdHSurface::*)() const>(&Approx_HArray1OfAdHSurface::DynamicType),
R"#()#"
)
;
// Class Approx_HArray1OfGTrsf2d from ./opencascade/Approx_HArray1OfGTrsf2d.hxx
klass = m.attr("Approx_HArray1OfGTrsf2d");
// nested enums
static_cast<py::class_<Approx_HArray1OfGTrsf2d ,opencascade::handle<Approx_HArray1OfGTrsf2d> , Approx_Array1OfGTrsf2d , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const Standard_Integer, const Standard_Integer >() , py::arg("theLower"), py::arg("theUpper") )
.def(py::init< const Standard_Integer, const Standard_Integer, const typename NCollection_Array1<gp_GTrsf2d>::value_type & >() , py::arg("theLower"), py::arg("theUpper"), py::arg("theValue") )
.def(py::init< const typename NCollection_Array1<gp_GTrsf2d>::value_type &, const Standard_Integer, const Standard_Integer, const bool >() , py::arg("theBegin"), py::arg("theLower"), py::arg("theUpper"), py::arg("arg3") )
.def(py::init< const Approx_Array1OfGTrsf2d & >() , py::arg("theOther") )
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&Approx_HArray1OfGTrsf2d::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&Approx_HArray1OfGTrsf2d::get_type_descriptor),
R"#()#"
)
// 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("Array1",
( const Approx_Array1OfGTrsf2d & (Approx_HArray1OfGTrsf2d::*)() const) static_cast< const Approx_Array1OfGTrsf2d & (Approx_HArray1OfGTrsf2d::*)() const>(&Approx_HArray1OfGTrsf2d::Array1),
R"#()#"
)
.def("ChangeArray1",
(Approx_Array1OfGTrsf2d & (Approx_HArray1OfGTrsf2d::*)() ) static_cast<Approx_Array1OfGTrsf2d & (Approx_HArray1OfGTrsf2d::*)() >(&Approx_HArray1OfGTrsf2d::ChangeArray1),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("DynamicType",
( const handle<Standard_Type> & (Approx_HArray1OfGTrsf2d::*)() const) static_cast< const handle<Standard_Type> & (Approx_HArray1OfGTrsf2d::*)() const>(&Approx_HArray1OfGTrsf2d::DynamicType),
R"#()#"
)
;
// Class Approx_MCurvesToBSpCurve from ./opencascade/Approx_MCurvesToBSpCurve.hxx
klass = m.attr("Approx_MCurvesToBSpCurve");
// nested enums
static_cast<py::class_<Approx_MCurvesToBSpCurve , shared_ptr<Approx_MCurvesToBSpCurve> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Reset",
(void (Approx_MCurvesToBSpCurve::*)() ) static_cast<void (Approx_MCurvesToBSpCurve::*)() >(&Approx_MCurvesToBSpCurve::Reset),
R"#()#"
)
.def("Append",
(void (Approx_MCurvesToBSpCurve::*)( const AppParCurves_MultiCurve & ) ) static_cast<void (Approx_MCurvesToBSpCurve::*)( const AppParCurves_MultiCurve & ) >(&Approx_MCurvesToBSpCurve::Append),
R"#()#" , py::arg("MC")
)
.def("Perform",
(void (Approx_MCurvesToBSpCurve::*)() ) static_cast<void (Approx_MCurvesToBSpCurve::*)() >(&Approx_MCurvesToBSpCurve::Perform),
R"#()#"
)
.def("Perform",
(void (Approx_MCurvesToBSpCurve::*)( const AppParCurves_SequenceOfMultiCurve & ) ) static_cast<void (Approx_MCurvesToBSpCurve::*)( const AppParCurves_SequenceOfMultiCurve & ) >(&Approx_MCurvesToBSpCurve::Perform),
R"#()#" , py::arg("TheSeq")
)
// 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("Value",
( const AppParCurves_MultiBSpCurve & (Approx_MCurvesToBSpCurve::*)() const) static_cast< const AppParCurves_MultiBSpCurve & (Approx_MCurvesToBSpCurve::*)() const>(&Approx_MCurvesToBSpCurve::Value),
R"#(return the composite MultiCurves as a MultiBSpCurve.)#"
)
.def("ChangeValue",
( const AppParCurves_MultiBSpCurve & (Approx_MCurvesToBSpCurve::*)() ) static_cast< const AppParCurves_MultiBSpCurve & (Approx_MCurvesToBSpCurve::*)() >(&Approx_MCurvesToBSpCurve::ChangeValue),
R"#(return the composite MultiCurves as a MultiBSpCurve.)#"
)
;
// Class Approx_SameParameter from ./opencascade/Approx_SameParameter.hxx
klass = m.attr("Approx_SameParameter");
// nested enums
static_cast<py::class_<Approx_SameParameter , shared_ptr<Approx_SameParameter> >>(klass)
// constructors
.def(py::init< const handle<Geom_Curve> &, const handle<Geom2d_Curve> &, const handle<Geom_Surface> &, const Standard_Real >() , py::arg("C3D"), py::arg("C2D"), py::arg("S"), py::arg("Tol") )
.def(py::init< const handle<Adaptor3d_Curve> &, const handle<Geom2d_Curve> &, const handle<Adaptor3d_Surface> &, const Standard_Real >() , py::arg("C3D"), py::arg("C2D"), py::arg("S"), py::arg("Tol") )
.def(py::init< const handle<Adaptor3d_Curve> &, const handle<Adaptor2d_Curve2d> &, const handle<Adaptor3d_Surface> &, const Standard_Real >() , py::arg("C3D"), py::arg("C2D"), py::arg("S"), py::arg("Tol") )
// custom constructors
// methods
.def("IsDone",
(Standard_Boolean (Approx_SameParameter::*)() const) static_cast<Standard_Boolean (Approx_SameParameter::*)() const>(&Approx_SameParameter::IsDone),
R"#(Returns .false. if calculations failed, .true. if calculations succeed)#"
)
.def("TolReached",
(Standard_Real (Approx_SameParameter::*)() const) static_cast<Standard_Real (Approx_SameParameter::*)() const>(&Approx_SameParameter::TolReached),
R"#(Returns tolerance (maximal distance) between 3d curve and curve on surface, generated by 2d curve and surface.)#"
)
.def("IsSameParameter",
(Standard_Boolean (Approx_SameParameter::*)() const) static_cast<Standard_Boolean (Approx_SameParameter::*)() const>(&Approx_SameParameter::IsSameParameter),
R"#(Tells whether the original data had already the same parameter up to the tolerance : in that case nothing is done.)#"
)
.def("Curve2d",
(handle<Geom2d_Curve> (Approx_SameParameter::*)() const) static_cast<handle<Geom2d_Curve> (Approx_SameParameter::*)() const>(&Approx_SameParameter::Curve2d),
R"#(Returns the 2D curve that has the same parameter as the 3D curve once evaluated on the surface up to the specified tolerance.)#"
)
.def("Curve3d",
(handle<Adaptor3d_Curve> (Approx_SameParameter::*)() const) static_cast<handle<Adaptor3d_Curve> (Approx_SameParameter::*)() const>(&Approx_SameParameter::Curve3d),
R"#(Returns the 3D curve that has the same parameter as the 3D curve once evaluated on the surface up to the specified tolerance.)#"
)
.def("CurveOnSurface",
(handle<Adaptor3d_CurveOnSurface> (Approx_SameParameter::*)() const) static_cast<handle<Adaptor3d_CurveOnSurface> (Approx_SameParameter::*)() const>(&Approx_SameParameter::CurveOnSurface),
R"#(Returns the 3D curve on surface that has the same parameter as the 3D curve up to the specified tolerance.)#"
)
// 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 Approx_SweepApproximation from ./opencascade/Approx_SweepApproximation.hxx
klass = m.attr("Approx_SweepApproximation");
// nested enums
static_cast<py::class_<Approx_SweepApproximation , shared_ptr<Approx_SweepApproximation> >>(klass)
// constructors
.def(py::init< const handle<Approx_SweepFunction> & >() , py::arg("Func") )
// custom constructors
// methods
.def("Perform",
(void (Approx_SweepApproximation::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const GeomAbs_Shape , const Standard_Integer , const Standard_Integer ) ) static_cast<void (Approx_SweepApproximation::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real , const GeomAbs_Shape , const Standard_Integer , const Standard_Integer ) >(&Approx_SweepApproximation::Perform),
R"#(Perform the Approximation [First, Last] : Approx_SweepApproximation.cdl Tol3d : Tolerance to surface approximation Tol2d : Tolerance used to perform curve approximation Normally the 2d curve are approximated with a tolerance given by the resolution on support surfaces, but if this tolerance is too large Tol2d is used. TolAngular : Tolerance (in radian) to control the angle between tangents on the section law and tangent of iso-v on approximated surface Continuity : The continuity in v waiting on the surface Degmax : The maximum degree in v required on the surface Segmax : The maximum number of span in v required on the surface Warning : The continuity ci can be obtained only if Ft is Ci)#" , py::arg("First"), py::arg("Last"), py::arg("Tol3d"), py::arg("BoundTol"), py::arg("Tol2d"), py::arg("TolAngular"), py::arg("Continuity")=static_cast< const GeomAbs_Shape>(GeomAbs_C0), py::arg("Degmax")=static_cast< const Standard_Integer>(11), py::arg("Segmax")=static_cast< const Standard_Integer>(50)
)
.def("Eval",
(Standard_Integer (Approx_SweepApproximation::*)( const Standard_Real , const Standard_Integer , const Standard_Real , const Standard_Real , Standard_Real & ) ) static_cast<Standard_Integer (Approx_SweepApproximation::*)( const Standard_Real , const Standard_Integer , const Standard_Real , const Standard_Real , Standard_Real & ) >(&Approx_SweepApproximation::Eval),
R"#(The EvaluatorFunction from AdvApprox;)#" , py::arg("Parameter"), py::arg("DerivativeRequest"), py::arg("First"), py::arg("Last"), py::arg("Result")
)
.def("IsDone",
(Standard_Boolean (Approx_SweepApproximation::*)() const) static_cast<Standard_Boolean (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::IsDone),
R"#(returns if we have an result)#"
)
.def("Surface",
(void (Approx_SweepApproximation::*)( TColgp_Array2OfPnt & , TColStd_Array2OfReal & , TColStd_Array1OfReal & , TColStd_Array1OfReal & , TColStd_Array1OfInteger & , TColStd_Array1OfInteger & ) const) static_cast<void (Approx_SweepApproximation::*)( TColgp_Array2OfPnt & , TColStd_Array2OfReal & , TColStd_Array1OfReal & , TColStd_Array1OfReal & , TColStd_Array1OfInteger & , TColStd_Array1OfInteger & ) const>(&Approx_SweepApproximation::Surface),
R"#()#" , py::arg("TPoles"), py::arg("TWeights"), py::arg("TUKnots"), py::arg("TVKnots"), py::arg("TUMults"), py::arg("TVMults")
)
.def("UDegree",
(Standard_Integer (Approx_SweepApproximation::*)() const) static_cast<Standard_Integer (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::UDegree),
R"#()#"
)
.def("VDegree",
(Standard_Integer (Approx_SweepApproximation::*)() const) static_cast<Standard_Integer (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::VDegree),
R"#()#"
)
.def("MaxErrorOnSurf",
(Standard_Real (Approx_SweepApproximation::*)() const) static_cast<Standard_Real (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::MaxErrorOnSurf),
R"#(returns the maximum error in the surface approximation.)#"
)
.def("AverageErrorOnSurf",
(Standard_Real (Approx_SweepApproximation::*)() const) static_cast<Standard_Real (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::AverageErrorOnSurf),
R"#(returns the average error in the surface approximation.)#"
)
.def("NbCurves2d",
(Standard_Integer (Approx_SweepApproximation::*)() const) static_cast<Standard_Integer (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::NbCurves2d),
R"#()#"
)
.def("Curve2d",
(void (Approx_SweepApproximation::*)( const Standard_Integer , TColgp_Array1OfPnt2d & , TColStd_Array1OfReal & , TColStd_Array1OfInteger & ) const) static_cast<void (Approx_SweepApproximation::*)( const Standard_Integer , TColgp_Array1OfPnt2d & , TColStd_Array1OfReal & , TColStd_Array1OfInteger & ) const>(&Approx_SweepApproximation::Curve2d),
R"#()#" , py::arg("Index"), py::arg("TPoles"), py::arg("TKnots"), py::arg("TMults")
)
.def("Curves2dDegree",
(Standard_Integer (Approx_SweepApproximation::*)() const) static_cast<Standard_Integer (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::Curves2dDegree),
R"#()#"
)
.def("Curve2dPoles",
( const TColgp_Array1OfPnt2d & (Approx_SweepApproximation::*)( const Standard_Integer ) const) static_cast< const TColgp_Array1OfPnt2d & (Approx_SweepApproximation::*)( const Standard_Integer ) const>(&Approx_SweepApproximation::Curve2dPoles),
R"#()#" , py::arg("Index")
)
.def("Max2dError",
(Standard_Real (Approx_SweepApproximation::*)( const Standard_Integer ) const) static_cast<Standard_Real (Approx_SweepApproximation::*)( const Standard_Integer ) const>(&Approx_SweepApproximation::Max2dError),
R"#(returns the maximum error of the <Index> 2d curve approximation.)#" , py::arg("Index")
)
.def("Average2dError",
(Standard_Real (Approx_SweepApproximation::*)( const Standard_Integer ) const) static_cast<Standard_Real (Approx_SweepApproximation::*)( const Standard_Integer ) const>(&Approx_SweepApproximation::Average2dError),
R"#(returns the average error of the <Index> 2d curve approximation.)#" , py::arg("Index")
)
.def("TolCurveOnSurf",
(Standard_Real (Approx_SweepApproximation::*)( const Standard_Integer ) const) static_cast<Standard_Real (Approx_SweepApproximation::*)( const Standard_Integer ) const>(&Approx_SweepApproximation::TolCurveOnSurf),
R"#(returns the maximum 3d error of the <Index> 2d curve approximation on the Surface.)#" , py::arg("Index")
)
.def("Dump",
(void (Approx_SweepApproximation::*)( Standard_OStream & ) const) static_cast<void (Approx_SweepApproximation::*)( Standard_OStream & ) const>(&Approx_SweepApproximation::Dump),
R"#(display information on approximation.)#" , py::arg("o")
)
.def("IsDone",
(Standard_Boolean (Approx_SweepApproximation::*)() const) static_cast<Standard_Boolean (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::IsDone),
R"#(returns if we have an result)#"
)
.def("UDegree",
(Standard_Integer (Approx_SweepApproximation::*)() const) static_cast<Standard_Integer (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::UDegree),
R"#()#"
)
.def("VDegree",
(Standard_Integer (Approx_SweepApproximation::*)() const) static_cast<Standard_Integer (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::VDegree),
R"#()#"
)
.def("NbCurves2d",
(Standard_Integer (Approx_SweepApproximation::*)() const) static_cast<Standard_Integer (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::NbCurves2d),
R"#()#"
)
.def("Curves2dDegree",
(Standard_Integer (Approx_SweepApproximation::*)() const) static_cast<Standard_Integer (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::Curves2dDegree),
R"#()#"
)
.def("Curve2dPoles",
( const TColgp_Array1OfPnt2d & (Approx_SweepApproximation::*)( const Standard_Integer ) const) static_cast< const TColgp_Array1OfPnt2d & (Approx_SweepApproximation::*)( const Standard_Integer ) const>(&Approx_SweepApproximation::Curve2dPoles),
R"#()#" , py::arg("Index")
)
// methods using call by reference i.s.o. return
.def("SurfShape",
[]( Approx_SweepApproximation &self ){
Standard_Integer UDegree;
Standard_Integer VDegree;
Standard_Integer NbUPoles;
Standard_Integer NbVPoles;
Standard_Integer NbUKnots;
Standard_Integer NbVKnots;
self.SurfShape(UDegree,VDegree,NbUPoles,NbVPoles,NbUKnots,NbVKnots);
return std::make_tuple(UDegree,VDegree,NbUPoles,NbVPoles,NbUKnots,NbVKnots); },
R"#()#"
)
.def("Curves2dShape",
[]( Approx_SweepApproximation &self ){
Standard_Integer Degree;
Standard_Integer NbPoles;
Standard_Integer NbKnots;
self.Curves2dShape(Degree,NbPoles,NbKnots);
return std::make_tuple(Degree,NbPoles,NbKnots); },
R"#()#"
)
// 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("SurfPoles",
( const TColgp_Array2OfPnt & (Approx_SweepApproximation::*)() const) static_cast< const TColgp_Array2OfPnt & (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::SurfPoles),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("SurfWeights",
( const TColStd_Array2OfReal & (Approx_SweepApproximation::*)() const) static_cast< const TColStd_Array2OfReal & (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::SurfWeights),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("SurfUKnots",
( const TColStd_Array1OfReal & (Approx_SweepApproximation::*)() const) static_cast< const TColStd_Array1OfReal & (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::SurfUKnots),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("SurfVKnots",
( const TColStd_Array1OfReal & (Approx_SweepApproximation::*)() const) static_cast< const TColStd_Array1OfReal & (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::SurfVKnots),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("SurfUMults",
( const TColStd_Array1OfInteger & (Approx_SweepApproximation::*)() const) static_cast< const TColStd_Array1OfInteger & (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::SurfUMults),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("SurfVMults",
( const TColStd_Array1OfInteger & (Approx_SweepApproximation::*)() const) static_cast< const TColStd_Array1OfInteger & (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::SurfVMults),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("Curves2dKnots",
( const TColStd_Array1OfReal & (Approx_SweepApproximation::*)() const) static_cast< const TColStd_Array1OfReal & (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::Curves2dKnots),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("Curves2dMults",
( const TColStd_Array1OfInteger & (Approx_SweepApproximation::*)() const) static_cast< const TColStd_Array1OfInteger & (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::Curves2dMults),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("SurfPoles",
( const TColgp_Array2OfPnt & (Approx_SweepApproximation::*)() const) static_cast< const TColgp_Array2OfPnt & (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::SurfPoles),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("SurfWeights",
( const TColStd_Array2OfReal & (Approx_SweepApproximation::*)() const) static_cast< const TColStd_Array2OfReal & (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::SurfWeights),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("SurfUKnots",
( const TColStd_Array1OfReal & (Approx_SweepApproximation::*)() const) static_cast< const TColStd_Array1OfReal & (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::SurfUKnots),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("SurfVKnots",
( const TColStd_Array1OfReal & (Approx_SweepApproximation::*)() const) static_cast< const TColStd_Array1OfReal & (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::SurfVKnots),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("SurfUMults",
( const TColStd_Array1OfInteger & (Approx_SweepApproximation::*)() const) static_cast< const TColStd_Array1OfInteger & (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::SurfUMults),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("SurfVMults",
( const TColStd_Array1OfInteger & (Approx_SweepApproximation::*)() const) static_cast< const TColStd_Array1OfInteger & (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::SurfVMults),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("Curves2dKnots",
( const TColStd_Array1OfReal & (Approx_SweepApproximation::*)() const) static_cast< const TColStd_Array1OfReal & (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::Curves2dKnots),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("Curves2dMults",
( const TColStd_Array1OfInteger & (Approx_SweepApproximation::*)() const) static_cast< const TColStd_Array1OfInteger & (Approx_SweepApproximation::*)() const>(&Approx_SweepApproximation::Curves2dMults),
R"#()#"
, py::return_value_policy::reference_internal
)
;
// Class Approx_SweepFunction from ./opencascade/Approx_SweepFunction.hxx
klass = m.attr("Approx_SweepFunction");
// nested enums
static_cast<py::class_<Approx_SweepFunction ,opencascade::handle<Approx_SweepFunction> ,Py_Approx_SweepFunction , Standard_Transient >>(klass)
// constructors
// custom constructors
// methods
.def("D0",
(Standard_Boolean (Approx_SweepFunction::*)( const Standard_Real , const Standard_Real , const Standard_Real , TColgp_Array1OfPnt & , TColgp_Array1OfPnt2d & , TColStd_Array1OfReal & ) ) static_cast<Standard_Boolean (Approx_SweepFunction::*)( const Standard_Real , const Standard_Real , const Standard_Real , TColgp_Array1OfPnt & , TColgp_Array1OfPnt2d & , TColStd_Array1OfReal & ) >(&Approx_SweepFunction::D0),
R"#(compute the section for v = param)#" , py::arg("Param"), py::arg("First"), py::arg("Last"), py::arg("Poles"), py::arg("Poles2d"), py::arg("Weigths")
)
.def("D1",
(Standard_Boolean (Approx_SweepFunction::*)( const Standard_Real , const Standard_Real , const Standard_Real , TColgp_Array1OfPnt & , TColgp_Array1OfVec & , TColgp_Array1OfPnt2d & , TColgp_Array1OfVec2d & , TColStd_Array1OfReal & , TColStd_Array1OfReal & ) ) static_cast<Standard_Boolean (Approx_SweepFunction::*)( const Standard_Real , const Standard_Real , const Standard_Real , TColgp_Array1OfPnt & , TColgp_Array1OfVec & , TColgp_Array1OfPnt2d & , TColgp_Array1OfVec2d & , TColStd_Array1OfReal & , TColStd_Array1OfReal & ) >(&Approx_SweepFunction::D1),
R"#(compute the first derivative in v direction of the section for v = param Warning : It used only for C1 or C2 approximation)#" , py::arg("Param"), py::arg("First"), py::arg("Last"), py::arg("Poles"), py::arg("DPoles"), py::arg("Poles2d"), py::arg("DPoles2d"), py::arg("Weigths"), py::arg("DWeigths")
)
.def("D2",
(Standard_Boolean (Approx_SweepFunction::*)( const Standard_Real , const Standard_Real , const Standard_Real , TColgp_Array1OfPnt & , TColgp_Array1OfVec & , TColgp_Array1OfVec & , TColgp_Array1OfPnt2d & , TColgp_Array1OfVec2d & , TColgp_Array1OfVec2d & , TColStd_Array1OfReal & , TColStd_Array1OfReal & , TColStd_Array1OfReal & ) ) static_cast<Standard_Boolean (Approx_SweepFunction::*)( const Standard_Real , const Standard_Real , const Standard_Real , TColgp_Array1OfPnt & , TColgp_Array1OfVec & , TColgp_Array1OfVec & , TColgp_Array1OfPnt2d & , TColgp_Array1OfVec2d & , TColgp_Array1OfVec2d & , TColStd_Array1OfReal & , TColStd_Array1OfReal & , TColStd_Array1OfReal & ) >(&Approx_SweepFunction::D2),
R"#(compute the second derivative in v direction of the section for v = param Warning : It used only for C2 approximation)#" , py::arg("Param"), py::arg("First"), py::arg("Last"), py::arg("Poles"), py::arg("DPoles"), py::arg("D2Poles"), py::arg("Poles2d"), py::arg("DPoles2d"), py::arg("D2Poles2d"), py::arg("Weigths"), py::arg("DWeigths"), py::arg("D2Weigths")
)
.def("Nb2dCurves",
(Standard_Integer (Approx_SweepFunction::*)() const) static_cast<Standard_Integer (Approx_SweepFunction::*)() const>(&Approx_SweepFunction::Nb2dCurves),
R"#(get the number of 2d curves to approximate.)#"
)
.def("Knots",
(void (Approx_SweepFunction::*)( TColStd_Array1OfReal & ) const) static_cast<void (Approx_SweepFunction::*)( TColStd_Array1OfReal & ) const>(&Approx_SweepFunction::Knots),
R"#(get the Knots of the section)#" , py::arg("TKnots")
)
.def("Mults",
(void (Approx_SweepFunction::*)( TColStd_Array1OfInteger & ) const) static_cast<void (Approx_SweepFunction::*)( TColStd_Array1OfInteger & ) const>(&Approx_SweepFunction::Mults),
R"#(get the Multplicities of the section)#" , py::arg("TMults")
)
.def("IsRational",
(Standard_Boolean (Approx_SweepFunction::*)() const) static_cast<Standard_Boolean (Approx_SweepFunction::*)() const>(&Approx_SweepFunction::IsRational),
R"#(Returns if the sections are rational or not)#"
)
.def("NbIntervals",
(Standard_Integer (Approx_SweepFunction::*)( const GeomAbs_Shape ) const) static_cast<Standard_Integer (Approx_SweepFunction::*)( const GeomAbs_Shape ) const>(&Approx_SweepFunction::NbIntervals),
R"#(Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>)#" , py::arg("S")
)
.def("Intervals",
(void (Approx_SweepFunction::*)( TColStd_Array1OfReal & , const GeomAbs_Shape ) const) static_cast<void (Approx_SweepFunction::*)( TColStd_Array1OfReal & , const GeomAbs_Shape ) const>(&Approx_SweepFunction::Intervals),
R"#(Stores in <T> the parameters bounding the intervals of continuity <S>.)#" , py::arg("T"), py::arg("S")
)
.def("SetInterval",
(void (Approx_SweepFunction::*)( const Standard_Real , const Standard_Real ) ) static_cast<void (Approx_SweepFunction::*)( const Standard_Real , const Standard_Real ) >(&Approx_SweepFunction::SetInterval),
R"#(Sets the bounds of the parametric interval on the fonction This determines the derivatives in these values if the function is not Cn.)#" , py::arg("First"), py::arg("Last")
)
.def("GetTolerance",
(void (Approx_SweepFunction::*)( const Standard_Real , const Standard_Real , const Standard_Real , TColStd_Array1OfReal & ) const) static_cast<void (Approx_SweepFunction::*)( const Standard_Real , const Standard_Real , const Standard_Real , TColStd_Array1OfReal & ) const>(&Approx_SweepFunction::GetTolerance),
R"#(Returns the tolerance to reach in approximation to satisfy. BoundTol error at the Boundary AngleTol tangent error at the Boundary (in radian) SurfTol error inside the surface.)#" , py::arg("BoundTol"), py::arg("SurfTol"), py::arg("AngleTol"), py::arg("Tol3d")
)
.def("SetTolerance",
(void (Approx_SweepFunction::*)( const Standard_Real , const Standard_Real ) ) static_cast<void (Approx_SweepFunction::*)( const Standard_Real , const Standard_Real ) >(&Approx_SweepFunction::SetTolerance),
R"#(Is useful, if (me) have to run numerical algorithm to perform D0, D1 or D2)#" , py::arg("Tol3d"), py::arg("Tol2d")
)
.def("BarycentreOfSurf",
(gp_Pnt (Approx_SweepFunction::*)() const) static_cast<gp_Pnt (Approx_SweepFunction::*)() const>(&Approx_SweepFunction::BarycentreOfSurf),
R"#(Get the barycentre of Surface. An very poor estimation is sufficient. This information is useful to perform well conditioned rational approximation. Warning: Used only if <me> IsRational)#"
)
.def("MaximalSection",
(Standard_Real (Approx_SweepFunction::*)() const) static_cast<Standard_Real (Approx_SweepFunction::*)() const>(&Approx_SweepFunction::MaximalSection),
R"#(Returns the length of the greater section. Thisinformation is useful to G1's control. Warning: With an little value, approximation can be slower.)#"
)
.def("GetMinimalWeight",
(void (Approx_SweepFunction::*)( TColStd_Array1OfReal & ) const) static_cast<void (Approx_SweepFunction::*)( TColStd_Array1OfReal & ) const>(&Approx_SweepFunction::GetMinimalWeight),
R"#(Compute the minimal value of weight for each poles in all sections. This information is useful to control error in rational approximation. Warning: Used only if <me> IsRational)#" , py::arg("Weigths")
)
// methods using call by reference i.s.o. return
.def("SectionShape",
[]( Approx_SweepFunction &self ){
Standard_Integer NbPoles;
Standard_Integer NbKnots;
Standard_Integer Degree;
self.SectionShape(NbPoles,NbKnots,Degree);
return std::make_tuple(NbPoles,NbKnots,Degree); },
R"#(get the format of an section)#"
)
.def("Resolution",
[]( Approx_SweepFunction &self , const Standard_Integer Index, const Standard_Real Tol ){
Standard_Real TolU;
Standard_Real TolV;
self.Resolution(Index,Tol,TolU,TolV);
return std::make_tuple(TolU,TolV); },
R"#(Returns the resolutions in the sub-space 2d <Index> This information is usfull to find an good tolerance in 2d approximation.)#" , py::arg("Index"), py::arg("Tol")
)
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&Approx_SweepFunction::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&Approx_SweepFunction::get_type_descriptor),
R"#()#"
)
// 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 handle<Standard_Type> & (Approx_SweepFunction::*)() const) static_cast< const handle<Standard_Type> & (Approx_SweepFunction::*)() const>(&Approx_SweepFunction::DynamicType),
R"#()#"
)
;
// functions
// ./opencascade/Approx_Array1OfAdHSurface.hxx
// ./opencascade/Approx_Array1OfGTrsf2d.hxx
// ./opencascade/Approx_Curve2d.hxx
// ./opencascade/Approx_Curve3d.hxx
// ./opencascade/Approx_CurveOnSurface.hxx
// ./opencascade/Approx_CurvilinearParameter.hxx
// ./opencascade/Approx_CurvlinFunc.hxx
// ./opencascade/Approx_FitAndDivide.hxx
// ./opencascade/Approx_FitAndDivide2d.hxx
// ./opencascade/Approx_HArray1OfAdHSurface.hxx
// ./opencascade/Approx_HArray1OfGTrsf2d.hxx
// ./opencascade/Approx_MCurvesToBSpCurve.hxx
// ./opencascade/Approx_ParametrizationType.hxx
// ./opencascade/Approx_SameParameter.hxx
// ./opencascade/Approx_SequenceOfHArray1OfReal.hxx
// ./opencascade/Approx_Status.hxx
// ./opencascade/Approx_SweepApproximation.hxx
// ./opencascade/Approx_SweepFunction.hxx
// Additional functions
// operators
// register typdefs
register_template_NCollection_Array1<opencascade::handle<Adaptor3d_Surface>>(m,"Approx_Array1OfAdHSurface");
register_template_NCollection_Array1<gp_GTrsf2d>(m,"Approx_Array1OfGTrsf2d");
register_template_NCollection_Sequence<opencascade::handle<TColStd_HArray1OfReal>>(m,"Approx_SequenceOfHArray1OfReal");
// exceptions
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|