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
|
// 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 <Adaptor2d_Curve2d.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <TopoDS_Wire.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS_Edge.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 <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 <IMeshData_Shape.hxx>
#include <IMeshData_Face.hxx>
#include <IMeshData_Wire.hxx>
#include <IMeshData_Edge.hxx>
#include <IMeshData_Curve.hxx>
#include <IMeshData_PCurve.hxx>
#include <IMeshData_Model.hxx>
#include <BRepMesh_VertexInspector.hxx>
#include <BRepMesh_CircleInspector.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
// module includes
#include <IMeshData_Curve.hxx>
#include <IMeshData_Edge.hxx>
#include <IMeshData_Face.hxx>
#include <IMeshData_Model.hxx>
#include <IMeshData_ParametersList.hxx>
#include <IMeshData_ParametersListArrayAdaptor.hxx>
#include <IMeshData_PCurve.hxx>
#include <IMeshData_Shape.hxx>
#include <IMeshData_Status.hxx>
#include <IMeshData_StatusOwner.hxx>
#include <IMeshData_TessellatedShape.hxx>
#include <IMeshData_Types.hxx>
#include <IMeshData_Wire.hxx>
// template related includes
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_IMeshData(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("IMeshData"));
py::object klass;
//Python trampoline classes
class Py_IMeshData_ParametersList : public IMeshData_ParametersList{
public:
using IMeshData_ParametersList::IMeshData_ParametersList;
// public pure virtual
Standard_Real & GetParameter(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(Standard_Real &,IMeshData_ParametersList,GetParameter,theIndex) };
Standard_Integer ParametersNb() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,IMeshData_ParametersList,ParametersNb,) };
void Clear(const Standard_Boolean isKeepEndPoints) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_ParametersList,Clear,isKeepEndPoints) };
// protected pure virtual
void removeParameter(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_ParametersList,removeParameter,theIndex) };
// private pure virtual
};
class Py_IMeshData_Curve : public IMeshData_Curve{
public:
using IMeshData_Curve::IMeshData_Curve;
// public pure virtual
void InsertPoint(const Standard_Integer thePosition,const gp_Pnt & thePoint,const Standard_Real theParamOnPCurve) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_Curve,InsertPoint,thePosition,thePoint,theParamOnPCurve) };
void AddPoint(const gp_Pnt & thePoint,const Standard_Real theParamOnCurve) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_Curve,AddPoint,thePoint,theParamOnCurve) };
gp_Pnt & GetPoint(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(gp_Pnt &,IMeshData_Curve,GetPoint,theIndex) };
void RemovePoint(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_Curve,RemovePoint,theIndex) };
Standard_Real & GetParameter(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(Standard_Real &,IMeshData_ParametersList,GetParameter,theIndex) };
Standard_Integer ParametersNb() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,IMeshData_ParametersList,ParametersNb,) };
void Clear(const Standard_Boolean isKeepEndPoints) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_ParametersList,Clear,isKeepEndPoints) };
// protected pure virtual
void removeParameter(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_ParametersList,removeParameter,theIndex) };
// private pure virtual
};
class Py_IMeshData_Model : public IMeshData_Model{
public:
using IMeshData_Model::IMeshData_Model;
// public pure virtual
Standard_Real GetMaxSize() const override { PYBIND11_OVERLOAD_PURE(Standard_Real,IMeshData_Model,GetMaxSize,) };
Standard_Integer FacesNb() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,IMeshData_Model,FacesNb,) };
const IMeshData::IFaceHandle & AddFace(const TopoDS_Face & theFace) override { PYBIND11_OVERLOAD_PURE(const IMeshData::IFaceHandle &,IMeshData_Model,AddFace,theFace) };
const IMeshData::IFaceHandle & GetFace(const Standard_Integer theIndex) const override { PYBIND11_OVERLOAD_PURE(const IMeshData::IFaceHandle &,IMeshData_Model,GetFace,theIndex) };
Standard_Integer EdgesNb() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,IMeshData_Model,EdgesNb,) };
const IMeshData::IEdgeHandle & AddEdge(const TopoDS_Edge & theEdge) override { PYBIND11_OVERLOAD_PURE(const IMeshData::IEdgeHandle &,IMeshData_Model,AddEdge,theEdge) };
const IMeshData::IEdgeHandle & GetEdge(const Standard_Integer theIndex) const override { PYBIND11_OVERLOAD_PURE(const IMeshData::IEdgeHandle &,IMeshData_Model,GetEdge,theIndex) };
// protected pure virtual
// private pure virtual
};
class Py_IMeshData_PCurve : public IMeshData_PCurve{
public:
using IMeshData_PCurve::IMeshData_PCurve;
// public pure virtual
void InsertPoint(const Standard_Integer thePosition,const gp_Pnt2d & thePoint,const Standard_Real theParamOnPCurve) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_PCurve,InsertPoint,thePosition,thePoint,theParamOnPCurve) };
void AddPoint(const gp_Pnt2d & thePoint,const Standard_Real theParamOnPCurve) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_PCurve,AddPoint,thePoint,theParamOnPCurve) };
gp_Pnt2d & GetPoint(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(gp_Pnt2d &,IMeshData_PCurve,GetPoint,theIndex) };
Standard_Integer & GetIndex(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(Standard_Integer &,IMeshData_PCurve,GetIndex,theIndex) };
void RemovePoint(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_PCurve,RemovePoint,theIndex) };
Standard_Real & GetParameter(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(Standard_Real &,IMeshData_ParametersList,GetParameter,theIndex) };
Standard_Integer ParametersNb() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,IMeshData_ParametersList,ParametersNb,) };
void Clear(const Standard_Boolean isKeepEndPoints) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_ParametersList,Clear,isKeepEndPoints) };
// protected pure virtual
void removeParameter(const Standard_Integer theIndex) override { PYBIND11_OVERLOAD_PURE(void,IMeshData_ParametersList,removeParameter,theIndex) };
// private pure virtual
};
class Py_IMeshData_Edge : public IMeshData_Edge{
public:
using IMeshData_Edge::IMeshData_Edge;
// public pure virtual
Standard_Integer PCurvesNb() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,IMeshData_Edge,PCurvesNb,) };
const IMeshData::IPCurveHandle & AddPCurve(const IMeshData::IFacePtr & theDFace,const TopAbs_Orientation theOrientation) override { PYBIND11_OVERLOAD_PURE(const IMeshData::IPCurveHandle &,IMeshData_Edge,AddPCurve,theDFace,theOrientation) };
const IMeshData::IPCurveHandle & GetPCurve(const IMeshData::IFacePtr & theDFace,const TopAbs_Orientation theOrientation) const override { PYBIND11_OVERLOAD_PURE(const IMeshData::IPCurveHandle &,IMeshData_Edge,GetPCurve,theDFace,theOrientation) };
const IMeshData::IPCurveHandle & GetPCurve(const Standard_Integer theIndex) const override { PYBIND11_OVERLOAD_PURE(const IMeshData::IPCurveHandle &,IMeshData_Edge,GetPCurve,theIndex) };
// protected pure virtual
// private pure virtual
};
class Py_IMeshData_Face : public IMeshData_Face{
public:
using IMeshData_Face::IMeshData_Face;
// public pure virtual
Standard_Integer WiresNb() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,IMeshData_Face,WiresNb,) };
const IMeshData::IWireHandle & AddWire(const TopoDS_Wire & theWire,const Standard_Integer theEdgeNb) override { PYBIND11_OVERLOAD_PURE(const IMeshData::IWireHandle &,IMeshData_Face,AddWire,theWire,theEdgeNb) };
const IMeshData::IWireHandle & GetWire(const Standard_Integer theIndex) const override { PYBIND11_OVERLOAD_PURE(const IMeshData::IWireHandle &,IMeshData_Face,GetWire,theIndex) };
// protected pure virtual
// private pure virtual
};
class Py_IMeshData_Wire : public IMeshData_Wire{
public:
using IMeshData_Wire::IMeshData_Wire;
// public pure virtual
Standard_Integer EdgesNb() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,IMeshData_Wire,EdgesNb,) };
Standard_Integer AddEdge(const IMeshData::IEdgePtr & theDEdge,const TopAbs_Orientation theOrientation) override { PYBIND11_OVERLOAD_PURE(Standard_Integer,IMeshData_Wire,AddEdge,theDEdge,theOrientation) };
const IMeshData::IEdgePtr & GetEdge(const Standard_Integer theIndex) const override { PYBIND11_OVERLOAD_PURE(const IMeshData::IEdgePtr &,IMeshData_Wire,GetEdge,theIndex) };
TopAbs_Orientation GetEdgeOrientation(const Standard_Integer theIndex) const override { PYBIND11_OVERLOAD_PURE(TopAbs_Orientation,IMeshData_Wire,GetEdgeOrientation,theIndex) };
// protected pure virtual
// private pure virtual
};
// classes
// Class IMeshData_ParametersList from ./opencascade/IMeshData_ParametersList.hxx
klass = m.attr("IMeshData_ParametersList");
// nested enums
static_cast<py::class_<IMeshData_ParametersList ,opencascade::handle<IMeshData_ParametersList> ,Py_IMeshData_ParametersList , Standard_Transient >>(klass)
// constructors
// custom constructors
// methods
.def("GetParameter",
(Standard_Real & (IMeshData_ParametersList::*)( const Standard_Integer ) ) static_cast<Standard_Real & (IMeshData_ParametersList::*)( const Standard_Integer ) >(&IMeshData_ParametersList::GetParameter),
R"#(Returns parameter with the given index.)#" , py::arg("theIndex")
)
.def("ParametersNb",
(Standard_Integer (IMeshData_ParametersList::*)() const) static_cast<Standard_Integer (IMeshData_ParametersList::*)() const>(&IMeshData_ParametersList::ParametersNb),
R"#(Returns number of parameters.)#"
)
.def("Clear",
(void (IMeshData_ParametersList::*)( const Standard_Boolean ) ) static_cast<void (IMeshData_ParametersList::*)( const Standard_Boolean ) >(&IMeshData_ParametersList::Clear),
R"#(Clears parameters list.)#" , py::arg("isKeepEndPoints")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&IMeshData_ParametersList::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&IMeshData_ParametersList::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> & (IMeshData_ParametersList::*)() const) static_cast<const opencascade::handle<Standard_Type> & (IMeshData_ParametersList::*)() const>(&IMeshData_ParametersList::DynamicType),
R"#(None)#"
)
;
// Class IMeshData_Shape from ./opencascade/IMeshData_Shape.hxx
klass = m.attr("IMeshData_Shape");
// nested enums
static_cast<py::class_<IMeshData_Shape ,opencascade::handle<IMeshData_Shape> , Standard_Transient >>(klass)
// constructors
// custom constructors
// methods
.def("SetShape",
(void (IMeshData_Shape::*)( const TopoDS_Shape & ) ) static_cast<void (IMeshData_Shape::*)( const TopoDS_Shape & ) >(&IMeshData_Shape::SetShape),
R"#(Assigns shape to discrete shape.)#" , py::arg("theShape")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&IMeshData_Shape::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&IMeshData_Shape::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("GetShape",
(const TopoDS_Shape & (IMeshData_Shape::*)() const) static_cast<const TopoDS_Shape & (IMeshData_Shape::*)() const>(&IMeshData_Shape::GetShape),
R"#(Returns shape assigned to discrete shape.)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (IMeshData_Shape::*)() const) static_cast<const opencascade::handle<Standard_Type> & (IMeshData_Shape::*)() const>(&IMeshData_Shape::DynamicType),
R"#(None)#"
)
;
// Class IMeshData_StatusOwner from ./opencascade/IMeshData_StatusOwner.hxx
klass = m.attr("IMeshData_StatusOwner");
// nested enums
static_cast<py::class_<IMeshData_StatusOwner , shared_ptr<IMeshData_StatusOwner> >>(klass)
// constructors
// custom constructors
// methods
.def("IsEqual",
(Standard_Boolean (IMeshData_StatusOwner::*)( const IMeshData_Status ) const) static_cast<Standard_Boolean (IMeshData_StatusOwner::*)( const IMeshData_Status ) const>(&IMeshData_StatusOwner::IsEqual),
R"#(Returns true in case if status is strictly equal to the given value.)#" , py::arg("theValue")
)
.def("IsSet",
(Standard_Boolean (IMeshData_StatusOwner::*)( const IMeshData_Status ) const) static_cast<Standard_Boolean (IMeshData_StatusOwner::*)( const IMeshData_Status ) const>(&IMeshData_StatusOwner::IsSet),
R"#(Returns true in case if status is set.)#" , py::arg("theValue")
)
.def("SetStatus",
(void (IMeshData_StatusOwner::*)( const IMeshData_Status ) ) static_cast<void (IMeshData_StatusOwner::*)( const IMeshData_Status ) >(&IMeshData_StatusOwner::SetStatus),
R"#(Adds status to status flags of a face.)#" , py::arg("theValue")
)
.def("UnsetStatus",
(void (IMeshData_StatusOwner::*)( const IMeshData_Status ) ) static_cast<void (IMeshData_StatusOwner::*)( const IMeshData_Status ) >(&IMeshData_StatusOwner::UnsetStatus),
R"#(Adds status to status flags of a face.)#" , py::arg("theValue")
)
.def("GetStatusMask",
(Standard_Integer (IMeshData_StatusOwner::*)() const) static_cast<Standard_Integer (IMeshData_StatusOwner::*)() const>(&IMeshData_StatusOwner::GetStatusMask),
R"#(Returns complete status mask.)#"
)
// 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 IMeshData_Curve from ./opencascade/IMeshData_Curve.hxx
klass = m.attr("IMeshData_Curve");
// nested enums
static_cast<py::class_<IMeshData_Curve ,opencascade::handle<IMeshData_Curve> ,Py_IMeshData_Curve , IMeshData_ParametersList >>(klass)
// constructors
// custom constructors
// methods
.def("InsertPoint",
(void (IMeshData_Curve::*)( const Standard_Integer , const gp_Pnt & , const Standard_Real ) ) static_cast<void (IMeshData_Curve::*)( const Standard_Integer , const gp_Pnt & , const Standard_Real ) >(&IMeshData_Curve::InsertPoint),
R"#(Inserts new discretization point at the given position.)#" , py::arg("thePosition"), py::arg("thePoint"), py::arg("theParamOnPCurve")
)
.def("AddPoint",
(void (IMeshData_Curve::*)( const gp_Pnt & , const Standard_Real ) ) static_cast<void (IMeshData_Curve::*)( const gp_Pnt & , const Standard_Real ) >(&IMeshData_Curve::AddPoint),
R"#(Adds new discretization point to curve.)#" , py::arg("thePoint"), py::arg("theParamOnCurve")
)
.def("GetPoint",
(gp_Pnt & (IMeshData_Curve::*)( const Standard_Integer ) ) static_cast<gp_Pnt & (IMeshData_Curve::*)( const Standard_Integer ) >(&IMeshData_Curve::GetPoint),
R"#(Returns discretization point with the given index.)#" , py::arg("theIndex")
)
.def("RemovePoint",
(void (IMeshData_Curve::*)( const Standard_Integer ) ) static_cast<void (IMeshData_Curve::*)( const Standard_Integer ) >(&IMeshData_Curve::RemovePoint),
R"#(Removes point with the given index.)#" , py::arg("theIndex")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&IMeshData_Curve::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&IMeshData_Curve::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> & (IMeshData_Curve::*)() const) static_cast<const opencascade::handle<Standard_Type> & (IMeshData_Curve::*)() const>(&IMeshData_Curve::DynamicType),
R"#(None)#"
)
;
// Class IMeshData_Model from ./opencascade/IMeshData_Model.hxx
klass = m.attr("IMeshData_Model");
// nested enums
static_cast<py::class_<IMeshData_Model ,opencascade::handle<IMeshData_Model> ,Py_IMeshData_Model , IMeshData_Shape >>(klass)
// constructors
// custom constructors
// methods
.def("GetMaxSize",
(Standard_Real (IMeshData_Model::*)() const) static_cast<Standard_Real (IMeshData_Model::*)() const>(&IMeshData_Model::GetMaxSize),
R"#(Returns maximum size of shape model.)#"
)
.def("FacesNb",
(Standard_Integer (IMeshData_Model::*)() const) static_cast<Standard_Integer (IMeshData_Model::*)() const>(&IMeshData_Model::FacesNb),
R"#(Returns number of faces in discrete model.)#"
)
.def("AddFace",
(const IMeshData::IFaceHandle & (IMeshData_Model::*)( const TopoDS_Face & ) ) static_cast<const IMeshData::IFaceHandle & (IMeshData_Model::*)( const TopoDS_Face & ) >(&IMeshData_Model::AddFace),
R"#(Adds new face to shape model.)#" , py::arg("theFace")
)
.def("GetFace",
(const IMeshData::IFaceHandle & (IMeshData_Model::*)( const Standard_Integer ) const) static_cast<const IMeshData::IFaceHandle & (IMeshData_Model::*)( const Standard_Integer ) const>(&IMeshData_Model::GetFace),
R"#(Gets model's face with the given index.)#" , py::arg("theIndex")
)
.def("EdgesNb",
(Standard_Integer (IMeshData_Model::*)() const) static_cast<Standard_Integer (IMeshData_Model::*)() const>(&IMeshData_Model::EdgesNb),
R"#(Returns number of edges in discrete model.)#"
)
.def("AddEdge",
(const IMeshData::IEdgeHandle & (IMeshData_Model::*)( const TopoDS_Edge & ) ) static_cast<const IMeshData::IEdgeHandle & (IMeshData_Model::*)( const TopoDS_Edge & ) >(&IMeshData_Model::AddEdge),
R"#(Adds new edge to shape model.)#" , py::arg("theEdge")
)
.def("GetEdge",
(const IMeshData::IEdgeHandle & (IMeshData_Model::*)( const Standard_Integer ) const) static_cast<const IMeshData::IEdgeHandle & (IMeshData_Model::*)( const Standard_Integer ) const>(&IMeshData_Model::GetEdge),
R"#(Gets model's edge with the given index.)#" , py::arg("theIndex")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&IMeshData_Model::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&IMeshData_Model::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> & (IMeshData_Model::*)() const) static_cast<const opencascade::handle<Standard_Type> & (IMeshData_Model::*)() const>(&IMeshData_Model::DynamicType),
R"#(None)#"
)
;
// Class IMeshData_PCurve from ./opencascade/IMeshData_PCurve.hxx
klass = m.attr("IMeshData_PCurve");
// nested enums
static_cast<py::class_<IMeshData_PCurve ,opencascade::handle<IMeshData_PCurve> ,Py_IMeshData_PCurve , IMeshData_ParametersList >>(klass)
// constructors
// custom constructors
// methods
.def("InsertPoint",
(void (IMeshData_PCurve::*)( const Standard_Integer , const gp_Pnt2d & , const Standard_Real ) ) static_cast<void (IMeshData_PCurve::*)( const Standard_Integer , const gp_Pnt2d & , const Standard_Real ) >(&IMeshData_PCurve::InsertPoint),
R"#(Inserts new discretization point at the given position.)#" , py::arg("thePosition"), py::arg("thePoint"), py::arg("theParamOnPCurve")
)
.def("AddPoint",
(void (IMeshData_PCurve::*)( const gp_Pnt2d & , const Standard_Real ) ) static_cast<void (IMeshData_PCurve::*)( const gp_Pnt2d & , const Standard_Real ) >(&IMeshData_PCurve::AddPoint),
R"#(Adds new discretization point to pcurve.)#" , py::arg("thePoint"), py::arg("theParamOnPCurve")
)
.def("GetPoint",
(gp_Pnt2d & (IMeshData_PCurve::*)( const Standard_Integer ) ) static_cast<gp_Pnt2d & (IMeshData_PCurve::*)( const Standard_Integer ) >(&IMeshData_PCurve::GetPoint),
R"#(Returns discretization point with the given index.)#" , py::arg("theIndex")
)
.def("GetIndex",
(Standard_Integer & (IMeshData_PCurve::*)( const Standard_Integer ) ) static_cast<Standard_Integer & (IMeshData_PCurve::*)( const Standard_Integer ) >(&IMeshData_PCurve::GetIndex),
R"#(Returns index in mesh corresponded to discretization point with the given index.)#" , py::arg("theIndex")
)
.def("RemovePoint",
(void (IMeshData_PCurve::*)( const Standard_Integer ) ) static_cast<void (IMeshData_PCurve::*)( const Standard_Integer ) >(&IMeshData_PCurve::RemovePoint),
R"#(Removes point with the given index.)#" , py::arg("theIndex")
)
.def("IsForward",
(Standard_Boolean (IMeshData_PCurve::*)() const) static_cast<Standard_Boolean (IMeshData_PCurve::*)() const>(&IMeshData_PCurve::IsForward),
R"#(Returns forward flag of this pcurve.)#"
)
.def("IsInternal",
(Standard_Boolean (IMeshData_PCurve::*)() const) static_cast<Standard_Boolean (IMeshData_PCurve::*)() const>(&IMeshData_PCurve::IsInternal),
R"#(Returns internal flag of this pcurve.)#"
)
.def("GetOrientation",
(TopAbs_Orientation (IMeshData_PCurve::*)() const) static_cast<TopAbs_Orientation (IMeshData_PCurve::*)() const>(&IMeshData_PCurve::GetOrientation),
R"#(Returns orientation of the edge associated with current pcurve.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&IMeshData_PCurve::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&IMeshData_PCurve::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("GetFace",
(const IMeshData::IFacePtr & (IMeshData_PCurve::*)() const) static_cast<const IMeshData::IFacePtr & (IMeshData_PCurve::*)() const>(&IMeshData_PCurve::GetFace),
R"#(Returns discrete face pcurve is associated to.)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (IMeshData_PCurve::*)() const) static_cast<const opencascade::handle<Standard_Type> & (IMeshData_PCurve::*)() const>(&IMeshData_PCurve::DynamicType),
R"#(None)#"
)
;
// Class IMeshData_TessellatedShape from ./opencascade/IMeshData_TessellatedShape.hxx
klass = m.attr("IMeshData_TessellatedShape");
// nested enums
static_cast<py::class_<IMeshData_TessellatedShape ,opencascade::handle<IMeshData_TessellatedShape> , IMeshData_Shape >>(klass)
// constructors
// custom constructors
// methods
.def("GetDeflection",
(Standard_Real (IMeshData_TessellatedShape::*)() const) static_cast<Standard_Real (IMeshData_TessellatedShape::*)() const>(&IMeshData_TessellatedShape::GetDeflection),
R"#(Gets deflection value for the discrete model.)#"
)
.def("SetDeflection",
(void (IMeshData_TessellatedShape::*)( const Standard_Real ) ) static_cast<void (IMeshData_TessellatedShape::*)( const Standard_Real ) >(&IMeshData_TessellatedShape::SetDeflection),
R"#(Sets deflection value for the discrete model.)#" , py::arg("theValue")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&IMeshData_TessellatedShape::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&IMeshData_TessellatedShape::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> & (IMeshData_TessellatedShape::*)() const) static_cast<const opencascade::handle<Standard_Type> & (IMeshData_TessellatedShape::*)() const>(&IMeshData_TessellatedShape::DynamicType),
R"#(None)#"
)
;
// Class IMeshData_Edge from ./opencascade/IMeshData_Edge.hxx
klass = m.attr("IMeshData_Edge");
// nested enums
static_cast<py::class_<IMeshData_Edge ,opencascade::handle<IMeshData_Edge> ,Py_IMeshData_Edge , IMeshData_TessellatedShape , IMeshData_StatusOwner >>(klass)
// constructors
// custom constructors
// methods
.def("PCurvesNb",
(Standard_Integer (IMeshData_Edge::*)() const) static_cast<Standard_Integer (IMeshData_Edge::*)() const>(&IMeshData_Edge::PCurvesNb),
R"#(Returns number of pcurves assigned to current edge.)#"
)
.def("GetPCurve",
(const IMeshData::IPCurveHandle & (IMeshData_Edge::*)( const Standard_Integer ) const) static_cast<const IMeshData::IPCurveHandle & (IMeshData_Edge::*)( const Standard_Integer ) const>(&IMeshData_Edge::GetPCurve),
R"#(Returns pcurve with the given index.)#" , py::arg("theIndex")
)
.def("Clear",
(void (IMeshData_Edge::*)( const Standard_Boolean ) ) static_cast<void (IMeshData_Edge::*)( const Standard_Boolean ) >(&IMeshData_Edge::Clear),
R"#(Clears curve and all pcurves assigned to the edge from discretization.)#" , py::arg("isKeepEndPoints")
)
.def("IsFree",
(Standard_Boolean (IMeshData_Edge::*)() const) static_cast<Standard_Boolean (IMeshData_Edge::*)() const>(&IMeshData_Edge::IsFree),
R"#(Returns true in case if the edge is free one, i.e. it does not have pcurves.)#"
)
.def("SetCurve",
(void (IMeshData_Edge::*)( const opencascade::handle<IMeshData_Curve> & ) ) static_cast<void (IMeshData_Edge::*)( const opencascade::handle<IMeshData_Curve> & ) >(&IMeshData_Edge::SetCurve),
R"#(Sets 3d curve associated with current edge.)#" , py::arg("theCurve")
)
.def("GetAngularDeflection",
(Standard_Real (IMeshData_Edge::*)() const) static_cast<Standard_Real (IMeshData_Edge::*)() const>(&IMeshData_Edge::GetAngularDeflection),
R"#(Gets value of angular deflection for the discrete model.)#"
)
.def("SetAngularDeflection",
(void (IMeshData_Edge::*)( const Standard_Real ) ) static_cast<void (IMeshData_Edge::*)( const Standard_Real ) >(&IMeshData_Edge::SetAngularDeflection),
R"#(Sets value of angular deflection for the discrete model.)#" , py::arg("theValue")
)
.def("GetSameParam",
(Standard_Boolean (IMeshData_Edge::*)() const) static_cast<Standard_Boolean (IMeshData_Edge::*)() const>(&IMeshData_Edge::GetSameParam),
R"#(Returns same param flag. By default equals to flag stored in topological shape.)#"
)
.def("SetSameParam",
(void (IMeshData_Edge::*)( const Standard_Boolean ) ) static_cast<void (IMeshData_Edge::*)( const Standard_Boolean ) >(&IMeshData_Edge::SetSameParam),
R"#(Updates same param flag.)#" , py::arg("theValue")
)
.def("GetSameRange",
(Standard_Boolean (IMeshData_Edge::*)() const) static_cast<Standard_Boolean (IMeshData_Edge::*)() const>(&IMeshData_Edge::GetSameRange),
R"#(Returns same range flag. By default equals to flag stored in topological shape.)#"
)
.def("SetSameRange",
(void (IMeshData_Edge::*)( const Standard_Boolean ) ) static_cast<void (IMeshData_Edge::*)( const Standard_Boolean ) >(&IMeshData_Edge::SetSameRange),
R"#(Updates same range flag.)#" , py::arg("theValue")
)
.def("GetDegenerated",
(Standard_Boolean (IMeshData_Edge::*)() const) static_cast<Standard_Boolean (IMeshData_Edge::*)() const>(&IMeshData_Edge::GetDegenerated),
R"#(Returns degenerative flag. By default equals to flag stored in topological shape.)#"
)
.def("SetDegenerated",
(void (IMeshData_Edge::*)( const Standard_Boolean ) ) static_cast<void (IMeshData_Edge::*)( const Standard_Boolean ) >(&IMeshData_Edge::SetDegenerated),
R"#(Updates degenerative flag.)#" , py::arg("theValue")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&IMeshData_Edge::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&IMeshData_Edge::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("GetEdge",
(const TopoDS_Edge & (IMeshData_Edge::*)() const) static_cast<const TopoDS_Edge & (IMeshData_Edge::*)() const>(&IMeshData_Edge::GetEdge),
R"#(Returns TopoDS_Edge attached to model.)#"
)
.def("GetCurve",
(const IMeshData::ICurveHandle & (IMeshData_Edge::*)() const) static_cast<const IMeshData::ICurveHandle & (IMeshData_Edge::*)() const>(&IMeshData_Edge::GetCurve),
R"#(Returns 3d curve associated with current edge.)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (IMeshData_Edge::*)() const) static_cast<const opencascade::handle<Standard_Type> & (IMeshData_Edge::*)() const>(&IMeshData_Edge::DynamicType),
R"#(None)#"
)
;
// Class IMeshData_Face from ./opencascade/IMeshData_Face.hxx
klass = m.attr("IMeshData_Face");
// nested enums
static_cast<py::class_<IMeshData_Face ,opencascade::handle<IMeshData_Face> ,Py_IMeshData_Face , IMeshData_TessellatedShape , IMeshData_StatusOwner >>(klass)
// constructors
// custom constructors
// methods
.def("WiresNb",
(Standard_Integer (IMeshData_Face::*)() const) static_cast<Standard_Integer (IMeshData_Face::*)() const>(&IMeshData_Face::WiresNb),
R"#(Returns number of wires.)#"
)
.def("AddWire",
(const IMeshData::IWireHandle & (IMeshData_Face::*)( const TopoDS_Wire & , const Standard_Integer ) ) static_cast<const IMeshData::IWireHandle & (IMeshData_Face::*)( const TopoDS_Wire & , const Standard_Integer ) >(&IMeshData_Face::AddWire),
R"#(Adds wire to discrete model of face.)#" , py::arg("theWire"), py::arg("theEdgeNb")=static_cast<const Standard_Integer>(0)
)
.def("GetWire",
(const IMeshData::IWireHandle & (IMeshData_Face::*)( const Standard_Integer ) const) static_cast<const IMeshData::IWireHandle & (IMeshData_Face::*)( const Standard_Integer ) const>(&IMeshData_Face::GetWire),
R"#(Returns discrete edge with the given index.)#" , py::arg("theIndex")
)
.def("IsValid",
(Standard_Boolean (IMeshData_Face::*)() const) static_cast<Standard_Boolean (IMeshData_Face::*)() const>(&IMeshData_Face::IsValid),
R"#(Returns whether the face discrete model is valid.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&IMeshData_Face::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&IMeshData_Face::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("GetSurface",
(const opencascade::handle<BRepAdaptor_Surface> & (IMeshData_Face::*)() const) static_cast<const opencascade::handle<BRepAdaptor_Surface> & (IMeshData_Face::*)() const>(&IMeshData_Face::GetSurface),
R"#(Returns face's surface.)#"
)
.def("GetFace",
(const TopoDS_Face & (IMeshData_Face::*)() const) static_cast<const TopoDS_Face & (IMeshData_Face::*)() const>(&IMeshData_Face::GetFace),
R"#(Returns TopoDS_Face attached to model.)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (IMeshData_Face::*)() const) static_cast<const opencascade::handle<Standard_Type> & (IMeshData_Face::*)() const>(&IMeshData_Face::DynamicType),
R"#(None)#"
)
;
// Class IMeshData_Wire from ./opencascade/IMeshData_Wire.hxx
klass = m.attr("IMeshData_Wire");
// nested enums
static_cast<py::class_<IMeshData_Wire ,opencascade::handle<IMeshData_Wire> ,Py_IMeshData_Wire , IMeshData_TessellatedShape , IMeshData_StatusOwner >>(klass)
// constructors
// custom constructors
// methods
.def("EdgesNb",
(Standard_Integer (IMeshData_Wire::*)() const) static_cast<Standard_Integer (IMeshData_Wire::*)() const>(&IMeshData_Wire::EdgesNb),
R"#(Returns number of edges.)#"
)
.def("GetEdge",
(const IMeshData::IEdgePtr & (IMeshData_Wire::*)( const Standard_Integer ) const) static_cast<const IMeshData::IEdgePtr & (IMeshData_Wire::*)( const Standard_Integer ) const>(&IMeshData_Wire::GetEdge),
R"#(Returns discrete edge with the given index.)#" , py::arg("theIndex")
)
.def("GetEdgeOrientation",
(TopAbs_Orientation (IMeshData_Wire::*)( const Standard_Integer ) const) static_cast<TopAbs_Orientation (IMeshData_Wire::*)( const Standard_Integer ) const>(&IMeshData_Wire::GetEdgeOrientation),
R"#(Returns True if orientation of discrete edge with the given index is forward.)#" , py::arg("theIndex")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&IMeshData_Wire::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&IMeshData_Wire::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("GetWire",
(const TopoDS_Wire & (IMeshData_Wire::*)() const) static_cast<const TopoDS_Wire & (IMeshData_Wire::*)() const>(&IMeshData_Wire::GetWire),
R"#(Returns TopoDS_Face attached to model.)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (IMeshData_Wire::*)() const) static_cast<const opencascade::handle<Standard_Type> & (IMeshData_Wire::*)() const>(&IMeshData_Wire::DynamicType),
R"#(None)#"
)
;
// functions
// ./opencascade/IMeshData_Curve.hxx
// ./opencascade/IMeshData_Edge.hxx
// ./opencascade/IMeshData_Face.hxx
// ./opencascade/IMeshData_Model.hxx
// ./opencascade/IMeshData_PCurve.hxx
// ./opencascade/IMeshData_ParametersList.hxx
// ./opencascade/IMeshData_ParametersListArrayAdaptor.hxx
// ./opencascade/IMeshData_Shape.hxx
// ./opencascade/IMeshData_Status.hxx
// ./opencascade/IMeshData_StatusOwner.hxx
// ./opencascade/IMeshData_TessellatedShape.hxx
// ./opencascade/IMeshData_Types.hxx
// ./opencascade/IMeshData_Wire.hxx
// Additional functions
// operators
// register typdefs
// exceptions
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|