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
|
// 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 <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS_Shell.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS_Shell.hxx>
#include <TopoDS_Solid.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
// module includes
#include <BRepPrimAPI_MakeBox.hxx>
#include <BRepPrimAPI_MakeCone.hxx>
#include <BRepPrimAPI_MakeCylinder.hxx>
#include <BRepPrimAPI_MakeHalfSpace.hxx>
#include <BRepPrimAPI_MakeOneAxis.hxx>
#include <BRepPrimAPI_MakePrism.hxx>
#include <BRepPrimAPI_MakeRevol.hxx>
#include <BRepPrimAPI_MakeRevolution.hxx>
#include <BRepPrimAPI_MakeSphere.hxx>
#include <BRepPrimAPI_MakeSweep.hxx>
#include <BRepPrimAPI_MakeTorus.hxx>
#include <BRepPrimAPI_MakeWedge.hxx>
// template related includes
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_BRepPrimAPI(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("BRepPrimAPI"));
py::object klass;
//Python trampoline classes
class Py_BRepPrimAPI_MakeOneAxis : public BRepPrimAPI_MakeOneAxis{
public:
using BRepPrimAPI_MakeOneAxis::BRepPrimAPI_MakeOneAxis;
// public pure virtual
Standard_Address OneAxis() override { PYBIND11_OVERLOAD_PURE(Standard_Address,BRepPrimAPI_MakeOneAxis,OneAxis,) };
// protected pure virtual
// private pure virtual
};
class Py_BRepPrimAPI_MakeSweep : public BRepPrimAPI_MakeSweep{
public:
using BRepPrimAPI_MakeSweep::BRepPrimAPI_MakeSweep;
// public pure virtual
TopoDS_Shape FirstShape() override { PYBIND11_OVERLOAD_PURE(TopoDS_Shape,BRepPrimAPI_MakeSweep,FirstShape,) };
TopoDS_Shape LastShape() override { PYBIND11_OVERLOAD_PURE(TopoDS_Shape,BRepPrimAPI_MakeSweep,LastShape,) };
// protected pure virtual
// private pure virtual
};
// classes
// Class BRepPrimAPI_MakeBox from ./opencascade/BRepPrimAPI_MakeBox.hxx
klass = m.attr("BRepPrimAPI_MakeBox");
// nested enums
static_cast<py::class_<BRepPrimAPI_MakeBox , shared_ptr<BRepPrimAPI_MakeBox> , BRepBuilderAPI_MakeShape >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("dx"), py::arg("dy"), py::arg("dz") )
.def(py::init< const gp_Pnt &,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("P"), py::arg("dx"), py::arg("dy"), py::arg("dz") )
.def(py::init< const gp_Pnt &,const gp_Pnt & >() , py::arg("P1"), py::arg("P2") )
.def(py::init< const gp_Ax2 &,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("Axes"), py::arg("dx"), py::arg("dy"), py::arg("dz") )
// custom constructors
// methods
.def("Init",
(void (BRepPrimAPI_MakeBox::*)( const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (BRepPrimAPI_MakeBox::*)( const Standard_Real , const Standard_Real , const Standard_Real ) >(&BRepPrimAPI_MakeBox::Init),
R"#(Init a box with a corner at 0,0,0 and the other theDX, theDY, theDZ)#" , py::arg("theDX"), py::arg("theDY"), py::arg("theDZ")
)
.def("Init",
(void (BRepPrimAPI_MakeBox::*)( const gp_Pnt & , const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (BRepPrimAPI_MakeBox::*)( const gp_Pnt & , const Standard_Real , const Standard_Real , const Standard_Real ) >(&BRepPrimAPI_MakeBox::Init),
R"#(Init a box with a corner at thePnt and size theDX, theDY, theDZ.)#" , py::arg("thePnt"), py::arg("theDX"), py::arg("theDY"), py::arg("theDZ")
)
.def("Init",
(void (BRepPrimAPI_MakeBox::*)( const gp_Pnt & , const gp_Pnt & ) ) static_cast<void (BRepPrimAPI_MakeBox::*)( const gp_Pnt & , const gp_Pnt & ) >(&BRepPrimAPI_MakeBox::Init),
R"#(Init a box with corners thePnt1, thePnt2.)#" , py::arg("thePnt1"), py::arg("thePnt2")
)
.def("Init",
(void (BRepPrimAPI_MakeBox::*)( const gp_Ax2 & , const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (BRepPrimAPI_MakeBox::*)( const gp_Ax2 & , const Standard_Real , const Standard_Real , const Standard_Real ) >(&BRepPrimAPI_MakeBox::Init),
R"#(Init a box with Ax2 (the left corner and the theAxes) and size theDX, theDY, theDZ.)#" , py::arg("theAxes"), py::arg("theDX"), py::arg("theDY"), py::arg("theDZ")
)
.def("Build",
(void (BRepPrimAPI_MakeBox::*)( const Message_ProgressRange & ) ) static_cast<void (BRepPrimAPI_MakeBox::*)( const Message_ProgressRange & ) >(&BRepPrimAPI_MakeBox::Build),
R"#(Stores the solid in myShape.)#" , py::arg("theRange")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
// 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("Wedge",
(BRepPrim_Wedge & (BRepPrimAPI_MakeBox::*)() ) static_cast<BRepPrim_Wedge & (BRepPrimAPI_MakeBox::*)() >(&BRepPrimAPI_MakeBox::Wedge),
R"#(Returns the internal algorithm.)#"
, py::return_value_policy::reference_internal
)
.def("Shell",
(const TopoDS_Shell & (BRepPrimAPI_MakeBox::*)() ) static_cast<const TopoDS_Shell & (BRepPrimAPI_MakeBox::*)() >(&BRepPrimAPI_MakeBox::Shell),
R"#(Returns the constructed box as a shell.)#"
)
.def("Solid",
(const TopoDS_Solid & (BRepPrimAPI_MakeBox::*)() ) static_cast<const TopoDS_Solid & (BRepPrimAPI_MakeBox::*)() >(&BRepPrimAPI_MakeBox::Solid),
R"#(Returns the constructed box as a solid.)#"
)
.def("BottomFace",
(const TopoDS_Face & (BRepPrimAPI_MakeBox::*)() ) static_cast<const TopoDS_Face & (BRepPrimAPI_MakeBox::*)() >(&BRepPrimAPI_MakeBox::BottomFace),
R"#(Returns ZMin face)#"
)
.def("BackFace",
(const TopoDS_Face & (BRepPrimAPI_MakeBox::*)() ) static_cast<const TopoDS_Face & (BRepPrimAPI_MakeBox::*)() >(&BRepPrimAPI_MakeBox::BackFace),
R"#(Returns XMin face)#"
)
.def("FrontFace",
(const TopoDS_Face & (BRepPrimAPI_MakeBox::*)() ) static_cast<const TopoDS_Face & (BRepPrimAPI_MakeBox::*)() >(&BRepPrimAPI_MakeBox::FrontFace),
R"#(Returns XMax face)#"
)
.def("LeftFace",
(const TopoDS_Face & (BRepPrimAPI_MakeBox::*)() ) static_cast<const TopoDS_Face & (BRepPrimAPI_MakeBox::*)() >(&BRepPrimAPI_MakeBox::LeftFace),
R"#(Returns YMin face)#"
)
.def("RightFace",
(const TopoDS_Face & (BRepPrimAPI_MakeBox::*)() ) static_cast<const TopoDS_Face & (BRepPrimAPI_MakeBox::*)() >(&BRepPrimAPI_MakeBox::RightFace),
R"#(Returns YMax face)#"
)
.def("TopFace",
(const TopoDS_Face & (BRepPrimAPI_MakeBox::*)() ) static_cast<const TopoDS_Face & (BRepPrimAPI_MakeBox::*)() >(&BRepPrimAPI_MakeBox::TopFace),
R"#(Returns ZMax face)#"
)
;
// Class BRepPrimAPI_MakeHalfSpace from ./opencascade/BRepPrimAPI_MakeHalfSpace.hxx
klass = m.attr("BRepPrimAPI_MakeHalfSpace");
// nested enums
static_cast<py::class_<BRepPrimAPI_MakeHalfSpace , shared_ptr<BRepPrimAPI_MakeHalfSpace> , BRepBuilderAPI_MakeShape >>(klass)
// constructors
.def(py::init< const TopoDS_Face &,const gp_Pnt & >() , py::arg("Face"), py::arg("RefPnt") )
.def(py::init< const TopoDS_Shell &,const gp_Pnt & >() , py::arg("Shell"), py::arg("RefPnt") )
// custom constructors
// methods
// 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("Solid",
(const TopoDS_Solid & (BRepPrimAPI_MakeHalfSpace::*)() const) static_cast<const TopoDS_Solid & (BRepPrimAPI_MakeHalfSpace::*)() const>(&BRepPrimAPI_MakeHalfSpace::Solid),
R"#(Returns the constructed half-space as a solid.)#"
)
;
// Class BRepPrimAPI_MakeOneAxis from ./opencascade/BRepPrimAPI_MakeOneAxis.hxx
klass = m.attr("BRepPrimAPI_MakeOneAxis");
// nested enums
static_cast<py::class_<BRepPrimAPI_MakeOneAxis , shared_ptr<BRepPrimAPI_MakeOneAxis> ,Py_BRepPrimAPI_MakeOneAxis , BRepBuilderAPI_MakeShape >>(klass)
// constructors
// custom constructors
// methods
.def("OneAxis",
(Standard_Address (BRepPrimAPI_MakeOneAxis::*)() ) static_cast<Standard_Address (BRepPrimAPI_MakeOneAxis::*)() >(&BRepPrimAPI_MakeOneAxis::OneAxis),
R"#(The inherited commands should provide the algorithm. Returned as a pointer.)#"
)
.def("Build",
(void (BRepPrimAPI_MakeOneAxis::*)( const Message_ProgressRange & ) ) static_cast<void (BRepPrimAPI_MakeOneAxis::*)( const Message_ProgressRange & ) >(&BRepPrimAPI_MakeOneAxis::Build),
R"#(Stores the solid in myShape.)#" , py::arg("theRange")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
// 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("Face",
(const TopoDS_Face & (BRepPrimAPI_MakeOneAxis::*)() ) static_cast<const TopoDS_Face & (BRepPrimAPI_MakeOneAxis::*)() >(&BRepPrimAPI_MakeOneAxis::Face),
R"#(Returns the lateral face of the rotational primitive.)#"
)
.def("Shell",
(const TopoDS_Shell & (BRepPrimAPI_MakeOneAxis::*)() ) static_cast<const TopoDS_Shell & (BRepPrimAPI_MakeOneAxis::*)() >(&BRepPrimAPI_MakeOneAxis::Shell),
R"#(Returns the constructed rotational primitive as a shell.)#"
)
.def("Solid",
(const TopoDS_Solid & (BRepPrimAPI_MakeOneAxis::*)() ) static_cast<const TopoDS_Solid & (BRepPrimAPI_MakeOneAxis::*)() >(&BRepPrimAPI_MakeOneAxis::Solid),
R"#(Returns the constructed rotational primitive as a solid.)#"
)
;
// Class BRepPrimAPI_MakeSweep from ./opencascade/BRepPrimAPI_MakeSweep.hxx
klass = m.attr("BRepPrimAPI_MakeSweep");
// nested enums
static_cast<py::class_<BRepPrimAPI_MakeSweep , shared_ptr<BRepPrimAPI_MakeSweep> ,Py_BRepPrimAPI_MakeSweep , BRepBuilderAPI_MakeShape >>(klass)
// constructors
// custom constructors
// methods
.def("FirstShape",
(TopoDS_Shape (BRepPrimAPI_MakeSweep::*)() ) static_cast<TopoDS_Shape (BRepPrimAPI_MakeSweep::*)() >(&BRepPrimAPI_MakeSweep::FirstShape),
R"#(Returns the TopoDS Shape of the bottom of the sweep.)#"
)
.def("LastShape",
(TopoDS_Shape (BRepPrimAPI_MakeSweep::*)() ) static_cast<TopoDS_Shape (BRepPrimAPI_MakeSweep::*)() >(&BRepPrimAPI_MakeSweep::LastShape),
R"#(Returns the TopoDS Shape of the top of the sweep.)#"
)
// 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 BRepPrimAPI_MakeWedge from ./opencascade/BRepPrimAPI_MakeWedge.hxx
klass = m.attr("BRepPrimAPI_MakeWedge");
// nested enums
static_cast<py::class_<BRepPrimAPI_MakeWedge , shared_ptr<BRepPrimAPI_MakeWedge> , BRepBuilderAPI_MakeShape >>(klass)
// constructors
.def(py::init< const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("dx"), py::arg("dy"), py::arg("dz"), py::arg("ltx") )
.def(py::init< const gp_Ax2 &,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("Axes"), py::arg("dx"), py::arg("dy"), py::arg("dz"), py::arg("ltx") )
.def(py::init< const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("dx"), py::arg("dy"), py::arg("dz"), py::arg("xmin"), py::arg("zmin"), py::arg("xmax"), py::arg("zmax") )
.def(py::init< const gp_Ax2 &,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("Axes"), py::arg("dx"), py::arg("dy"), py::arg("dz"), py::arg("xmin"), py::arg("zmin"), py::arg("xmax"), py::arg("zmax") )
// custom constructors
// methods
.def("Build",
(void (BRepPrimAPI_MakeWedge::*)( const Message_ProgressRange & ) ) static_cast<void (BRepPrimAPI_MakeWedge::*)( const Message_ProgressRange & ) >(&BRepPrimAPI_MakeWedge::Build),
R"#(Stores the solid in myShape.)#" , py::arg("theRange")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
// 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("Wedge",
(BRepPrim_Wedge & (BRepPrimAPI_MakeWedge::*)() ) static_cast<BRepPrim_Wedge & (BRepPrimAPI_MakeWedge::*)() >(&BRepPrimAPI_MakeWedge::Wedge),
R"#(Returns the internal algorithm.)#"
, py::return_value_policy::reference_internal
)
.def("Shell",
(const TopoDS_Shell & (BRepPrimAPI_MakeWedge::*)() ) static_cast<const TopoDS_Shell & (BRepPrimAPI_MakeWedge::*)() >(&BRepPrimAPI_MakeWedge::Shell),
R"#(Returns the constructed box in the form of a shell.)#"
)
.def("Solid",
(const TopoDS_Solid & (BRepPrimAPI_MakeWedge::*)() ) static_cast<const TopoDS_Solid & (BRepPrimAPI_MakeWedge::*)() >(&BRepPrimAPI_MakeWedge::Solid),
R"#(Returns the constructed box in the form of a solid.)#"
)
;
// Class BRepPrimAPI_MakeCone from ./opencascade/BRepPrimAPI_MakeCone.hxx
klass = m.attr("BRepPrimAPI_MakeCone");
// nested enums
static_cast<py::class_<BRepPrimAPI_MakeCone , shared_ptr<BRepPrimAPI_MakeCone> , BRepPrimAPI_MakeOneAxis >>(klass)
// constructors
.def(py::init< const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("R1"), py::arg("R2"), py::arg("H") )
.def(py::init< const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("R1"), py::arg("R2"), py::arg("H"), py::arg("angle") )
.def(py::init< const gp_Ax2 &,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("Axes"), py::arg("R1"), py::arg("R2"), py::arg("H") )
.def(py::init< const gp_Ax2 &,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("Axes"), py::arg("R1"), py::arg("R2"), py::arg("H"), py::arg("angle") )
// custom constructors
// methods
.def("OneAxis",
(Standard_Address (BRepPrimAPI_MakeCone::*)() ) static_cast<Standard_Address (BRepPrimAPI_MakeCone::*)() >(&BRepPrimAPI_MakeCone::OneAxis),
R"#(Returns the algorithm.)#"
)
// 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("Cone",
(BRepPrim_Cone & (BRepPrimAPI_MakeCone::*)() ) static_cast<BRepPrim_Cone & (BRepPrimAPI_MakeCone::*)() >(&BRepPrimAPI_MakeCone::Cone),
R"#(Returns the algorithm.)#"
, py::return_value_policy::reference_internal
)
;
// Class BRepPrimAPI_MakeCylinder from ./opencascade/BRepPrimAPI_MakeCylinder.hxx
klass = m.attr("BRepPrimAPI_MakeCylinder");
// nested enums
static_cast<py::class_<BRepPrimAPI_MakeCylinder , shared_ptr<BRepPrimAPI_MakeCylinder> , BRepPrimAPI_MakeOneAxis >>(klass)
// constructors
.def(py::init< const Standard_Real,const Standard_Real >() , py::arg("R"), py::arg("H") )
.def(py::init< const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("R"), py::arg("H"), py::arg("Angle") )
.def(py::init< const gp_Ax2 &,const Standard_Real,const Standard_Real >() , py::arg("Axes"), py::arg("R"), py::arg("H") )
.def(py::init< const gp_Ax2 &,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("Axes"), py::arg("R"), py::arg("H"), py::arg("Angle") )
// custom constructors
// methods
.def("OneAxis",
(Standard_Address (BRepPrimAPI_MakeCylinder::*)() ) static_cast<Standard_Address (BRepPrimAPI_MakeCylinder::*)() >(&BRepPrimAPI_MakeCylinder::OneAxis),
R"#(Returns the algorithm.)#"
)
// 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("Cylinder",
(BRepPrim_Cylinder & (BRepPrimAPI_MakeCylinder::*)() ) static_cast<BRepPrim_Cylinder & (BRepPrimAPI_MakeCylinder::*)() >(&BRepPrimAPI_MakeCylinder::Cylinder),
R"#(Returns the algorithm.)#"
, py::return_value_policy::reference_internal
)
;
// Class BRepPrimAPI_MakePrism from ./opencascade/BRepPrimAPI_MakePrism.hxx
klass = m.attr("BRepPrimAPI_MakePrism");
// nested enums
static_cast<py::class_<BRepPrimAPI_MakePrism , shared_ptr<BRepPrimAPI_MakePrism> , BRepPrimAPI_MakeSweep >>(klass)
// constructors
.def(py::init< const TopoDS_Shape &,const gp_Vec &,const Standard_Boolean,const Standard_Boolean >() , py::arg("S"), py::arg("V"), py::arg("Copy")=static_cast<const Standard_Boolean>(Standard_False), py::arg("Canonize")=static_cast<const Standard_Boolean>(Standard_True) )
.def(py::init< const TopoDS_Shape &,const gp_Dir &,const Standard_Boolean,const Standard_Boolean,const Standard_Boolean >() , py::arg("S"), py::arg("D"), py::arg("Inf")=static_cast<const Standard_Boolean>(Standard_True), py::arg("Copy")=static_cast<const Standard_Boolean>(Standard_False), py::arg("Canonize")=static_cast<const Standard_Boolean>(Standard_True) )
// custom constructors
// methods
.def("Build",
(void (BRepPrimAPI_MakePrism::*)( const Message_ProgressRange & ) ) static_cast<void (BRepPrimAPI_MakePrism::*)( const Message_ProgressRange & ) >(&BRepPrimAPI_MakePrism::Build),
R"#(Builds the resulting shape (redefined from MakeShape).)#" , py::arg("theRange")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("FirstShape",
(TopoDS_Shape (BRepPrimAPI_MakePrism::*)() ) static_cast<TopoDS_Shape (BRepPrimAPI_MakePrism::*)() >(&BRepPrimAPI_MakePrism::FirstShape),
R"#(Returns the TopoDS Shape of the bottom of the prism.)#"
)
.def("LastShape",
(TopoDS_Shape (BRepPrimAPI_MakePrism::*)() ) static_cast<TopoDS_Shape (BRepPrimAPI_MakePrism::*)() >(&BRepPrimAPI_MakePrism::LastShape),
R"#(Returns the TopoDS Shape of the top of the prism. In the case of a finite prism, FirstShape returns the basis of the prism, in other words, S if Copy is false; otherwise, the copy of S belonging to the prism. LastShape returns the copy of S translated by V at the time of construction.)#"
)
.def("Generated",
(const TopTools_ListOfShape & (BRepPrimAPI_MakePrism::*)( const TopoDS_Shape & ) ) static_cast<const TopTools_ListOfShape & (BRepPrimAPI_MakePrism::*)( const TopoDS_Shape & ) >(&BRepPrimAPI_MakePrism::Generated),
R"#(Returns ListOfShape from TopTools.)#" , py::arg("S")
)
.def("IsDeleted",
(Standard_Boolean (BRepPrimAPI_MakePrism::*)( const TopoDS_Shape & ) ) static_cast<Standard_Boolean (BRepPrimAPI_MakePrism::*)( const TopoDS_Shape & ) >(&BRepPrimAPI_MakePrism::IsDeleted),
R"#(Returns true if the shape S has been deleted.)#" , py::arg("S")
)
.def("FirstShape",
(TopoDS_Shape (BRepPrimAPI_MakePrism::*)( const TopoDS_Shape & ) ) static_cast<TopoDS_Shape (BRepPrimAPI_MakePrism::*)( const TopoDS_Shape & ) >(&BRepPrimAPI_MakePrism::FirstShape),
R"#(Returns the TopoDS Shape of the bottom of the prism. generated with theShape (subShape of the generating shape).)#" , py::arg("theShape")
)
.def("LastShape",
(TopoDS_Shape (BRepPrimAPI_MakePrism::*)( const TopoDS_Shape & ) ) static_cast<TopoDS_Shape (BRepPrimAPI_MakePrism::*)( const TopoDS_Shape & ) >(&BRepPrimAPI_MakePrism::LastShape),
R"#(Returns the TopoDS Shape of the top of the prism. generated with theShape (subShape of the generating shape).)#" , py::arg("theShape")
)
// 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("Prism",
(const BRepSweep_Prism & (BRepPrimAPI_MakePrism::*)() const) static_cast<const BRepSweep_Prism & (BRepPrimAPI_MakePrism::*)() const>(&BRepPrimAPI_MakePrism::Prism),
R"#(Returns the internal sweeping algorithm.)#"
)
;
// Class BRepPrimAPI_MakeRevol from ./opencascade/BRepPrimAPI_MakeRevol.hxx
klass = m.attr("BRepPrimAPI_MakeRevol");
// nested enums
static_cast<py::class_<BRepPrimAPI_MakeRevol , shared_ptr<BRepPrimAPI_MakeRevol> , BRepPrimAPI_MakeSweep >>(klass)
// constructors
.def(py::init< const TopoDS_Shape &,const gp_Ax1 &,const Standard_Real,const Standard_Boolean >() , py::arg("S"), py::arg("A"), py::arg("D"), py::arg("Copy")=static_cast<const Standard_Boolean>(Standard_False) )
.def(py::init< const TopoDS_Shape &,const gp_Ax1 &,const Standard_Boolean >() , py::arg("S"), py::arg("A"), py::arg("Copy")=static_cast<const Standard_Boolean>(Standard_False) )
// custom constructors
// methods
.def("Build",
(void (BRepPrimAPI_MakeRevol::*)( const Message_ProgressRange & ) ) static_cast<void (BRepPrimAPI_MakeRevol::*)( const Message_ProgressRange & ) >(&BRepPrimAPI_MakeRevol::Build),
R"#(Builds the resulting shape (redefined from MakeShape).)#" , py::arg("theRange")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("FirstShape",
(TopoDS_Shape (BRepPrimAPI_MakeRevol::*)() ) static_cast<TopoDS_Shape (BRepPrimAPI_MakeRevol::*)() >(&BRepPrimAPI_MakeRevol::FirstShape),
R"#(Returns the first shape of the revol (coinciding with the generating shape).)#"
)
.def("LastShape",
(TopoDS_Shape (BRepPrimAPI_MakeRevol::*)() ) static_cast<TopoDS_Shape (BRepPrimAPI_MakeRevol::*)() >(&BRepPrimAPI_MakeRevol::LastShape),
R"#(Returns the TopoDS Shape of the end of the revol.)#"
)
.def("Generated",
(const TopTools_ListOfShape & (BRepPrimAPI_MakeRevol::*)( const TopoDS_Shape & ) ) static_cast<const TopTools_ListOfShape & (BRepPrimAPI_MakeRevol::*)( const TopoDS_Shape & ) >(&BRepPrimAPI_MakeRevol::Generated),
R"#(Returns list of shape generated from shape S Warning: shape S must be shape of type VERTEX, EDGE, FACE, SOLID. For shapes of other types method always returns empty list)#" , py::arg("S")
)
.def("IsDeleted",
(Standard_Boolean (BRepPrimAPI_MakeRevol::*)( const TopoDS_Shape & ) ) static_cast<Standard_Boolean (BRepPrimAPI_MakeRevol::*)( const TopoDS_Shape & ) >(&BRepPrimAPI_MakeRevol::IsDeleted),
R"#(Returns true if the shape S has been deleted.)#" , py::arg("S")
)
.def("FirstShape",
(TopoDS_Shape (BRepPrimAPI_MakeRevol::*)( const TopoDS_Shape & ) ) static_cast<TopoDS_Shape (BRepPrimAPI_MakeRevol::*)( const TopoDS_Shape & ) >(&BRepPrimAPI_MakeRevol::FirstShape),
R"#(Returns the TopoDS Shape of the beginning of the revolution, generated with theShape (subShape of the generating shape).)#" , py::arg("theShape")
)
.def("LastShape",
(TopoDS_Shape (BRepPrimAPI_MakeRevol::*)( const TopoDS_Shape & ) ) static_cast<TopoDS_Shape (BRepPrimAPI_MakeRevol::*)( const TopoDS_Shape & ) >(&BRepPrimAPI_MakeRevol::LastShape),
R"#(Returns the TopoDS Shape of the end of the revolution, generated with theShape (subShape of the generating shape).)#" , py::arg("theShape")
)
.def("HasDegenerated",
(Standard_Boolean (BRepPrimAPI_MakeRevol::*)() const) static_cast<Standard_Boolean (BRepPrimAPI_MakeRevol::*)() const>(&BRepPrimAPI_MakeRevol::HasDegenerated),
R"#(Check if there are degenerated edges in the result.)#"
)
// 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("Revol",
(const BRepSweep_Revol & (BRepPrimAPI_MakeRevol::*)() const) static_cast<const BRepSweep_Revol & (BRepPrimAPI_MakeRevol::*)() const>(&BRepPrimAPI_MakeRevol::Revol),
R"#(Returns the internal sweeping algorithm.)#"
)
.def("Degenerated",
(const TopTools_ListOfShape & (BRepPrimAPI_MakeRevol::*)() const) static_cast<const TopTools_ListOfShape & (BRepPrimAPI_MakeRevol::*)() const>(&BRepPrimAPI_MakeRevol::Degenerated),
R"#(Returns the list of degenerated edges)#"
)
;
// Class BRepPrimAPI_MakeRevolution from ./opencascade/BRepPrimAPI_MakeRevolution.hxx
klass = m.attr("BRepPrimAPI_MakeRevolution");
// nested enums
static_cast<py::class_<BRepPrimAPI_MakeRevolution , shared_ptr<BRepPrimAPI_MakeRevolution> , BRepPrimAPI_MakeOneAxis >>(klass)
// constructors
.def(py::init< const opencascade::handle<Geom_Curve> & >() , py::arg("Meridian") )
.def(py::init< const opencascade::handle<Geom_Curve> &,const Standard_Real >() , py::arg("Meridian"), py::arg("angle") )
.def(py::init< const opencascade::handle<Geom_Curve> &,const Standard_Real,const Standard_Real >() , py::arg("Meridian"), py::arg("VMin"), py::arg("VMax") )
.def(py::init< const opencascade::handle<Geom_Curve> &,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("Meridian"), py::arg("VMin"), py::arg("VMax"), py::arg("angle") )
.def(py::init< const gp_Ax2 &,const opencascade::handle<Geom_Curve> & >() , py::arg("Axes"), py::arg("Meridian") )
.def(py::init< const gp_Ax2 &,const opencascade::handle<Geom_Curve> &,const Standard_Real >() , py::arg("Axes"), py::arg("Meridian"), py::arg("angle") )
.def(py::init< const gp_Ax2 &,const opencascade::handle<Geom_Curve> &,const Standard_Real,const Standard_Real >() , py::arg("Axes"), py::arg("Meridian"), py::arg("VMin"), py::arg("VMax") )
.def(py::init< const gp_Ax2 &,const opencascade::handle<Geom_Curve> &,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("Axes"), py::arg("Meridian"), py::arg("VMin"), py::arg("VMax"), py::arg("angle") )
// custom constructors
// methods
.def("OneAxis",
(Standard_Address (BRepPrimAPI_MakeRevolution::*)() ) static_cast<Standard_Address (BRepPrimAPI_MakeRevolution::*)() >(&BRepPrimAPI_MakeRevolution::OneAxis),
R"#(Returns the algorithm.)#"
)
// 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("Revolution",
(BRepPrim_Revolution & (BRepPrimAPI_MakeRevolution::*)() ) static_cast<BRepPrim_Revolution & (BRepPrimAPI_MakeRevolution::*)() >(&BRepPrimAPI_MakeRevolution::Revolution),
R"#(Returns the algorithm.)#"
, py::return_value_policy::reference_internal
)
;
// Class BRepPrimAPI_MakeSphere from ./opencascade/BRepPrimAPI_MakeSphere.hxx
klass = m.attr("BRepPrimAPI_MakeSphere");
// nested enums
static_cast<py::class_<BRepPrimAPI_MakeSphere , shared_ptr<BRepPrimAPI_MakeSphere> , BRepPrimAPI_MakeOneAxis >>(klass)
// constructors
.def(py::init< const Standard_Real >() , py::arg("R") )
.def(py::init< const Standard_Real,const Standard_Real >() , py::arg("R"), py::arg("angle") )
.def(py::init< const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("R"), py::arg("angle1"), py::arg("angle2") )
.def(py::init< const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("R"), py::arg("angle1"), py::arg("angle2"), py::arg("angle3") )
.def(py::init< const gp_Pnt &,const Standard_Real >() , py::arg("Center"), py::arg("R") )
.def(py::init< const gp_Pnt &,const Standard_Real,const Standard_Real >() , py::arg("Center"), py::arg("R"), py::arg("angle") )
.def(py::init< const gp_Pnt &,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("Center"), py::arg("R"), py::arg("angle1"), py::arg("angle2") )
.def(py::init< const gp_Pnt &,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("Center"), py::arg("R"), py::arg("angle1"), py::arg("angle2"), py::arg("angle3") )
.def(py::init< const gp_Ax2 &,const Standard_Real >() , py::arg("Axis"), py::arg("R") )
.def(py::init< const gp_Ax2 &,const Standard_Real,const Standard_Real >() , py::arg("Axis"), py::arg("R"), py::arg("angle") )
.def(py::init< const gp_Ax2 &,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("Axis"), py::arg("R"), py::arg("angle1"), py::arg("angle2") )
.def(py::init< const gp_Ax2 &,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("Axis"), py::arg("R"), py::arg("angle1"), py::arg("angle2"), py::arg("angle3") )
// custom constructors
// methods
.def("OneAxis",
(Standard_Address (BRepPrimAPI_MakeSphere::*)() ) static_cast<Standard_Address (BRepPrimAPI_MakeSphere::*)() >(&BRepPrimAPI_MakeSphere::OneAxis),
R"#(Returns the algorithm.)#"
)
// 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("Sphere",
(BRepPrim_Sphere & (BRepPrimAPI_MakeSphere::*)() ) static_cast<BRepPrim_Sphere & (BRepPrimAPI_MakeSphere::*)() >(&BRepPrimAPI_MakeSphere::Sphere),
R"#(Returns the algorithm.)#"
, py::return_value_policy::reference_internal
)
;
// Class BRepPrimAPI_MakeTorus from ./opencascade/BRepPrimAPI_MakeTorus.hxx
klass = m.attr("BRepPrimAPI_MakeTorus");
// nested enums
static_cast<py::class_<BRepPrimAPI_MakeTorus , shared_ptr<BRepPrimAPI_MakeTorus> , BRepPrimAPI_MakeOneAxis >>(klass)
// constructors
.def(py::init< const Standard_Real,const Standard_Real >() , py::arg("R1"), py::arg("R2") )
.def(py::init< const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("R1"), py::arg("R2"), py::arg("angle") )
.def(py::init< const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("R1"), py::arg("R2"), py::arg("angle1"), py::arg("angle2") )
.def(py::init< const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("R1"), py::arg("R2"), py::arg("angle1"), py::arg("angle2"), py::arg("angle") )
.def(py::init< const gp_Ax2 &,const Standard_Real,const Standard_Real >() , py::arg("Axes"), py::arg("R1"), py::arg("R2") )
.def(py::init< const gp_Ax2 &,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("Axes"), py::arg("R1"), py::arg("R2"), py::arg("angle") )
.def(py::init< const gp_Ax2 &,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("Axes"), py::arg("R1"), py::arg("R2"), py::arg("angle1"), py::arg("angle2") )
.def(py::init< const gp_Ax2 &,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("Axes"), py::arg("R1"), py::arg("R2"), py::arg("angle1"), py::arg("angle2"), py::arg("angle") )
// custom constructors
// methods
.def("OneAxis",
(Standard_Address (BRepPrimAPI_MakeTorus::*)() ) static_cast<Standard_Address (BRepPrimAPI_MakeTorus::*)() >(&BRepPrimAPI_MakeTorus::OneAxis),
R"#(Returns the algorithm.)#"
)
// 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("Torus",
(BRepPrim_Torus & (BRepPrimAPI_MakeTorus::*)() ) static_cast<BRepPrim_Torus & (BRepPrimAPI_MakeTorus::*)() >(&BRepPrimAPI_MakeTorus::Torus),
R"#(Returns the algorithm.)#"
, py::return_value_policy::reference_internal
)
;
// functions
// ./opencascade/BRepPrimAPI_MakeBox.hxx
// ./opencascade/BRepPrimAPI_MakeCone.hxx
// ./opencascade/BRepPrimAPI_MakeCylinder.hxx
// ./opencascade/BRepPrimAPI_MakeHalfSpace.hxx
// ./opencascade/BRepPrimAPI_MakeOneAxis.hxx
// ./opencascade/BRepPrimAPI_MakePrism.hxx
// ./opencascade/BRepPrimAPI_MakeRevol.hxx
// ./opencascade/BRepPrimAPI_MakeRevolution.hxx
// ./opencascade/BRepPrimAPI_MakeSphere.hxx
// ./opencascade/BRepPrimAPI_MakeSweep.hxx
// ./opencascade/BRepPrimAPI_MakeTorus.hxx
// ./opencascade/BRepPrimAPI_MakeWedge.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
|