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
|
// 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 <gp_Pnt.hxx>
#include <gp_XYZ.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 <Intf_Polygon2d.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 <gp_Lin2d.hxx>
#include <Bnd_Box2d.hxx>
#include <gp_Hypr2d.hxx>
#include <gp_Parab2d.hxx>
#include <gp_Lin.hxx>
#include <Bnd_Box.hxx>
#include <gp_Hypr.hxx>
#include <gp_Parab.hxx>
// module includes
#include <Intf.hxx>
#include <Intf_Array1OfLin.hxx>
#include <Intf_Interference.hxx>
#include <Intf_InterferencePolygon2d.hxx>
#include <Intf_PIType.hxx>
#include <Intf_Polygon2d.hxx>
#include <Intf_SectionLine.hxx>
#include <Intf_SectionPoint.hxx>
#include <Intf_SeqOfSectionLine.hxx>
#include <Intf_SeqOfSectionPoint.hxx>
#include <Intf_SeqOfTangentZone.hxx>
#include <Intf_TangentZone.hxx>
#include <Intf_Tool.hxx>
// template related includes
// ./opencascade/Intf_Array1OfLin.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/Intf_SeqOfSectionLine.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/Intf_SeqOfSectionPoint.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/Intf_SeqOfTangentZone.hxx
#include "NCollection_tmpl.hxx"
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_Intf(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("Intf"));
py::object klass;
//Python trampoline classes
class Py_Intf_Polygon2d : public Intf_Polygon2d{
public:
using Intf_Polygon2d::Intf_Polygon2d;
// public pure virtual
Standard_Real DeflectionOverEstimation() const override { PYBIND11_OVERLOAD_PURE(Standard_Real,Intf_Polygon2d,DeflectionOverEstimation,) };
Standard_Integer NbSegments() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,Intf_Polygon2d,NbSegments,) };
void Segment(const Standard_Integer theIndex,gp_Pnt2d & theBegin,gp_Pnt2d & theEnd) const override { PYBIND11_OVERLOAD_PURE(void,Intf_Polygon2d,Segment,theIndex,theBegin,theEnd) };
// protected pure virtual
// private pure virtual
};
// classes
// Class Intf from ./opencascade/Intf.hxx
klass = m.attr("Intf");
// default constructor
register_default_constructor<Intf , shared_ptr<Intf>>(m,"Intf");
// nested enums
static_cast<py::class_<Intf , shared_ptr<Intf> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("Contain_s",
(Standard_Boolean (*)( const gp_Pnt & , const gp_Pnt & , const gp_Pnt & , const gp_Pnt & ) ) static_cast<Standard_Boolean (*)( const gp_Pnt & , const gp_Pnt & , const gp_Pnt & , const gp_Pnt & ) >(&Intf::Contain),
R"#(Compute if the triangle <P1> <P2> <P3> contain <ThePnt>.)#" , py::arg("P1"), py::arg("P2"), py::arg("P3"), py::arg("ThePnt")
)
// static methods using call by reference i.s.o. return
.def_static("PlaneEquation_s",
[](const gp_Pnt & P1,const gp_Pnt & P2,const gp_Pnt & P3,gp_XYZ & NormalVector ){
Standard_Real PolarDistance;
Intf::PlaneEquation(P1,P2,P3,NormalVector,PolarDistance);
return std::make_tuple(PolarDistance); },
R"#(Computes the interference between two polygons in 2d. Result : points of intersections and zones of tangence. Computes the interference between a polygon or a straight line and a polyhedron. Points of intersection and zones of tangence. Give the plane equation of the triangle <P1> <P2> <P3>.)#" , py::arg("P1"), py::arg("P2"), py::arg("P3"), py::arg("NormalVector")
)
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class Intf_Interference from ./opencascade/Intf_Interference.hxx
klass = m.attr("Intf_Interference");
// nested enums
static_cast<py::class_<Intf_Interference , shared_ptr_nodelete<Intf_Interference> >>(klass)
// constructors
// custom constructors
// methods
.def("NbSectionPoints",
(Standard_Integer (Intf_Interference::*)() const) static_cast<Standard_Integer (Intf_Interference::*)() const>(&Intf_Interference::NbSectionPoints),
R"#(Gives the number of points of intersection in the interference.)#"
)
.def("PntValue",
(const Intf_SectionPoint & (Intf_Interference::*)( const Standard_Integer ) const) static_cast<const Intf_SectionPoint & (Intf_Interference::*)( const Standard_Integer ) const>(&Intf_Interference::PntValue),
R"#(Gives the point of intersection of address Index in the interference.)#" , py::arg("Index")
)
.def("NbSectionLines",
(Standard_Integer (Intf_Interference::*)() const) static_cast<Standard_Integer (Intf_Interference::*)() const>(&Intf_Interference::NbSectionLines),
R"#(Gives the number of polylines of intersection in the interference.)#"
)
.def("LineValue",
(const Intf_SectionLine & (Intf_Interference::*)( const Standard_Integer ) const) static_cast<const Intf_SectionLine & (Intf_Interference::*)( const Standard_Integer ) const>(&Intf_Interference::LineValue),
R"#(Gives the polyline of intersection at address <Index> in the interference.)#" , py::arg("Index")
)
.def("NbTangentZones",
(Standard_Integer (Intf_Interference::*)() const) static_cast<Standard_Integer (Intf_Interference::*)() const>(&Intf_Interference::NbTangentZones),
R"#(Gives the number of zones of tangence in the interference.)#"
)
.def("ZoneValue",
(const Intf_TangentZone & (Intf_Interference::*)( const Standard_Integer ) const) static_cast<const Intf_TangentZone & (Intf_Interference::*)( const Standard_Integer ) const>(&Intf_Interference::ZoneValue),
R"#(Gives the zone of tangence at address Index in the interference.)#" , py::arg("Index")
)
.def("GetTolerance",
(Standard_Real (Intf_Interference::*)() const) static_cast<Standard_Real (Intf_Interference::*)() const>(&Intf_Interference::GetTolerance),
R"#(Gives the tolerance used for the calculation.)#"
)
.def("Contains",
(Standard_Boolean (Intf_Interference::*)( const Intf_SectionPoint & ) const) static_cast<Standard_Boolean (Intf_Interference::*)( const Intf_SectionPoint & ) const>(&Intf_Interference::Contains),
R"#(Tests if the polylines of intersection or the zones of tangence contain the point of intersection <ThePnt>.)#" , py::arg("ThePnt")
)
.def("Insert",
(Standard_Boolean (Intf_Interference::*)( const Intf_TangentZone & ) ) static_cast<Standard_Boolean (Intf_Interference::*)( const Intf_TangentZone & ) >(&Intf_Interference::Insert),
R"#(Inserts a new zone of tangence in the current list of tangent zones of the interference and returns True when done.)#" , py::arg("TheZone")
)
.def("Insert",
(void (Intf_Interference::*)( const Intf_SectionPoint & , const Intf_SectionPoint & ) ) static_cast<void (Intf_Interference::*)( const Intf_SectionPoint & , const Intf_SectionPoint & ) >(&Intf_Interference::Insert),
R"#(Insert a new segment of intersection in the current list of polylines of intersection of the interference.)#" , py::arg("pdeb"), py::arg("pfin")
)
.def("Dump",
(void (Intf_Interference::*)() const) static_cast<void (Intf_Interference::*)() const>(&Intf_Interference::Dump),
R"#(None)#"
)
.def("NbSectionPoints",
(Standard_Integer (Intf_Interference::*)() const) static_cast<Standard_Integer (Intf_Interference::*)() const>(&Intf_Interference::NbSectionPoints),
R"#(Gives the number of points of intersection in the interference.)#"
)
.def("PntValue",
(const Intf_SectionPoint & (Intf_Interference::*)( const Standard_Integer ) const) static_cast<const Intf_SectionPoint & (Intf_Interference::*)( const Standard_Integer ) const>(&Intf_Interference::PntValue),
R"#(Gives the point of intersection of address Index in the interference.)#" , py::arg("Index")
)
.def("NbSectionLines",
(Standard_Integer (Intf_Interference::*)() const) static_cast<Standard_Integer (Intf_Interference::*)() const>(&Intf_Interference::NbSectionLines),
R"#(Gives the number of polylines of intersection in the interference.)#"
)
.def("LineValue",
(const Intf_SectionLine & (Intf_Interference::*)( const Standard_Integer ) const) static_cast<const Intf_SectionLine & (Intf_Interference::*)( const Standard_Integer ) const>(&Intf_Interference::LineValue),
R"#(Gives the polyline of intersection at address <Index> in the interference.)#" , py::arg("Index")
)
.def("NbTangentZones",
(Standard_Integer (Intf_Interference::*)() const) static_cast<Standard_Integer (Intf_Interference::*)() const>(&Intf_Interference::NbTangentZones),
R"#(Gives the number of zones of tangence in the interference.)#"
)
.def("ZoneValue",
(const Intf_TangentZone & (Intf_Interference::*)( const Standard_Integer ) const) static_cast<const Intf_TangentZone & (Intf_Interference::*)( const Standard_Integer ) const>(&Intf_Interference::ZoneValue),
R"#(Gives the zone of tangence at address Index in the interference.)#" , py::arg("Index")
)
.def("GetTolerance",
(Standard_Real (Intf_Interference::*)() const) static_cast<Standard_Real (Intf_Interference::*)() const>(&Intf_Interference::GetTolerance),
R"#(Gives the tolerance used for the calculation.)#"
)
// 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 Intf_Polygon2d from ./opencascade/Intf_Polygon2d.hxx
klass = m.attr("Intf_Polygon2d");
// nested enums
static_cast<py::class_<Intf_Polygon2d , shared_ptr<Intf_Polygon2d> ,Py_Intf_Polygon2d >>(klass)
// constructors
// custom constructors
// methods
.def("Closed",
(Standard_Boolean (Intf_Polygon2d::*)() const) static_cast<Standard_Boolean (Intf_Polygon2d::*)() const>(&Intf_Polygon2d::Closed),
R"#(Returns True if the polyline is closed.)#"
)
.def("DeflectionOverEstimation",
(Standard_Real (Intf_Polygon2d::*)() const) static_cast<Standard_Real (Intf_Polygon2d::*)() const>(&Intf_Polygon2d::DeflectionOverEstimation),
R"#(Returns the tolerance of the polygon.)#"
)
.def("NbSegments",
(Standard_Integer (Intf_Polygon2d::*)() const) static_cast<Standard_Integer (Intf_Polygon2d::*)() const>(&Intf_Polygon2d::NbSegments),
R"#(Returns the number of Segments in the polyline.)#"
)
.def("Segment",
(void (Intf_Polygon2d::*)( const Standard_Integer , gp_Pnt2d & , gp_Pnt2d & ) const) static_cast<void (Intf_Polygon2d::*)( const Standard_Integer , gp_Pnt2d & , gp_Pnt2d & ) const>(&Intf_Polygon2d::Segment),
R"#(Returns the points of the segment <Index> in the Polygon.)#" , py::arg("theIndex"), py::arg("theBegin"), py::arg("theEnd")
)
// 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("Bounding",
(const Bnd_Box2d & (Intf_Polygon2d::*)() const) static_cast<const Bnd_Box2d & (Intf_Polygon2d::*)() const>(&Intf_Polygon2d::Bounding),
R"#(Returns the bounding box of the polygon.)#"
)
.def("Bounding",
(const Bnd_Box2d & (Intf_Polygon2d::*)() const) static_cast<const Bnd_Box2d & (Intf_Polygon2d::*)() const>(&Intf_Polygon2d::Bounding),
R"#(Returns the bounding box of the polygon.)#"
)
;
// Class Intf_SectionLine from ./opencascade/Intf_SectionLine.hxx
klass = m.attr("Intf_SectionLine");
// nested enums
static_cast<py::class_<Intf_SectionLine , shared_ptr<Intf_SectionLine> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const Intf_SectionLine & >() , py::arg("Other") )
// custom constructors
// methods
.def("NumberOfPoints",
(Standard_Integer (Intf_SectionLine::*)() const) static_cast<Standard_Integer (Intf_SectionLine::*)() const>(&Intf_SectionLine::NumberOfPoints),
R"#(Returns number of points in this SectionLine.)#"
)
.def("GetPoint",
(const Intf_SectionPoint & (Intf_SectionLine::*)( const Standard_Integer ) const) static_cast<const Intf_SectionPoint & (Intf_SectionLine::*)( const Standard_Integer ) const>(&Intf_SectionLine::GetPoint),
R"#(Gives the point of intersection of address <Index> in the SectionLine.)#" , py::arg("Index")
)
.def("IsClosed",
(Standard_Boolean (Intf_SectionLine::*)() const) static_cast<Standard_Boolean (Intf_SectionLine::*)() const>(&Intf_SectionLine::IsClosed),
R"#(Returns True if the SectionLine is closed.)#"
)
.def("Contains",
(Standard_Boolean (Intf_SectionLine::*)( const Intf_SectionPoint & ) const) static_cast<Standard_Boolean (Intf_SectionLine::*)( const Intf_SectionPoint & ) const>(&Intf_SectionLine::Contains),
R"#(Returns True if ThePI is in the SectionLine <me>.)#" , py::arg("ThePI")
)
.def("IsEnd",
(Standard_Integer (Intf_SectionLine::*)( const Intf_SectionPoint & ) const) static_cast<Standard_Integer (Intf_SectionLine::*)( const Intf_SectionPoint & ) const>(&Intf_SectionLine::IsEnd),
R"#(Checks if <ThePI> is an end of the SectionLine. Returns 1 for the beginning, 2 for the end, otherwise 0.)#" , py::arg("ThePI")
)
.def("IsEqual",
(Standard_Boolean (Intf_SectionLine::*)( const Intf_SectionLine & ) const) static_cast<Standard_Boolean (Intf_SectionLine::*)( const Intf_SectionLine & ) const>(&Intf_SectionLine::IsEqual),
R"#(Compares two SectionLines.)#" , py::arg("Other")
)
.def("Append",
(void (Intf_SectionLine::*)( const Intf_SectionPoint & ) ) static_cast<void (Intf_SectionLine::*)( const Intf_SectionPoint & ) >(&Intf_SectionLine::Append),
R"#(Adds a point at the end of the SectionLine.)#" , py::arg("Pi")
)
.def("Append",
(void (Intf_SectionLine::*)( Intf_SectionLine & ) ) static_cast<void (Intf_SectionLine::*)( Intf_SectionLine & ) >(&Intf_SectionLine::Append),
R"#(Concatenates the SectionLine <LS> at the end of the SectionLine <me>.)#" , py::arg("LS")
)
.def("Prepend",
(void (Intf_SectionLine::*)( const Intf_SectionPoint & ) ) static_cast<void (Intf_SectionLine::*)( const Intf_SectionPoint & ) >(&Intf_SectionLine::Prepend),
R"#(Adds a point to the beginning of the SectionLine <me>.)#" , py::arg("Pi")
)
.def("Prepend",
(void (Intf_SectionLine::*)( Intf_SectionLine & ) ) static_cast<void (Intf_SectionLine::*)( Intf_SectionLine & ) >(&Intf_SectionLine::Prepend),
R"#(Concatenates a SectionLine <LS> at the beginning of the SectionLine <me>.)#" , py::arg("LS")
)
.def("Reverse",
(void (Intf_SectionLine::*)() ) static_cast<void (Intf_SectionLine::*)() >(&Intf_SectionLine::Reverse),
R"#(Reverses the order of the elements of the SectionLine.)#"
)
.def("Close",
(void (Intf_SectionLine::*)() ) static_cast<void (Intf_SectionLine::*)() >(&Intf_SectionLine::Close),
R"#(Closes the SectionLine.)#"
)
.def("Dump",
(void (Intf_SectionLine::*)( const Standard_Integer ) const) static_cast<void (Intf_SectionLine::*)( const Standard_Integer ) const>(&Intf_SectionLine::Dump),
R"#(None)#" , py::arg("Indent")
)
.def("NumberOfPoints",
(Standard_Integer (Intf_SectionLine::*)() const) static_cast<Standard_Integer (Intf_SectionLine::*)() const>(&Intf_SectionLine::NumberOfPoints),
R"#(Returns number of points in this SectionLine.)#"
)
// 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 Intf_SectionPoint from ./opencascade/Intf_SectionPoint.hxx
klass = m.attr("Intf_SectionPoint");
// nested enums
static_cast<py::class_<Intf_SectionPoint , shared_ptr<Intf_SectionPoint> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const gp_Pnt &,const Intf_PIType,const Standard_Integer,const Standard_Integer,const Standard_Real,const Intf_PIType,const Standard_Integer,const Standard_Integer,const Standard_Real,const Standard_Real >() , py::arg("Where"), py::arg("DimeO"), py::arg("AddrO1"), py::arg("AddrO2"), py::arg("ParamO"), py::arg("DimeT"), py::arg("AddrT1"), py::arg("AddrT2"), py::arg("ParamT"), py::arg("Incid") )
.def(py::init< const gp_Pnt2d &,const Intf_PIType,const Standard_Integer,const Standard_Real,const Intf_PIType,const Standard_Integer,const Standard_Real,const Standard_Real >() , py::arg("Where"), py::arg("DimeO"), py::arg("AddrO1"), py::arg("ParamO"), py::arg("DimeT"), py::arg("AddrT1"), py::arg("ParamT"), py::arg("Incid") )
// custom constructors
// methods
.def("ParamOnFirst",
(Standard_Real (Intf_SectionPoint::*)() const) static_cast<Standard_Real (Intf_SectionPoint::*)() const>(&Intf_SectionPoint::ParamOnFirst),
R"#(Returns the cumulated Parameter of the SectionPoint on the first element.)#"
)
.def("ParamOnSecond",
(Standard_Real (Intf_SectionPoint::*)() const) static_cast<Standard_Real (Intf_SectionPoint::*)() const>(&Intf_SectionPoint::ParamOnSecond),
R"#(Returns the cumulated Parameter of the section point on the second element.)#"
)
.def("TypeOnFirst",
(Intf_PIType (Intf_SectionPoint::*)() const) static_cast<Intf_PIType (Intf_SectionPoint::*)() const>(&Intf_SectionPoint::TypeOnFirst),
R"#(Returns the type of the section point on the first element.)#"
)
.def("TypeOnSecond",
(Intf_PIType (Intf_SectionPoint::*)() const) static_cast<Intf_PIType (Intf_SectionPoint::*)() const>(&Intf_SectionPoint::TypeOnSecond),
R"#(Returns the type of the section point on the second element.)#"
)
.def("Incidence",
(Standard_Real (Intf_SectionPoint::*)() const) static_cast<Standard_Real (Intf_SectionPoint::*)() const>(&Intf_SectionPoint::Incidence),
R"#(Gives the incidence at this section point. The incidence between the two triangles is given by the cosine. The best incidence is 0. (PI/2). The worst is 1. (null angle).)#"
)
.def("IsEqual",
(Standard_Boolean (Intf_SectionPoint::*)( const Intf_SectionPoint & ) const) static_cast<Standard_Boolean (Intf_SectionPoint::*)( const Intf_SectionPoint & ) const>(&Intf_SectionPoint::IsEqual),
R"#(Returns True if the two SectionPoint have the same logical information.)#" , py::arg("Other")
)
.def("IsOnSameEdge",
(Standard_Boolean (Intf_SectionPoint::*)( const Intf_SectionPoint & ) const) static_cast<Standard_Boolean (Intf_SectionPoint::*)( const Intf_SectionPoint & ) const>(&Intf_SectionPoint::IsOnSameEdge),
R"#(Returns True if the two SectionPoints are on the same edge of the first or the second element.)#" , py::arg("Other")
)
.def("Merge",
(void (Intf_SectionPoint::*)( Intf_SectionPoint & ) ) static_cast<void (Intf_SectionPoint::*)( Intf_SectionPoint & ) >(&Intf_SectionPoint::Merge),
R"#(Merges two SectionPoints.)#" , py::arg("Other")
)
.def("Dump",
(void (Intf_SectionPoint::*)( const Standard_Integer ) const) static_cast<void (Intf_SectionPoint::*)( const Standard_Integer ) const>(&Intf_SectionPoint::Dump),
R"#(None)#" , py::arg("Indent")
)
.def("ParamOnFirst",
(Standard_Real (Intf_SectionPoint::*)() const) static_cast<Standard_Real (Intf_SectionPoint::*)() const>(&Intf_SectionPoint::ParamOnFirst),
R"#(Returns the cumulated Parameter of the SectionPoint on the first element.)#"
)
.def("ParamOnSecond",
(Standard_Real (Intf_SectionPoint::*)() const) static_cast<Standard_Real (Intf_SectionPoint::*)() const>(&Intf_SectionPoint::ParamOnSecond),
R"#(Returns the cumulated Parameter of the section point on the second element.)#"
)
.def("TypeOnFirst",
(Intf_PIType (Intf_SectionPoint::*)() const) static_cast<Intf_PIType (Intf_SectionPoint::*)() const>(&Intf_SectionPoint::TypeOnFirst),
R"#(Returns the type of the section point on the first element.)#"
)
.def("TypeOnSecond",
(Intf_PIType (Intf_SectionPoint::*)() const) static_cast<Intf_PIType (Intf_SectionPoint::*)() const>(&Intf_SectionPoint::TypeOnSecond),
R"#(Returns the type of the section point on the second element.)#"
)
.def("IsEqual",
(Standard_Boolean (Intf_SectionPoint::*)( const Intf_SectionPoint & ) const) static_cast<Standard_Boolean (Intf_SectionPoint::*)( const Intf_SectionPoint & ) const>(&Intf_SectionPoint::IsEqual),
R"#(Returns True if the two SectionPoint have the same logical information.)#" , py::arg("Other")
)
// methods using call by reference i.s.o. return
.def("InfoFirst",
[]( Intf_SectionPoint &self , Intf_PIType & Dim ){
Standard_Integer Add1;
Standard_Integer Add2;
Standard_Real Param;
self.InfoFirst(Dim,Add1,Add2,Param);
return std::make_tuple(Add1,Add2,Param); },
R"#(None)#" , py::arg("Dim")
)
.def("InfoFirst",
[]( Intf_SectionPoint &self , Intf_PIType & Dim ){
Standard_Integer Addr;
Standard_Real Param;
self.InfoFirst(Dim,Addr,Param);
return std::make_tuple(Addr,Param); },
R"#(Gives the data about the first argument of the Interference.)#" , py::arg("Dim")
)
.def("InfoSecond",
[]( Intf_SectionPoint &self , Intf_PIType & Dim ){
Standard_Integer Add1;
Standard_Integer Add2;
Standard_Real Param;
self.InfoSecond(Dim,Add1,Add2,Param);
return std::make_tuple(Add1,Add2,Param); },
R"#(None)#" , py::arg("Dim")
)
.def("InfoSecond",
[]( Intf_SectionPoint &self , Intf_PIType & Dim ){
Standard_Integer Addr;
Standard_Real Param;
self.InfoSecond(Dim,Addr,Param);
return std::make_tuple(Addr,Param); },
R"#(Gives the data about the second argument of the Interference.)#" , py::arg("Dim")
)
// 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("Pnt",
(const gp_Pnt & (Intf_SectionPoint::*)() const) static_cast<const gp_Pnt & (Intf_SectionPoint::*)() const>(&Intf_SectionPoint::Pnt),
R"#(Returns the location of the SectionPoint.)#"
)
;
// Class Intf_TangentZone from ./opencascade/Intf_TangentZone.hxx
klass = m.attr("Intf_TangentZone");
// nested enums
static_cast<py::class_<Intf_TangentZone , shared_ptr<Intf_TangentZone> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("NumberOfPoints",
(Standard_Integer (Intf_TangentZone::*)() const) static_cast<Standard_Integer (Intf_TangentZone::*)() const>(&Intf_TangentZone::NumberOfPoints),
R"#(Returns number of SectionPoint in this TangentZone.)#"
)
.def("GetPoint",
(const Intf_SectionPoint & (Intf_TangentZone::*)( const Standard_Integer ) const) static_cast<const Intf_SectionPoint & (Intf_TangentZone::*)( const Standard_Integer ) const>(&Intf_TangentZone::GetPoint),
R"#(Gives the SectionPoint of address <Index> in the TangentZone.)#" , py::arg("Index")
)
.def("IsEqual",
(Standard_Boolean (Intf_TangentZone::*)( const Intf_TangentZone & ) const) static_cast<Standard_Boolean (Intf_TangentZone::*)( const Intf_TangentZone & ) const>(&Intf_TangentZone::IsEqual),
R"#(Compares two TangentZones.)#" , py::arg("Other")
)
.def("Contains",
(Standard_Boolean (Intf_TangentZone::*)( const Intf_SectionPoint & ) const) static_cast<Standard_Boolean (Intf_TangentZone::*)( const Intf_SectionPoint & ) const>(&Intf_TangentZone::Contains),
R"#(Checks if <ThePI> is in TangentZone.)#" , py::arg("ThePI")
)
.def("RangeContains",
(Standard_Boolean (Intf_TangentZone::*)( const Intf_SectionPoint & ) const) static_cast<Standard_Boolean (Intf_TangentZone::*)( const Intf_SectionPoint & ) const>(&Intf_TangentZone::RangeContains),
R"#(Returns True if <ThePI> is in the parameter range of the TangentZone.)#" , py::arg("ThePI")
)
.def("HasCommonRange",
(Standard_Boolean (Intf_TangentZone::*)( const Intf_TangentZone & ) const) static_cast<Standard_Boolean (Intf_TangentZone::*)( const Intf_TangentZone & ) const>(&Intf_TangentZone::HasCommonRange),
R"#(Returns True if the TangentZone <Other> has a common part with <me>.)#" , py::arg("Other")
)
.def("Append",
(void (Intf_TangentZone::*)( const Intf_SectionPoint & ) ) static_cast<void (Intf_TangentZone::*)( const Intf_SectionPoint & ) >(&Intf_TangentZone::Append),
R"#(Adds a SectionPoint to the TangentZone.)#" , py::arg("Pi")
)
.def("Append",
(void (Intf_TangentZone::*)( const Intf_TangentZone & ) ) static_cast<void (Intf_TangentZone::*)( const Intf_TangentZone & ) >(&Intf_TangentZone::Append),
R"#(Adds the TangentZone <Tzi> to <me>.)#" , py::arg("Tzi")
)
.def("Insert",
(Standard_Boolean (Intf_TangentZone::*)( const Intf_SectionPoint & ) ) static_cast<Standard_Boolean (Intf_TangentZone::*)( const Intf_SectionPoint & ) >(&Intf_TangentZone::Insert),
R"#(Inserts a SectionPoint in the TangentZone.)#" , py::arg("Pi")
)
.def("PolygonInsert",
(void (Intf_TangentZone::*)( const Intf_SectionPoint & ) ) static_cast<void (Intf_TangentZone::*)( const Intf_SectionPoint & ) >(&Intf_TangentZone::PolygonInsert),
R"#(Inserts a point in the polygonal TangentZone.)#" , py::arg("Pi")
)
.def("InsertBefore",
(void (Intf_TangentZone::*)( const Standard_Integer , const Intf_SectionPoint & ) ) static_cast<void (Intf_TangentZone::*)( const Standard_Integer , const Intf_SectionPoint & ) >(&Intf_TangentZone::InsertBefore),
R"#(Inserts a SectionPoint before <Index> in the TangentZone.)#" , py::arg("Index"), py::arg("Pi")
)
.def("InsertAfter",
(void (Intf_TangentZone::*)( const Standard_Integer , const Intf_SectionPoint & ) ) static_cast<void (Intf_TangentZone::*)( const Standard_Integer , const Intf_SectionPoint & ) >(&Intf_TangentZone::InsertAfter),
R"#(Inserts a SectionPoint after <Index> in the TangentZone.)#" , py::arg("Index"), py::arg("Pi")
)
.def("Dump",
(void (Intf_TangentZone::*)( const Standard_Integer ) const) static_cast<void (Intf_TangentZone::*)( const Standard_Integer ) const>(&Intf_TangentZone::Dump),
R"#(None)#" , py::arg("Indent")
)
.def("NumberOfPoints",
(Standard_Integer (Intf_TangentZone::*)() const) static_cast<Standard_Integer (Intf_TangentZone::*)() const>(&Intf_TangentZone::NumberOfPoints),
R"#(Returns number of SectionPoint in this TangentZone.)#"
)
// methods using call by reference i.s.o. return
.def("ParamOnFirst",
[]( Intf_TangentZone &self ){
Standard_Real paraMin;
Standard_Real paraMax;
self.ParamOnFirst(paraMin,paraMax);
return std::make_tuple(paraMin,paraMax); },
R"#(Gives the parameter range of the TangentZone on the first argument of the Interference. (Usable only for polygon))#"
)
.def("ParamOnSecond",
[]( Intf_TangentZone &self ){
Standard_Real paraMin;
Standard_Real paraMax;
self.ParamOnSecond(paraMin,paraMax);
return std::make_tuple(paraMin,paraMax); },
R"#(Gives the parameter range of the TangentZone on the second argument of the Interference. (Usable only for polygon))#"
)
.def("InfoFirst",
[]( Intf_TangentZone &self ){
Standard_Integer segMin;
Standard_Real paraMin;
Standard_Integer segMax;
Standard_Real paraMax;
self.InfoFirst(segMin,paraMin,segMax,paraMax);
return std::make_tuple(segMin,paraMin,segMax,paraMax); },
R"#(Gives information about the first argument of the Interference. (Usable only for polygon))#"
)
.def("InfoSecond",
[]( Intf_TangentZone &self ){
Standard_Integer segMin;
Standard_Real paraMin;
Standard_Integer segMax;
Standard_Real paraMax;
self.InfoSecond(segMin,paraMin,segMax,paraMax);
return std::make_tuple(segMin,paraMin,segMax,paraMax); },
R"#(Gives information about the second argument of the Interference. (Usable only for polygon))#"
)
.def("ParamOnFirst",
[]( Intf_TangentZone &self ){
Standard_Real paraMin;
Standard_Real paraMax;
self.ParamOnFirst(paraMin,paraMax);
return std::make_tuple(paraMin,paraMax); },
R"#(Gives the parameter range of the TangentZone on the first argument of the Interference. (Usable only for polygon))#"
)
.def("ParamOnSecond",
[]( Intf_TangentZone &self ){
Standard_Real paraMin;
Standard_Real paraMax;
self.ParamOnSecond(paraMin,paraMax);
return std::make_tuple(paraMin,paraMax); },
R"#(Gives the parameter range of the TangentZone on the second argument of the Interference. (Usable only for polygon))#"
)
// 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 Intf_Tool from ./opencascade/Intf_Tool.hxx
klass = m.attr("Intf_Tool");
// nested enums
static_cast<py::class_<Intf_Tool , shared_ptr<Intf_Tool> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Lin2dBox",
(void (Intf_Tool::*)( const gp_Lin2d & , const Bnd_Box2d & , Bnd_Box2d & ) ) static_cast<void (Intf_Tool::*)( const gp_Lin2d & , const Bnd_Box2d & , Bnd_Box2d & ) >(&Intf_Tool::Lin2dBox),
R"#(None)#" , py::arg("theLin2d"), py::arg("bounding"), py::arg("boxLin")
)
.def("Hypr2dBox",
(void (Intf_Tool::*)( const gp_Hypr2d & , const Bnd_Box2d & , Bnd_Box2d & ) ) static_cast<void (Intf_Tool::*)( const gp_Hypr2d & , const Bnd_Box2d & , Bnd_Box2d & ) >(&Intf_Tool::Hypr2dBox),
R"#(None)#" , py::arg("theHypr2d"), py::arg("bounding"), py::arg("boxHypr")
)
.def("Parab2dBox",
(void (Intf_Tool::*)( const gp_Parab2d & , const Bnd_Box2d & , Bnd_Box2d & ) ) static_cast<void (Intf_Tool::*)( const gp_Parab2d & , const Bnd_Box2d & , Bnd_Box2d & ) >(&Intf_Tool::Parab2dBox),
R"#(None)#" , py::arg("theParab2d"), py::arg("bounding"), py::arg("boxHypr")
)
.def("LinBox",
(void (Intf_Tool::*)( const gp_Lin & , const Bnd_Box & , Bnd_Box & ) ) static_cast<void (Intf_Tool::*)( const gp_Lin & , const Bnd_Box & , Bnd_Box & ) >(&Intf_Tool::LinBox),
R"#(None)#" , py::arg("theLin"), py::arg("bounding"), py::arg("boxLin")
)
.def("HyprBox",
(void (Intf_Tool::*)( const gp_Hypr & , const Bnd_Box & , Bnd_Box & ) ) static_cast<void (Intf_Tool::*)( const gp_Hypr & , const Bnd_Box & , Bnd_Box & ) >(&Intf_Tool::HyprBox),
R"#(None)#" , py::arg("theHypr"), py::arg("bounding"), py::arg("boxHypr")
)
.def("ParabBox",
(void (Intf_Tool::*)( const gp_Parab & , const Bnd_Box & , Bnd_Box & ) ) static_cast<void (Intf_Tool::*)( const gp_Parab & , const Bnd_Box & , Bnd_Box & ) >(&Intf_Tool::ParabBox),
R"#(None)#" , py::arg("theParab"), py::arg("bounding"), py::arg("boxHypr")
)
.def("NbSegments",
(Standard_Integer (Intf_Tool::*)() const) static_cast<Standard_Integer (Intf_Tool::*)() const>(&Intf_Tool::NbSegments),
R"#(None)#"
)
.def("BeginParam",
(Standard_Real (Intf_Tool::*)( const Standard_Integer ) const) static_cast<Standard_Real (Intf_Tool::*)( const Standard_Integer ) const>(&Intf_Tool::BeginParam),
R"#(None)#" , py::arg("SegmentNum")
)
.def("EndParam",
(Standard_Real (Intf_Tool::*)( const Standard_Integer ) const) static_cast<Standard_Real (Intf_Tool::*)( const Standard_Integer ) const>(&Intf_Tool::EndParam),
R"#(None)#" , py::arg("SegmentNum")
)
// 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 Intf_InterferencePolygon2d from ./opencascade/Intf_InterferencePolygon2d.hxx
klass = m.attr("Intf_InterferencePolygon2d");
// nested enums
static_cast<py::class_<Intf_InterferencePolygon2d , shared_ptr<Intf_InterferencePolygon2d> , Intf_Interference >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const Intf_Polygon2d &,const Intf_Polygon2d & >() , py::arg("Obje1"), py::arg("Obje2") )
.def(py::init< const Intf_Polygon2d & >() , py::arg("Obje") )
// custom constructors
// methods
.def("Perform",
(void (Intf_InterferencePolygon2d::*)( const Intf_Polygon2d & , const Intf_Polygon2d & ) ) static_cast<void (Intf_InterferencePolygon2d::*)( const Intf_Polygon2d & , const Intf_Polygon2d & ) >(&Intf_InterferencePolygon2d::Perform),
R"#(Computes an interference between two Polygons.)#" , py::arg("Obje1"), py::arg("Obje2")
)
.def("Perform",
(void (Intf_InterferencePolygon2d::*)( const Intf_Polygon2d & ) ) static_cast<void (Intf_InterferencePolygon2d::*)( const Intf_Polygon2d & ) >(&Intf_InterferencePolygon2d::Perform),
R"#(Computes the self interference of a Polygon.)#" , py::arg("Obje")
)
.def("Pnt2dValue",
(gp_Pnt2d (Intf_InterferencePolygon2d::*)( const Standard_Integer ) const) static_cast<gp_Pnt2d (Intf_InterferencePolygon2d::*)( const Standard_Integer ) const>(&Intf_InterferencePolygon2d::Pnt2dValue),
R"#(Gives the geometrical 2d point of the intersection point at address <Index> in the interference.)#" , 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/Intf.hxx
// ./opencascade/Intf_Array1OfLin.hxx
// ./opencascade/Intf_Interference.hxx
// ./opencascade/Intf_InterferencePolygon2d.hxx
// ./opencascade/Intf_PIType.hxx
// ./opencascade/Intf_Polygon2d.hxx
// ./opencascade/Intf_SectionLine.hxx
// ./opencascade/Intf_SectionPoint.hxx
// ./opencascade/Intf_SeqOfSectionLine.hxx
// ./opencascade/Intf_SeqOfSectionPoint.hxx
// ./opencascade/Intf_SeqOfTangentZone.hxx
// ./opencascade/Intf_TangentZone.hxx
// ./opencascade/Intf_Tool.hxx
// Additional functions
// operators
// register typdefs
register_template_NCollection_Array1<gp_Lin>(m,"Intf_Array1OfLin");
register_template_NCollection_Sequence<Intf_SectionLine>(m,"Intf_SeqOfSectionLine");
register_template_NCollection_Sequence<Intf_SectionPoint>(m,"Intf_SeqOfSectionPoint");
register_template_NCollection_Sequence<Intf_TangentZone>(m,"Intf_SeqOfTangentZone");
// exceptions
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|