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
|
// std lib related includes
#include <tuple>
// pybind 11 related includes
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
// Standard Handle
#include <Standard_Handle.hxx>
// includes to resolve forward declarations
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <MAT2d_MiniPath.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 <Geom2d_TrimmedCurve.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 <MAT_ListOfEdge.hxx>
#include <MAT_ListOfBisector.hxx>
#include <MAT2d_Tool2d.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 <MAT2d_Circuit.hxx>
#include <MAT_Bisector.hxx>
#include <Geom2d_Geometry.hxx>
// module includes
#include <MAT2d_Array2OfConnexion.hxx>
#include <MAT2d_BiInt.hxx>
#include <MAT2d_Circuit.hxx>
#include <MAT2d_Connexion.hxx>
#include <MAT2d_CutCurve.hxx>
#include <MAT2d_DataMapIteratorOfDataMapOfBiIntInteger.hxx>
#include <MAT2d_DataMapIteratorOfDataMapOfBiIntSequenceOfInteger.hxx>
#include <MAT2d_DataMapIteratorOfDataMapOfIntegerBisec.hxx>
#include <MAT2d_DataMapIteratorOfDataMapOfIntegerConnexion.hxx>
#include <MAT2d_DataMapIteratorOfDataMapOfIntegerPnt2d.hxx>
#include <MAT2d_DataMapIteratorOfDataMapOfIntegerSequenceOfConnexion.hxx>
#include <MAT2d_DataMapIteratorOfDataMapOfIntegerVec2d.hxx>
#include <MAT2d_DataMapOfBiIntInteger.hxx>
#include <MAT2d_DataMapOfBiIntSequenceOfInteger.hxx>
#include <MAT2d_DataMapOfIntegerBisec.hxx>
#include <MAT2d_DataMapOfIntegerConnexion.hxx>
#include <MAT2d_DataMapOfIntegerPnt2d.hxx>
#include <MAT2d_DataMapOfIntegerSequenceOfConnexion.hxx>
#include <MAT2d_DataMapOfIntegerVec2d.hxx>
#include <MAT2d_Mat2d.hxx>
#include <MAT2d_MiniPath.hxx>
#include <MAT2d_SequenceOfConnexion.hxx>
#include <MAT2d_SequenceOfSequenceOfCurve.hxx>
#include <MAT2d_SequenceOfSequenceOfGeometry.hxx>
#include <MAT2d_Tool2d.hxx>
// template related includes
// ./opencascade/MAT2d_Array2OfConnexion.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/MAT2d_DataMapOfBiIntInteger.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/MAT2d_DataMapOfBiIntInteger.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/MAT2d_DataMapOfBiIntSequenceOfInteger.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/MAT2d_DataMapOfBiIntSequenceOfInteger.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/MAT2d_DataMapOfIntegerBisec.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/MAT2d_DataMapOfIntegerBisec.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/MAT2d_DataMapOfIntegerConnexion.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/MAT2d_DataMapOfIntegerPnt2d.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/MAT2d_DataMapOfIntegerPnt2d.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/MAT2d_DataMapOfIntegerSequenceOfConnexion.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/MAT2d_DataMapOfIntegerSequenceOfConnexion.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/MAT2d_DataMapOfIntegerVec2d.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/MAT2d_DataMapOfIntegerVec2d.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/MAT2d_SequenceOfConnexion.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/MAT2d_SequenceOfSequenceOfCurve.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/MAT2d_SequenceOfSequenceOfGeometry.hxx
#include "NCollection_tmpl.hxx"
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_MAT2d(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("MAT2d"));
py::object klass;
//Python trampoline classes
// classes
// Class MAT2d_BiInt from ./opencascade/MAT2d_BiInt.hxx
klass = m.attr("MAT2d_BiInt");
// nested enums
static_cast<py::class_<MAT2d_BiInt , shared_ptr<MAT2d_BiInt> >>(klass)
// constructors
.def(py::init< const Standard_Integer,const Standard_Integer >() , py::arg("I1"), py::arg("I2") )
// custom constructors
// methods
.def("FirstIndex",
(Standard_Integer (MAT2d_BiInt::*)() const) static_cast<Standard_Integer (MAT2d_BiInt::*)() const>(&MAT2d_BiInt::FirstIndex),
R"#(None)#"
)
.def("SecondIndex",
(Standard_Integer (MAT2d_BiInt::*)() const) static_cast<Standard_Integer (MAT2d_BiInt::*)() const>(&MAT2d_BiInt::SecondIndex),
R"#(None)#"
)
.def("FirstIndex",
(void (MAT2d_BiInt::*)( const Standard_Integer ) ) static_cast<void (MAT2d_BiInt::*)( const Standard_Integer ) >(&MAT2d_BiInt::FirstIndex),
R"#(None)#" , py::arg("I1")
)
.def("SecondIndex",
(void (MAT2d_BiInt::*)( const Standard_Integer ) ) static_cast<void (MAT2d_BiInt::*)( const Standard_Integer ) >(&MAT2d_BiInt::SecondIndex),
R"#(None)#" , py::arg("I2")
)
.def("IsEqual",
(Standard_Boolean (MAT2d_BiInt::*)( const MAT2d_BiInt & ) const) static_cast<Standard_Boolean (MAT2d_BiInt::*)( const MAT2d_BiInt & ) const>(&MAT2d_BiInt::IsEqual),
R"#(None)#" , py::arg("B")
)
// 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 MAT2d_Circuit from ./opencascade/MAT2d_Circuit.hxx
klass = m.attr("MAT2d_Circuit");
// nested enums
static_cast<py::class_<MAT2d_Circuit ,opencascade::handle<MAT2d_Circuit> , Standard_Transient >>(klass)
// constructors
.def(py::init< const GeomAbs_JoinType,const Standard_Boolean >() , py::arg("aJoinType")=static_cast<const GeomAbs_JoinType>(GeomAbs_Arc), py::arg("IsOpenResult")=static_cast<const Standard_Boolean>(Standard_False) )
// custom constructors
// methods
.def("Perform",
(void (MAT2d_Circuit::*)( NCollection_Sequence<TColGeom2d_SequenceOfGeometry> & , const NCollection_Sequence<Standard_Boolean> & , const Standard_Integer , const Standard_Boolean ) ) static_cast<void (MAT2d_Circuit::*)( NCollection_Sequence<TColGeom2d_SequenceOfGeometry> & , const NCollection_Sequence<Standard_Boolean> & , const Standard_Integer , const Standard_Boolean ) >(&MAT2d_Circuit::Perform),
R"#(None)#" , py::arg("aFigure"), py::arg("IsClosed"), py::arg("IndRefLine"), py::arg("Trigo")
)
.def("NumberOfItems",
(Standard_Integer (MAT2d_Circuit::*)() const) static_cast<Standard_Integer (MAT2d_Circuit::*)() const>(&MAT2d_Circuit::NumberOfItems),
R"#(Returns the Number of Items .)#"
)
.def("Value",
(opencascade::handle<Geom2d_Geometry> (MAT2d_Circuit::*)( const Standard_Integer ) const) static_cast<opencascade::handle<Geom2d_Geometry> (MAT2d_Circuit::*)( const Standard_Integer ) const>(&MAT2d_Circuit::Value),
R"#(Returns the item at position <Index> in <me>.)#" , py::arg("Index")
)
.def("LineLength",
(Standard_Integer (MAT2d_Circuit::*)( const Standard_Integer ) const) static_cast<Standard_Integer (MAT2d_Circuit::*)( const Standard_Integer ) const>(&MAT2d_Circuit::LineLength),
R"#(Returns the number of items on the line <IndexLine>.)#" , py::arg("IndexLine")
)
.def("RefToEqui",
(const TColStd_SequenceOfInteger & (MAT2d_Circuit::*)( const Standard_Integer , const Standard_Integer ) const) static_cast<const TColStd_SequenceOfInteger & (MAT2d_Circuit::*)( const Standard_Integer , const Standard_Integer ) const>(&MAT2d_Circuit::RefToEqui),
R"#(Returns the set of index of the items in <me>corresponding to the curve <IndCurve> on the line <IndLine> from the initial figure.)#" , py::arg("IndLine"), py::arg("IndCurve")
)
.def("Connexion",
(opencascade::handle<MAT2d_Connexion> (MAT2d_Circuit::*)( const Standard_Integer ) const) static_cast<opencascade::handle<MAT2d_Connexion> (MAT2d_Circuit::*)( const Standard_Integer ) const>(&MAT2d_Circuit::Connexion),
R"#(Returns the Connexion on the item <Index> in me.)#" , py::arg("Index")
)
.def("ConnexionOn",
(Standard_Boolean (MAT2d_Circuit::*)( const Standard_Integer ) const) static_cast<Standard_Boolean (MAT2d_Circuit::*)( const Standard_Integer ) const>(&MAT2d_Circuit::ConnexionOn),
R"#(Returns <True> is there is a connexion on the item <Index> in <me>.)#" , py::arg("Index")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&MAT2d_Circuit::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&MAT2d_Circuit::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> & (MAT2d_Circuit::*)() const) static_cast<const opencascade::handle<Standard_Type> & (MAT2d_Circuit::*)() const>(&MAT2d_Circuit::DynamicType),
R"#(None)#"
)
;
// Class MAT2d_Connexion from ./opencascade/MAT2d_Connexion.hxx
klass = m.attr("MAT2d_Connexion");
// nested enums
static_cast<py::class_<MAT2d_Connexion ,opencascade::handle<MAT2d_Connexion> , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const Standard_Integer,const Standard_Integer,const Standard_Integer,const Standard_Integer,const Standard_Real,const Standard_Real,const Standard_Real,const gp_Pnt2d &,const gp_Pnt2d & >() , py::arg("LineA"), py::arg("LineB"), py::arg("ItemA"), py::arg("ItemB"), py::arg("Distance"), py::arg("ParameterOnA"), py::arg("ParameterOnB"), py::arg("PointA"), py::arg("PointB") )
// custom constructors
// methods
.def("IndexFirstLine",
(Standard_Integer (MAT2d_Connexion::*)() const) static_cast<Standard_Integer (MAT2d_Connexion::*)() const>(&MAT2d_Connexion::IndexFirstLine),
R"#(Returns the Index on the first line.)#"
)
.def("IndexSecondLine",
(Standard_Integer (MAT2d_Connexion::*)() const) static_cast<Standard_Integer (MAT2d_Connexion::*)() const>(&MAT2d_Connexion::IndexSecondLine),
R"#(Returns the Index on the Second line.)#"
)
.def("IndexItemOnFirst",
(Standard_Integer (MAT2d_Connexion::*)() const) static_cast<Standard_Integer (MAT2d_Connexion::*)() const>(&MAT2d_Connexion::IndexItemOnFirst),
R"#(Returns the Index of the item on the first line.)#"
)
.def("IndexItemOnSecond",
(Standard_Integer (MAT2d_Connexion::*)() const) static_cast<Standard_Integer (MAT2d_Connexion::*)() const>(&MAT2d_Connexion::IndexItemOnSecond),
R"#(Returns the Index of the item on the second line.)#"
)
.def("ParameterOnFirst",
(Standard_Real (MAT2d_Connexion::*)() const) static_cast<Standard_Real (MAT2d_Connexion::*)() const>(&MAT2d_Connexion::ParameterOnFirst),
R"#(Returns the parameter of the point on the firstline.)#"
)
.def("ParameterOnSecond",
(Standard_Real (MAT2d_Connexion::*)() const) static_cast<Standard_Real (MAT2d_Connexion::*)() const>(&MAT2d_Connexion::ParameterOnSecond),
R"#(Returns the parameter of the point on the secondline.)#"
)
.def("PointOnFirst",
(gp_Pnt2d (MAT2d_Connexion::*)() const) static_cast<gp_Pnt2d (MAT2d_Connexion::*)() const>(&MAT2d_Connexion::PointOnFirst),
R"#(Returns the point on the firstline.)#"
)
.def("PointOnSecond",
(gp_Pnt2d (MAT2d_Connexion::*)() const) static_cast<gp_Pnt2d (MAT2d_Connexion::*)() const>(&MAT2d_Connexion::PointOnSecond),
R"#(Returns the point on the secondline.)#"
)
.def("Distance",
(Standard_Real (MAT2d_Connexion::*)() const) static_cast<Standard_Real (MAT2d_Connexion::*)() const>(&MAT2d_Connexion::Distance),
R"#(Returns the distance between the two points.)#"
)
.def("IndexFirstLine",
(void (MAT2d_Connexion::*)( const Standard_Integer ) ) static_cast<void (MAT2d_Connexion::*)( const Standard_Integer ) >(&MAT2d_Connexion::IndexFirstLine),
R"#(None)#" , py::arg("anIndex")
)
.def("IndexSecondLine",
(void (MAT2d_Connexion::*)( const Standard_Integer ) ) static_cast<void (MAT2d_Connexion::*)( const Standard_Integer ) >(&MAT2d_Connexion::IndexSecondLine),
R"#(None)#" , py::arg("anIndex")
)
.def("IndexItemOnFirst",
(void (MAT2d_Connexion::*)( const Standard_Integer ) ) static_cast<void (MAT2d_Connexion::*)( const Standard_Integer ) >(&MAT2d_Connexion::IndexItemOnFirst),
R"#(None)#" , py::arg("anIndex")
)
.def("IndexItemOnSecond",
(void (MAT2d_Connexion::*)( const Standard_Integer ) ) static_cast<void (MAT2d_Connexion::*)( const Standard_Integer ) >(&MAT2d_Connexion::IndexItemOnSecond),
R"#(None)#" , py::arg("anIndex")
)
.def("ParameterOnFirst",
(void (MAT2d_Connexion::*)( const Standard_Real ) ) static_cast<void (MAT2d_Connexion::*)( const Standard_Real ) >(&MAT2d_Connexion::ParameterOnFirst),
R"#(None)#" , py::arg("aParameter")
)
.def("ParameterOnSecond",
(void (MAT2d_Connexion::*)( const Standard_Real ) ) static_cast<void (MAT2d_Connexion::*)( const Standard_Real ) >(&MAT2d_Connexion::ParameterOnSecond),
R"#(None)#" , py::arg("aParameter")
)
.def("PointOnFirst",
(void (MAT2d_Connexion::*)( const gp_Pnt2d & ) ) static_cast<void (MAT2d_Connexion::*)( const gp_Pnt2d & ) >(&MAT2d_Connexion::PointOnFirst),
R"#(None)#" , py::arg("aPoint")
)
.def("PointOnSecond",
(void (MAT2d_Connexion::*)( const gp_Pnt2d & ) ) static_cast<void (MAT2d_Connexion::*)( const gp_Pnt2d & ) >(&MAT2d_Connexion::PointOnSecond),
R"#(None)#" , py::arg("aPoint")
)
.def("Distance",
(void (MAT2d_Connexion::*)( const Standard_Real ) ) static_cast<void (MAT2d_Connexion::*)( const Standard_Real ) >(&MAT2d_Connexion::Distance),
R"#(None)#" , py::arg("aDistance")
)
.def("Reverse",
(opencascade::handle<MAT2d_Connexion> (MAT2d_Connexion::*)() const) static_cast<opencascade::handle<MAT2d_Connexion> (MAT2d_Connexion::*)() const>(&MAT2d_Connexion::Reverse),
R"#(Returns the reverse connexion of <me>. the firstpoint is the secondpoint. the secondpoint is the firstpoint.)#"
)
.def("IsAfter",
(Standard_Boolean (MAT2d_Connexion::*)( const opencascade::handle<MAT2d_Connexion> & , const Standard_Real ) const) static_cast<Standard_Boolean (MAT2d_Connexion::*)( const opencascade::handle<MAT2d_Connexion> & , const Standard_Real ) const>(&MAT2d_Connexion::IsAfter),
R"#(Returns <True> if my firstPoint is on the same line than the firstpoint of <aConnexion> and my firstpoint is after the firstpoint of <aConnexion> on the line. <aSense> = 1 if <aConnexion> is on the Left of its firstline, else <aSense> = -1.)#" , py::arg("aConnexion"), py::arg("aSense")
)
.def("Dump",
(void (MAT2d_Connexion::*)( const Standard_Integer , const Standard_Integer ) const) static_cast<void (MAT2d_Connexion::*)( const Standard_Integer , const Standard_Integer ) const>(&MAT2d_Connexion::Dump),
R"#(Print <me>.)#" , py::arg("Deep")=static_cast<const Standard_Integer>(0), py::arg("Offset")=static_cast<const Standard_Integer>(0)
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&MAT2d_Connexion::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&MAT2d_Connexion::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> & (MAT2d_Connexion::*)() const) static_cast<const opencascade::handle<Standard_Type> & (MAT2d_Connexion::*)() const>(&MAT2d_Connexion::DynamicType),
R"#(None)#"
)
;
// Class MAT2d_CutCurve from ./opencascade/MAT2d_CutCurve.hxx
klass = m.attr("MAT2d_CutCurve");
// nested enums
static_cast<py::class_<MAT2d_CutCurve , shared_ptr<MAT2d_CutCurve> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const opencascade::handle<Geom2d_Curve> & >() , py::arg("C") )
// custom constructors
// methods
.def("Perform",
(void (MAT2d_CutCurve::*)( const opencascade::handle<Geom2d_Curve> & ) ) static_cast<void (MAT2d_CutCurve::*)( const opencascade::handle<Geom2d_Curve> & ) >(&MAT2d_CutCurve::Perform),
R"#(Cuts a curve at the extremas of curvature and at the inflections.)#" , py::arg("C")
)
.def("UnModified",
(Standard_Boolean (MAT2d_CutCurve::*)() const) static_cast<Standard_Boolean (MAT2d_CutCurve::*)() const>(&MAT2d_CutCurve::UnModified),
R"#(Returns True if the curve is not cut.)#"
)
.def("NbCurves",
(Standard_Integer (MAT2d_CutCurve::*)() const) static_cast<Standard_Integer (MAT2d_CutCurve::*)() const>(&MAT2d_CutCurve::NbCurves),
R"#(Returns the number of curves. it's always greatest than 2.)#"
)
.def("Value",
(opencascade::handle<Geom2d_TrimmedCurve> (MAT2d_CutCurve::*)( const Standard_Integer ) const) static_cast<opencascade::handle<Geom2d_TrimmedCurve> (MAT2d_CutCurve::*)( const Standard_Integer ) const>(&MAT2d_CutCurve::Value),
R"#(Returns the Indexth curve. raises if Index not in the range [1,NbCurves()])#" , py::arg("Index")
)
// 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 MAT2d_Mat2d from ./opencascade/MAT2d_Mat2d.hxx
klass = m.attr("MAT2d_Mat2d");
// nested enums
static_cast<py::class_<MAT2d_Mat2d , shared_ptr<MAT2d_Mat2d> >>(klass)
// constructors
.def(py::init< const Standard_Boolean >() , py::arg("IsOpenResult")=static_cast<const Standard_Boolean>(Standard_False) )
// custom constructors
// methods
.def("CreateMat",
(void (MAT2d_Mat2d::*)( MAT2d_Tool2d & ) ) static_cast<void (MAT2d_Mat2d::*)( MAT2d_Tool2d & ) >(&MAT2d_Mat2d::CreateMat),
R"#(Algorithm of computation of the bisecting locus.)#" , py::arg("aTool")
)
.def("CreateMatOpen",
(void (MAT2d_Mat2d::*)( MAT2d_Tool2d & ) ) static_cast<void (MAT2d_Mat2d::*)( MAT2d_Tool2d & ) >(&MAT2d_Mat2d::CreateMatOpen),
R"#(Algorithm of computation of the bisecting locus for open wire.)#" , py::arg("aTool")
)
.def("IsDone",
(Standard_Boolean (MAT2d_Mat2d::*)() const) static_cast<Standard_Boolean (MAT2d_Mat2d::*)() const>(&MAT2d_Mat2d::IsDone),
R"#(Returns <TRUE> if CreateMat has succeeded.)#"
)
.def("Init",
(void (MAT2d_Mat2d::*)() ) static_cast<void (MAT2d_Mat2d::*)() >(&MAT2d_Mat2d::Init),
R"#(Initialize an iterator on the set of the roots of the trees of bisectors.)#"
)
.def("More",
(Standard_Boolean (MAT2d_Mat2d::*)() const) static_cast<Standard_Boolean (MAT2d_Mat2d::*)() const>(&MAT2d_Mat2d::More),
R"#(Return False if there is no more roots.)#"
)
.def("Next",
(void (MAT2d_Mat2d::*)() ) static_cast<void (MAT2d_Mat2d::*)() >(&MAT2d_Mat2d::Next),
R"#(Move to the next root.)#"
)
.def("Bisector",
(opencascade::handle<MAT_Bisector> (MAT2d_Mat2d::*)() const) static_cast<opencascade::handle<MAT_Bisector> (MAT2d_Mat2d::*)() const>(&MAT2d_Mat2d::Bisector),
R"#(Returns the current root.)#"
)
.def("SemiInfinite",
(Standard_Boolean (MAT2d_Mat2d::*)() const) static_cast<Standard_Boolean (MAT2d_Mat2d::*)() const>(&MAT2d_Mat2d::SemiInfinite),
R"#(Returns True if there are semi_infinite bisectors. So there is a tree for each semi_infinte bisector.)#"
)
.def("NumberOfBisectors",
(Standard_Integer (MAT2d_Mat2d::*)() const) static_cast<Standard_Integer (MAT2d_Mat2d::*)() const>(&MAT2d_Mat2d::NumberOfBisectors),
R"#(Returns the total number of bisectors.)#"
)
// 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 MAT2d_MiniPath from ./opencascade/MAT2d_MiniPath.hxx
klass = m.attr("MAT2d_MiniPath");
// nested enums
static_cast<py::class_<MAT2d_MiniPath , shared_ptr<MAT2d_MiniPath> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Perform",
(void (MAT2d_MiniPath::*)( const NCollection_Sequence<TColGeom2d_SequenceOfGeometry> & , const Standard_Integer , const Standard_Boolean ) ) static_cast<void (MAT2d_MiniPath::*)( const NCollection_Sequence<TColGeom2d_SequenceOfGeometry> & , const Standard_Integer , const Standard_Boolean ) >(&MAT2d_MiniPath::Perform),
R"#(Computes the path to link the lines in <Figure>. the path starts on the line of index <IndStart> <Sense> = True if the Circuit turns in the trigonometric sense.)#" , py::arg("Figure"), py::arg("IndStart"), py::arg("Sense")
)
.def("RunOnConnexions",
(void (MAT2d_MiniPath::*)() ) static_cast<void (MAT2d_MiniPath::*)() >(&MAT2d_MiniPath::RunOnConnexions),
R"#(Run on the set of connexions to compute the path. the path is an exploration of the tree which contains the connexions and their reverses. if the tree of connexions is A / | B E / | | C D F)#"
)
.def("IsConnexionsFrom",
(Standard_Boolean (MAT2d_MiniPath::*)( const Standard_Integer ) const) static_cast<Standard_Boolean (MAT2d_MiniPath::*)( const Standard_Integer ) const>(&MAT2d_MiniPath::IsConnexionsFrom),
R"#(Returns <True> if there is one Connexion which starts on line designed by <Index>.)#" , py::arg("Index")
)
.def("ConnexionsFrom",
(MAT2d_SequenceOfConnexion & (MAT2d_MiniPath::*)( const Standard_Integer ) ) static_cast<MAT2d_SequenceOfConnexion & (MAT2d_MiniPath::*)( const Standard_Integer ) >(&MAT2d_MiniPath::ConnexionsFrom),
R"#(Returns the connexions which start on line designed by <Index>.)#" , py::arg("Index")
)
.def("IsRoot",
(Standard_Boolean (MAT2d_MiniPath::*)( const Standard_Integer ) const) static_cast<Standard_Boolean (MAT2d_MiniPath::*)( const Standard_Integer ) const>(&MAT2d_MiniPath::IsRoot),
R"#(Returns <True> if the line designed by <Index> is the root.)#" , py::arg("Index")
)
.def("Father",
(opencascade::handle<MAT2d_Connexion> (MAT2d_MiniPath::*)( const Standard_Integer ) ) static_cast<opencascade::handle<MAT2d_Connexion> (MAT2d_MiniPath::*)( const Standard_Integer ) >(&MAT2d_MiniPath::Father),
R"#(Returns the connexion which ends on line designed by <Index>.)#" , py::arg("Index")
)
// 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("Path",
(const MAT2d_SequenceOfConnexion & (MAT2d_MiniPath::*)() const) static_cast<const MAT2d_SequenceOfConnexion & (MAT2d_MiniPath::*)() const>(&MAT2d_MiniPath::Path),
R"#(Returns the sequence of connexions corresponding to the path.)#"
)
;
// Class MAT2d_Tool2d from ./opencascade/MAT2d_Tool2d.hxx
klass = m.attr("MAT2d_Tool2d");
// nested enums
static_cast<py::class_<MAT2d_Tool2d , shared_ptr<MAT2d_Tool2d> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Sense",
(void (MAT2d_Tool2d::*)( const MAT_Side ) ) static_cast<void (MAT2d_Tool2d::*)( const MAT_Side ) >(&MAT2d_Tool2d::Sense),
R"#(<aSide> defines the side of the computation of the map.)#" , py::arg("aside")
)
.def("SetJoinType",
(void (MAT2d_Tool2d::*)( const GeomAbs_JoinType ) ) static_cast<void (MAT2d_Tool2d::*)( const GeomAbs_JoinType ) >(&MAT2d_Tool2d::SetJoinType),
R"#(None)#" , py::arg("aJoinType")
)
.def("InitItems",
(void (MAT2d_Tool2d::*)( const opencascade::handle<MAT2d_Circuit> & ) ) static_cast<void (MAT2d_Tool2d::*)( const opencascade::handle<MAT2d_Circuit> & ) >(&MAT2d_Tool2d::InitItems),
R"#(InitItems cuts the line in Items. this Items are the geometrics representations of the BasicElts from MAT.)#" , py::arg("aCircuit")
)
.def("NumberOfItems",
(Standard_Integer (MAT2d_Tool2d::*)() const) static_cast<Standard_Integer (MAT2d_Tool2d::*)() const>(&MAT2d_Tool2d::NumberOfItems),
R"#(Returns the Number of Items .)#"
)
.def("ToleranceOfConfusion",
(Standard_Real (MAT2d_Tool2d::*)() const) static_cast<Standard_Real (MAT2d_Tool2d::*)() const>(&MAT2d_Tool2d::ToleranceOfConfusion),
R"#(Returns tolerance to test the confusion of two points.)#"
)
.def("FirstPoint",
(Standard_Integer (MAT2d_Tool2d::*)( const Standard_Integer , Standard_Real & ) ) static_cast<Standard_Integer (MAT2d_Tool2d::*)( const Standard_Integer , Standard_Real & ) >(&MAT2d_Tool2d::FirstPoint),
R"#(Creates the point at the origin of the bisector between anitem and the previous item. dist is the distance from the FirstPoint to <anitem>. Returns the index of this point in <theGeomPnts>.)#" , py::arg("anitem"), py::arg("dist")
)
.def("TangentBefore",
(Standard_Integer (MAT2d_Tool2d::*)( const Standard_Integer , const Standard_Boolean ) ) static_cast<Standard_Integer (MAT2d_Tool2d::*)( const Standard_Integer , const Standard_Boolean ) >(&MAT2d_Tool2d::TangentBefore),
R"#(Creates the Tangent at the end of the Item defined by <anitem>. Returns the index of this vector in <theGeomVecs>)#" , py::arg("anitem"), py::arg("IsOpenResult")
)
.def("TangentAfter",
(Standard_Integer (MAT2d_Tool2d::*)( const Standard_Integer , const Standard_Boolean ) ) static_cast<Standard_Integer (MAT2d_Tool2d::*)( const Standard_Integer , const Standard_Boolean ) >(&MAT2d_Tool2d::TangentAfter),
R"#(Creates the Reversed Tangent at the origin of the Item defined by <anitem>. Returns the index of this vector in <theGeomVecs>)#" , py::arg("anitem"), py::arg("IsOpenResult")
)
.def("Tangent",
(Standard_Integer (MAT2d_Tool2d::*)( const Standard_Integer ) ) static_cast<Standard_Integer (MAT2d_Tool2d::*)( const Standard_Integer ) >(&MAT2d_Tool2d::Tangent),
R"#(Creates the Tangent at the end of the bisector defined by <bisector>. Returns the index of this vector in <theGeomVecs>)#" , py::arg("bisector")
)
.def("CreateBisector",
(void (MAT2d_Tool2d::*)( const opencascade::handle<MAT_Bisector> & ) ) static_cast<void (MAT2d_Tool2d::*)( const opencascade::handle<MAT_Bisector> & ) >(&MAT2d_Tool2d::CreateBisector),
R"#(Creates the geometric bisector defined by <abisector>.)#" , py::arg("abisector")
)
.def("TrimBisector",
(Standard_Boolean (MAT2d_Tool2d::*)( const opencascade::handle<MAT_Bisector> & ) ) static_cast<Standard_Boolean (MAT2d_Tool2d::*)( const opencascade::handle<MAT_Bisector> & ) >(&MAT2d_Tool2d::TrimBisector),
R"#(Trims the geometric bisector by the <firstparameter> of <abisector>. If the parameter is out of the bisector, Return FALSE. else Return True.)#" , py::arg("abisector")
)
.def("TrimBisector",
(Standard_Boolean (MAT2d_Tool2d::*)( const opencascade::handle<MAT_Bisector> & , const Standard_Integer ) ) static_cast<Standard_Boolean (MAT2d_Tool2d::*)( const opencascade::handle<MAT_Bisector> & , const Standard_Integer ) >(&MAT2d_Tool2d::TrimBisector),
R"#(Trims the geometric bisector by the point of index <apoint> in <theGeomPnts>. If the point is out of the bisector, Return FALSE. else Return True.)#" , py::arg("abisector"), py::arg("apoint")
)
.def("IntersectBisector",
(Standard_Real (MAT2d_Tool2d::*)( const opencascade::handle<MAT_Bisector> & , const opencascade::handle<MAT_Bisector> & , Standard_Integer & ) ) static_cast<Standard_Real (MAT2d_Tool2d::*)( const opencascade::handle<MAT_Bisector> & , const opencascade::handle<MAT_Bisector> & , Standard_Integer & ) >(&MAT2d_Tool2d::IntersectBisector),
R"#(Computes the point of intersection between the bisectors defined by <bisectorone> and <bisectortwo> . If this point exists, <intpnt> is its index in <theGeomPnts> and Return the distance of the point from the bisector else Return <RealLast>.)#" , py::arg("bisectorone"), py::arg("bisectortwo"), py::arg("intpnt")
)
.def("Distance",
(Standard_Real (MAT2d_Tool2d::*)( const opencascade::handle<MAT_Bisector> & , const Standard_Real , const Standard_Real ) const) static_cast<Standard_Real (MAT2d_Tool2d::*)( const opencascade::handle<MAT_Bisector> & , const Standard_Real , const Standard_Real ) const>(&MAT2d_Tool2d::Distance),
R"#(Returns the distance between the two points designed by their parameters on <abisector>.)#" , py::arg("abisector"), py::arg("param1"), py::arg("param2")
)
.def("Dump",
(void (MAT2d_Tool2d::*)( const Standard_Integer , const Standard_Integer ) const) static_cast<void (MAT2d_Tool2d::*)( const Standard_Integer , const Standard_Integer ) const>(&MAT2d_Tool2d::Dump),
R"#(displays information about the bisector defined by <bisector>.)#" , py::arg("bisector"), py::arg("erease")
)
.def("GeomBis",
(const Bisector_Bisec & (MAT2d_Tool2d::*)( const Standard_Integer ) const) static_cast<const Bisector_Bisec & (MAT2d_Tool2d::*)( const Standard_Integer ) const>(&MAT2d_Tool2d::GeomBis),
R"#(Returns the <Bisec> of index <Index> in <theGeomBisectors>.)#" , py::arg("Index")
)
.def("GeomElt",
(opencascade::handle<Geom2d_Geometry> (MAT2d_Tool2d::*)( const Standard_Integer ) const) static_cast<opencascade::handle<Geom2d_Geometry> (MAT2d_Tool2d::*)( const Standard_Integer ) const>(&MAT2d_Tool2d::GeomElt),
R"#(Returns the Geometry of index <Index> in <theGeomElts>.)#" , py::arg("Index")
)
.def("GeomPnt",
(const gp_Pnt2d & (MAT2d_Tool2d::*)( const Standard_Integer ) const) static_cast<const gp_Pnt2d & (MAT2d_Tool2d::*)( const Standard_Integer ) const>(&MAT2d_Tool2d::GeomPnt),
R"#(Returns the point of index <Index> in the <theGeomPnts>.)#" , py::arg("Index")
)
.def("GeomVec",
(const gp_Vec2d & (MAT2d_Tool2d::*)( const Standard_Integer ) const) static_cast<const gp_Vec2d & (MAT2d_Tool2d::*)( const Standard_Integer ) const>(&MAT2d_Tool2d::GeomVec),
R"#(Returns the vector of index <Index> in the <theGeomVecs>.)#" , py::arg("Index")
)
.def("Circuit",
(opencascade::handle<MAT2d_Circuit> (MAT2d_Tool2d::*)() const) static_cast<opencascade::handle<MAT2d_Circuit> (MAT2d_Tool2d::*)() const>(&MAT2d_Tool2d::Circuit),
R"#(None)#"
)
.def("BisecFusion",
(void (MAT2d_Tool2d::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<void (MAT2d_Tool2d::*)( const Standard_Integer , const Standard_Integer ) >(&MAT2d_Tool2d::BisecFusion),
R"#(None)#" , py::arg("Index1"), py::arg("Index2")
)
.def("ChangeGeomBis",
(Bisector_Bisec & (MAT2d_Tool2d::*)( const Standard_Integer ) ) static_cast<Bisector_Bisec & (MAT2d_Tool2d::*)( const Standard_Integer ) >(&MAT2d_Tool2d::ChangeGeomBis),
R"#(Returns the <Bisec> of index <Index> in <theGeomBisectors>.)#" , py::arg("Index")
)
// 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/MAT2d_Array2OfConnexion.hxx
// ./opencascade/MAT2d_BiInt.hxx
// ./opencascade/MAT2d_Circuit.hxx
// ./opencascade/MAT2d_Connexion.hxx
// ./opencascade/MAT2d_CutCurve.hxx
// ./opencascade/MAT2d_DataMapIteratorOfDataMapOfBiIntInteger.hxx
// ./opencascade/MAT2d_DataMapIteratorOfDataMapOfBiIntSequenceOfInteger.hxx
// ./opencascade/MAT2d_DataMapIteratorOfDataMapOfIntegerBisec.hxx
// ./opencascade/MAT2d_DataMapIteratorOfDataMapOfIntegerConnexion.hxx
// ./opencascade/MAT2d_DataMapIteratorOfDataMapOfIntegerPnt2d.hxx
// ./opencascade/MAT2d_DataMapIteratorOfDataMapOfIntegerSequenceOfConnexion.hxx
// ./opencascade/MAT2d_DataMapIteratorOfDataMapOfIntegerVec2d.hxx
// ./opencascade/MAT2d_DataMapOfBiIntInteger.hxx
// ./opencascade/MAT2d_DataMapOfBiIntSequenceOfInteger.hxx
// ./opencascade/MAT2d_DataMapOfIntegerBisec.hxx
// ./opencascade/MAT2d_DataMapOfIntegerConnexion.hxx
// ./opencascade/MAT2d_DataMapOfIntegerPnt2d.hxx
// ./opencascade/MAT2d_DataMapOfIntegerSequenceOfConnexion.hxx
// ./opencascade/MAT2d_DataMapOfIntegerVec2d.hxx
// ./opencascade/MAT2d_Mat2d.hxx
// ./opencascade/MAT2d_MiniPath.hxx
// ./opencascade/MAT2d_SequenceOfConnexion.hxx
// ./opencascade/MAT2d_SequenceOfSequenceOfCurve.hxx
// ./opencascade/MAT2d_SequenceOfSequenceOfGeometry.hxx
// ./opencascade/MAT2d_Tool2d.hxx
// Additional functions
// operators
// register typdefs
register_template_NCollection_Array2<opencascade::handle<MAT2d_Connexion>>(m,"MAT2d_Array2OfConnexion");
register_template_NCollection_DataMap<MAT2d_BiInt, Standard_Integer>(m,"MAT2d_DataMapOfBiIntInteger");
register_template_NCollection_DataMap<MAT2d_BiInt, TColStd_SequenceOfInteger>(m,"MAT2d_DataMapOfBiIntSequenceOfInteger");
register_template_NCollection_DataMap<Standard_Integer, Bisector_Bisec>(m,"MAT2d_DataMapOfIntegerBisec");
register_template_NCollection_DataMap<Standard_Integer, gp_Pnt2d>(m,"MAT2d_DataMapOfIntegerPnt2d");
register_template_NCollection_DataMap<Standard_Integer, MAT2d_SequenceOfConnexion>(m,"MAT2d_DataMapOfIntegerSequenceOfConnexion");
register_template_NCollection_DataMap<Standard_Integer, gp_Vec2d>(m,"MAT2d_DataMapOfIntegerVec2d");
register_template_NCollection_Sequence<opencascade::handle<MAT2d_Connexion>>(m,"MAT2d_SequenceOfConnexion");
register_template_NCollection_Sequence<TColGeom2d_SequenceOfCurve>(m,"MAT2d_SequenceOfSequenceOfCurve");
register_template_NCollection_Sequence<TColGeom2d_SequenceOfGeometry>(m,"MAT2d_SequenceOfSequenceOfGeometry");
// exceptions
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|