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
|
// 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 <BOPAlgo_PaveFiller.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 <BOPAlgo_PaveFiller.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <BOPAlgo_PaveFiller.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 <BOPAlgo_PaveFiller.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <BOPAlgo_PaveFiller.hxx>
#include <gp_Pln.hxx>
#include <Geom_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
// module includes
#include <BRepAlgoAPI_Algo.hxx>
#include <BRepAlgoAPI_BooleanOperation.hxx>
#include <BRepAlgoAPI_BuilderAlgo.hxx>
#include <BRepAlgoAPI_Check.hxx>
#include <BRepAlgoAPI_Common.hxx>
#include <BRepAlgoAPI_Cut.hxx>
#include <BRepAlgoAPI_Defeaturing.hxx>
#include <BRepAlgoAPI_Fuse.hxx>
#include <BRepAlgoAPI_Section.hxx>
#include <BRepAlgoAPI_Splitter.hxx>
// template related includes
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
#include <BOPAlgo_Builder.hxx>
// Module definiiton
void register_BRepAlgoAPI(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("BRepAlgoAPI"));
py::object klass;
//Python trampoline classes
// classes
// Class BRepAlgoAPI_Algo from ./opencascade/BRepAlgoAPI_Algo.hxx
klass = m.attr("BRepAlgoAPI_Algo");
// nested enums
static_cast<py::class_<BRepAlgoAPI_Algo , shared_ptr_nodelete<BRepAlgoAPI_Algo> , BRepBuilderAPI_MakeShape >>(klass)
// constructors
// 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
.def("RunParallel",
[]( BRepAlgoAPI_Algo & self){ return self.RunParallel(); },
R"#(Returns the flag of parallel processing.)#"
)
.def("SetRunParallel",
[]( BRepAlgoAPI_Algo & self , const Standard_Boolean theFlag){ self.SetRunParallel(theFlag); },
R"#(Set the flag of parallel processing.)#"
, py::arg("thFlag") )
.def("FuzzyValue",
[]( BRepAlgoAPI_Algo & self){ return self.FuzzyValue(); },
R"#(Returns the additional tolerance.)#"
)
.def("SetFuzzyValue",
[]( BRepAlgoAPI_Algo & self , const Standard_Real theFuzz){ self.SetFuzzyValue(theFuzz); },
R"#(Sets the additional tolerance.)#"
, py::arg("theFuzz") )
.def("SetUseOBB",
[]( BRepAlgoAPI_Algo & self , const Standard_Boolean theFlag){ self.SetUseOBB(theFlag); },
R"#(Set the flag of parallel processing.)#"
, py::arg("thFlag") )
// properties
// methods returning by ref wrapped as properties
.def("Shape",
( const TopoDS_Shape & (BRepAlgoAPI_Algo::*)() ) static_cast< const TopoDS_Shape & (BRepAlgoAPI_Algo::*)() >(&BRepAlgoAPI_Algo::Shape),
R"#(Returns a shape built by the shape construction algorithm. Does not check if the shape is built.)#"
)
;
// Class BRepAlgoAPI_Check from ./opencascade/BRepAlgoAPI_Check.hxx
klass = m.attr("BRepAlgoAPI_Check");
// nested enums
static_cast<py::class_<BRepAlgoAPI_Check , shared_ptr<BRepAlgoAPI_Check> , BOPAlgo_Options >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Shape &, const Standard_Boolean, const Standard_Boolean, const Message_ProgressRange & >() , py::arg("theS"), py::arg("bTestSE")=static_cast< const Standard_Boolean>(Standard_True), py::arg("bTestSI")=static_cast< const Standard_Boolean>(Standard_True), py::arg("theRange")=static_cast< const Message_ProgressRange &>(Message_ProgressRange ( )) )
.def(py::init< const TopoDS_Shape &, const TopoDS_Shape &, const BOPAlgo_Operation, const Standard_Boolean, const Standard_Boolean, const Message_ProgressRange & >() , py::arg("theS1"), py::arg("theS2"), py::arg("theOp")=static_cast< const BOPAlgo_Operation>(BOPAlgo_UNKNOWN), py::arg("bTestSE")=static_cast< const Standard_Boolean>(Standard_True), py::arg("bTestSI")=static_cast< const Standard_Boolean>(Standard_True), py::arg("theRange")=static_cast< const Message_ProgressRange &>(Message_ProgressRange ( )) )
// custom constructors
// methods
.def("SetData",
(void (BRepAlgoAPI_Check::*)( const TopoDS_Shape & , const Standard_Boolean , const Standard_Boolean ) ) static_cast<void (BRepAlgoAPI_Check::*)( const TopoDS_Shape & , const Standard_Boolean , const Standard_Boolean ) >(&BRepAlgoAPI_Check::SetData),
R"#(Initializes the algorithm with single shape.)#" , py::arg("theS"), py::arg("bTestSE")=static_cast< const Standard_Boolean>(Standard_True), py::arg("bTestSI")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("SetData",
(void (BRepAlgoAPI_Check::*)( const TopoDS_Shape & , const TopoDS_Shape & , const BOPAlgo_Operation , const Standard_Boolean , const Standard_Boolean ) ) static_cast<void (BRepAlgoAPI_Check::*)( const TopoDS_Shape & , const TopoDS_Shape & , const BOPAlgo_Operation , const Standard_Boolean , const Standard_Boolean ) >(&BRepAlgoAPI_Check::SetData),
R"#(Initializes the algorithm with couple of shapes. Additionally to the validity checks of each given shape, the types of the given shapes will be checked on validity for Boolean operation of given type.)#" , py::arg("theS1"), py::arg("theS2"), py::arg("theOp")=static_cast< const BOPAlgo_Operation>(BOPAlgo_UNKNOWN), py::arg("bTestSE")=static_cast< const Standard_Boolean>(Standard_True), py::arg("bTestSI")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Perform",
(void (BRepAlgoAPI_Check::*)( const Message_ProgressRange & ) ) static_cast<void (BRepAlgoAPI_Check::*)( const Message_ProgressRange & ) >(&BRepAlgoAPI_Check::Perform),
R"#(Performs the check.)#" , py::arg("theRange")=static_cast< const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("IsValid",
(Standard_Boolean (BRepAlgoAPI_Check::*)() ) static_cast<Standard_Boolean (BRepAlgoAPI_Check::*)() >(&BRepAlgoAPI_Check::IsValid),
R"#(Shows whether shape(s) valid or not.)#"
)
// 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("Result",
( const BOPAlgo_ListOfCheckResult & (BRepAlgoAPI_Check::*)() ) static_cast< const BOPAlgo_ListOfCheckResult & (BRepAlgoAPI_Check::*)() >(&BRepAlgoAPI_Check::Result),
R"#(Returns faulty shapes.)#"
)
;
// Class BRepAlgoAPI_BuilderAlgo from ./opencascade/BRepAlgoAPI_BuilderAlgo.hxx
klass = m.attr("BRepAlgoAPI_BuilderAlgo");
// nested enums
static_cast<py::class_<BRepAlgoAPI_BuilderAlgo , shared_ptr<BRepAlgoAPI_BuilderAlgo> , BRepAlgoAPI_Algo >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const BOPAlgo_PaveFiller & >() , py::arg("thePF") )
// custom constructors
// methods
.def("SetArguments",
(void (BRepAlgoAPI_BuilderAlgo::*)( const TopTools_ListOfShape & ) ) static_cast<void (BRepAlgoAPI_BuilderAlgo::*)( const TopTools_ListOfShape & ) >(&BRepAlgoAPI_BuilderAlgo::SetArguments),
R"#(Sets the arguments)#" , py::arg("theLS")
)
.def("SetNonDestructive",
(void (BRepAlgoAPI_BuilderAlgo::*)( const Standard_Boolean ) ) static_cast<void (BRepAlgoAPI_BuilderAlgo::*)( const Standard_Boolean ) >(&BRepAlgoAPI_BuilderAlgo::SetNonDestructive),
R"#(Sets the flag that defines the mode of treatment. In non-destructive mode the argument shapes are not modified. Instead a copy of a sub-shape is created in the result if it is needed to be updated.)#" , py::arg("theFlag")
)
.def("NonDestructive",
(Standard_Boolean (BRepAlgoAPI_BuilderAlgo::*)() const) static_cast<Standard_Boolean (BRepAlgoAPI_BuilderAlgo::*)() const>(&BRepAlgoAPI_BuilderAlgo::NonDestructive),
R"#(Returns the flag that defines the mode of treatment. In non-destructive mode the argument shapes are not modified. Instead a copy of a sub-shape is created in the result if it is needed to be updated.)#"
)
.def("SetGlue",
(void (BRepAlgoAPI_BuilderAlgo::*)( const BOPAlgo_GlueEnum ) ) static_cast<void (BRepAlgoAPI_BuilderAlgo::*)( const BOPAlgo_GlueEnum ) >(&BRepAlgoAPI_BuilderAlgo::SetGlue),
R"#(Sets the glue option for the algorithm, which allows increasing performance of the intersection of the input shapes.)#" , py::arg("theGlue")
)
.def("Glue",
(BOPAlgo_GlueEnum (BRepAlgoAPI_BuilderAlgo::*)() const) static_cast<BOPAlgo_GlueEnum (BRepAlgoAPI_BuilderAlgo::*)() const>(&BRepAlgoAPI_BuilderAlgo::Glue),
R"#(Returns the glue option of the algorithm)#"
)
.def("SetCheckInverted",
(void (BRepAlgoAPI_BuilderAlgo::*)( const Standard_Boolean ) ) static_cast<void (BRepAlgoAPI_BuilderAlgo::*)( const Standard_Boolean ) >(&BRepAlgoAPI_BuilderAlgo::SetCheckInverted),
R"#(Enables/Disables the check of the input solids for inverted status)#" , py::arg("theCheck")
)
.def("CheckInverted",
(Standard_Boolean (BRepAlgoAPI_BuilderAlgo::*)() const) static_cast<Standard_Boolean (BRepAlgoAPI_BuilderAlgo::*)() const>(&BRepAlgoAPI_BuilderAlgo::CheckInverted),
R"#(Returns the flag defining whether the check for input solids on inverted status should be performed or not.)#"
)
.def("Build",
(void (BRepAlgoAPI_BuilderAlgo::*)( const Message_ProgressRange & ) ) static_cast<void (BRepAlgoAPI_BuilderAlgo::*)( const Message_ProgressRange & ) >(&BRepAlgoAPI_BuilderAlgo::Build),
R"#(Performs the algorithm)#" , py::arg("theRange")=static_cast< const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("SimplifyResult",
(void (BRepAlgoAPI_BuilderAlgo::*)( const Standard_Boolean , const Standard_Boolean , const Standard_Real ) ) static_cast<void (BRepAlgoAPI_BuilderAlgo::*)( const Standard_Boolean , const Standard_Boolean , const Standard_Real ) >(&BRepAlgoAPI_BuilderAlgo::SimplifyResult),
R"#(Simplification of the result shape is performed by the means of *ShapeUpgrade_UnifySameDomain* algorithm. The result of the operation will be overwritten with the simplified result.)#" , py::arg("theUnifyEdges")=static_cast< const Standard_Boolean>(Standard_True), py::arg("theUnifyFaces")=static_cast< const Standard_Boolean>(Standard_True), py::arg("theAngularTol")=static_cast< const Standard_Real>(Precision :: Angular ( ))
)
.def("Modified",
( const TopTools_ListOfShape & (BRepAlgoAPI_BuilderAlgo::*)( const TopoDS_Shape & ) ) static_cast< const TopTools_ListOfShape & (BRepAlgoAPI_BuilderAlgo::*)( const TopoDS_Shape & ) >(&BRepAlgoAPI_BuilderAlgo::Modified),
R"#(Returns the shapes modified from the shape <theS>. If any, the list will contain only those splits of the given shape, contained in the result.)#" , py::arg("theS")
)
.def("Generated",
( const TopTools_ListOfShape & (BRepAlgoAPI_BuilderAlgo::*)( const TopoDS_Shape & ) ) static_cast< const TopTools_ListOfShape & (BRepAlgoAPI_BuilderAlgo::*)( const TopoDS_Shape & ) >(&BRepAlgoAPI_BuilderAlgo::Generated),
R"#(Returns the list of shapes generated from the shape <theS>. In frames of Boolean Operations algorithms only Edges and Faces could have Generated elements, as only they produce new elements during intersection: - Edges can generate new vertices; - Faces can generate new edges and vertices.)#" , py::arg("theS")
)
.def("IsDeleted",
(Standard_Boolean (BRepAlgoAPI_BuilderAlgo::*)( const TopoDS_Shape & ) ) static_cast<Standard_Boolean (BRepAlgoAPI_BuilderAlgo::*)( const TopoDS_Shape & ) >(&BRepAlgoAPI_BuilderAlgo::IsDeleted),
R"#(Checks if the shape <theS> has been completely removed from the result, i.e. the result does not contain the shape itself and any of its splits. Returns TRUE if the shape has been deleted.)#" , py::arg("aS")
)
.def("HasModified",
(Standard_Boolean (BRepAlgoAPI_BuilderAlgo::*)() const) static_cast<Standard_Boolean (BRepAlgoAPI_BuilderAlgo::*)() const>(&BRepAlgoAPI_BuilderAlgo::HasModified),
R"#(Returns true if any of the input shapes has been modified during operation.)#"
)
.def("HasGenerated",
(Standard_Boolean (BRepAlgoAPI_BuilderAlgo::*)() const) static_cast<Standard_Boolean (BRepAlgoAPI_BuilderAlgo::*)() const>(&BRepAlgoAPI_BuilderAlgo::HasGenerated),
R"#(Returns true if any of the input shapes has generated shapes during operation.)#"
)
.def("HasDeleted",
(Standard_Boolean (BRepAlgoAPI_BuilderAlgo::*)() const) static_cast<Standard_Boolean (BRepAlgoAPI_BuilderAlgo::*)() const>(&BRepAlgoAPI_BuilderAlgo::HasDeleted),
R"#(Returns true if any of the input shapes has been deleted during operation. Normally, General Fuse operation should not have Deleted elements, but all derived operation can have.)#"
)
.def("SetToFillHistory",
(void (BRepAlgoAPI_BuilderAlgo::*)( const Standard_Boolean ) ) static_cast<void (BRepAlgoAPI_BuilderAlgo::*)( const Standard_Boolean ) >(&BRepAlgoAPI_BuilderAlgo::SetToFillHistory),
R"#(Allows disabling the history collection)#" , py::arg("theHistFlag")
)
.def("HasHistory",
(Standard_Boolean (BRepAlgoAPI_BuilderAlgo::*)() const) static_cast<Standard_Boolean (BRepAlgoAPI_BuilderAlgo::*)() const>(&BRepAlgoAPI_BuilderAlgo::HasHistory),
R"#(Returns flag of history availability)#"
)
.def("History",
(handle<BRepTools_History> (BRepAlgoAPI_BuilderAlgo::*)() const) static_cast<handle<BRepTools_History> (BRepAlgoAPI_BuilderAlgo::*)() const>(&BRepAlgoAPI_BuilderAlgo::History),
R"#(History tool)#"
)
// 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("Arguments",
( const TopTools_ListOfShape & (BRepAlgoAPI_BuilderAlgo::*)() const) static_cast< const TopTools_ListOfShape & (BRepAlgoAPI_BuilderAlgo::*)() const>(&BRepAlgoAPI_BuilderAlgo::Arguments),
R"#(Gets the arguments)#"
)
.def("SectionEdges",
( const TopTools_ListOfShape & (BRepAlgoAPI_BuilderAlgo::*)() ) static_cast< const TopTools_ListOfShape & (BRepAlgoAPI_BuilderAlgo::*)() >(&BRepAlgoAPI_BuilderAlgo::SectionEdges),
R"#(Returns a list of section edges. The edges represent the result of intersection between arguments of operation.)#"
)
.def("DSFiller",
( const BOPAlgo_PPaveFiller & (BRepAlgoAPI_BuilderAlgo::*)() const) static_cast< const BOPAlgo_PPaveFiller & (BRepAlgoAPI_BuilderAlgo::*)() const>(&BRepAlgoAPI_BuilderAlgo::DSFiller),
R"#(Returns the Intersection tool)#"
)
;
// Class BRepAlgoAPI_Defeaturing from ./opencascade/BRepAlgoAPI_Defeaturing.hxx
klass = m.attr("BRepAlgoAPI_Defeaturing");
// nested enums
static_cast<py::class_<BRepAlgoAPI_Defeaturing , shared_ptr<BRepAlgoAPI_Defeaturing> , BRepAlgoAPI_Algo >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("SetShape",
(void (BRepAlgoAPI_Defeaturing::*)( const TopoDS_Shape & ) ) static_cast<void (BRepAlgoAPI_Defeaturing::*)( const TopoDS_Shape & ) >(&BRepAlgoAPI_Defeaturing::SetShape),
R"#(Sets the shape for processing.)#" , py::arg("theShape")
)
.def("AddFaceToRemove",
(void (BRepAlgoAPI_Defeaturing::*)( const TopoDS_Shape & ) ) static_cast<void (BRepAlgoAPI_Defeaturing::*)( const TopoDS_Shape & ) >(&BRepAlgoAPI_Defeaturing::AddFaceToRemove),
R"#(Adds the features to remove from the input shape.)#" , py::arg("theFace")
)
.def("AddFacesToRemove",
(void (BRepAlgoAPI_Defeaturing::*)( const TopTools_ListOfShape & ) ) static_cast<void (BRepAlgoAPI_Defeaturing::*)( const TopTools_ListOfShape & ) >(&BRepAlgoAPI_Defeaturing::AddFacesToRemove),
R"#(Adds the faces to remove from the input shape.)#" , py::arg("theFaces")
)
.def("Build",
(void (BRepAlgoAPI_Defeaturing::*)( const Message_ProgressRange & ) ) static_cast<void (BRepAlgoAPI_Defeaturing::*)( const Message_ProgressRange & ) >(&BRepAlgoAPI_Defeaturing::Build),
R"#(Performs the operation)#" , py::arg("theRange")=static_cast< const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("SetToFillHistory",
(void (BRepAlgoAPI_Defeaturing::*)( const Standard_Boolean ) ) static_cast<void (BRepAlgoAPI_Defeaturing::*)( const Standard_Boolean ) >(&BRepAlgoAPI_Defeaturing::SetToFillHistory),
R"#(Defines whether to track the modification of the shapes or not.)#" , py::arg("theFlag")
)
.def("HasHistory",
(Standard_Boolean (BRepAlgoAPI_Defeaturing::*)() const) static_cast<Standard_Boolean (BRepAlgoAPI_Defeaturing::*)() const>(&BRepAlgoAPI_Defeaturing::HasHistory),
R"#(Returns whether the history was requested or not.)#"
)
.def("Modified",
( const TopTools_ListOfShape & (BRepAlgoAPI_Defeaturing::*)( const TopoDS_Shape & ) ) static_cast< const TopTools_ListOfShape & (BRepAlgoAPI_Defeaturing::*)( const TopoDS_Shape & ) >(&BRepAlgoAPI_Defeaturing::Modified),
R"#(Returns the list of shapes modified from the shape <theS> during the operation.)#" , py::arg("theS")
)
.def("Generated",
( const TopTools_ListOfShape & (BRepAlgoAPI_Defeaturing::*)( const TopoDS_Shape & ) ) static_cast< const TopTools_ListOfShape & (BRepAlgoAPI_Defeaturing::*)( const TopoDS_Shape & ) >(&BRepAlgoAPI_Defeaturing::Generated),
R"#(Returns the list of shapes generated from the shape <theS> during the operation.)#" , py::arg("theS")
)
.def("IsDeleted",
(Standard_Boolean (BRepAlgoAPI_Defeaturing::*)( const TopoDS_Shape & ) ) static_cast<Standard_Boolean (BRepAlgoAPI_Defeaturing::*)( const TopoDS_Shape & ) >(&BRepAlgoAPI_Defeaturing::IsDeleted),
R"#(Returns true if the shape <theS> has been deleted during the operation. It means that the shape has no any trace in the result. Otherwise it returns false.)#" , py::arg("theS")
)
.def("HasModified",
(Standard_Boolean (BRepAlgoAPI_Defeaturing::*)() const) static_cast<Standard_Boolean (BRepAlgoAPI_Defeaturing::*)() const>(&BRepAlgoAPI_Defeaturing::HasModified),
R"#(Returns true if any of the input shapes has been modified during operation.)#"
)
.def("HasGenerated",
(Standard_Boolean (BRepAlgoAPI_Defeaturing::*)() const) static_cast<Standard_Boolean (BRepAlgoAPI_Defeaturing::*)() const>(&BRepAlgoAPI_Defeaturing::HasGenerated),
R"#(Returns true if any of the input shapes has generated shapes during operation.)#"
)
.def("HasDeleted",
(Standard_Boolean (BRepAlgoAPI_Defeaturing::*)() const) static_cast<Standard_Boolean (BRepAlgoAPI_Defeaturing::*)() const>(&BRepAlgoAPI_Defeaturing::HasDeleted),
R"#(Returns true if any of the input shapes has been deleted during operation.)#"
)
.def("History",
(handle<BRepTools_History> (BRepAlgoAPI_Defeaturing::*)() ) static_cast<handle<BRepTools_History> (BRepAlgoAPI_Defeaturing::*)() >(&BRepAlgoAPI_Defeaturing::History),
R"#(Returns the History of shapes modifications)#"
)
// 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("InputShape",
( const TopoDS_Shape & (BRepAlgoAPI_Defeaturing::*)() const) static_cast< const TopoDS_Shape & (BRepAlgoAPI_Defeaturing::*)() const>(&BRepAlgoAPI_Defeaturing::InputShape),
R"#(Returns the input shape)#"
)
.def("FacesToRemove",
( const TopTools_ListOfShape & (BRepAlgoAPI_Defeaturing::*)() const) static_cast< const TopTools_ListOfShape & (BRepAlgoAPI_Defeaturing::*)() const>(&BRepAlgoAPI_Defeaturing::FacesToRemove),
R"#(Returns the list of faces which have been requested for removal from the input shape.)#"
)
;
// Class BRepAlgoAPI_BooleanOperation from ./opencascade/BRepAlgoAPI_BooleanOperation.hxx
klass = m.attr("BRepAlgoAPI_BooleanOperation");
// nested enums
static_cast<py::class_<BRepAlgoAPI_BooleanOperation , shared_ptr<BRepAlgoAPI_BooleanOperation> , BRepAlgoAPI_BuilderAlgo >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const BOPAlgo_PaveFiller & >() , py::arg("thePF") )
// custom constructors
// methods
.def("SetTools",
(void (BRepAlgoAPI_BooleanOperation::*)( const TopTools_ListOfShape & ) ) static_cast<void (BRepAlgoAPI_BooleanOperation::*)( const TopTools_ListOfShape & ) >(&BRepAlgoAPI_BooleanOperation::SetTools),
R"#(Sets the Tool arguments)#" , py::arg("theLS")
)
.def("SetOperation",
(void (BRepAlgoAPI_BooleanOperation::*)( const BOPAlgo_Operation ) ) static_cast<void (BRepAlgoAPI_BooleanOperation::*)( const BOPAlgo_Operation ) >(&BRepAlgoAPI_BooleanOperation::SetOperation),
R"#(Sets the type of Boolean operation)#" , py::arg("theBOP")
)
.def("Operation",
(BOPAlgo_Operation (BRepAlgoAPI_BooleanOperation::*)() const) static_cast<BOPAlgo_Operation (BRepAlgoAPI_BooleanOperation::*)() const>(&BRepAlgoAPI_BooleanOperation::Operation),
R"#(Returns the type of Boolean Operation)#"
)
.def("Build",
(void (BRepAlgoAPI_BooleanOperation::*)( const Message_ProgressRange & ) ) static_cast<void (BRepAlgoAPI_BooleanOperation::*)( const Message_ProgressRange & ) >(&BRepAlgoAPI_BooleanOperation::Build),
R"#(Performs the Boolean operation.)#" , 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("Shape1",
( const TopoDS_Shape & (BRepAlgoAPI_BooleanOperation::*)() const) static_cast< const TopoDS_Shape & (BRepAlgoAPI_BooleanOperation::*)() const>(&BRepAlgoAPI_BooleanOperation::Shape1),
R"#(Returns the first argument involved in this Boolean operation. Obsolete)#"
)
.def("Shape2",
( const TopoDS_Shape & (BRepAlgoAPI_BooleanOperation::*)() const) static_cast< const TopoDS_Shape & (BRepAlgoAPI_BooleanOperation::*)() const>(&BRepAlgoAPI_BooleanOperation::Shape2),
R"#(Returns the second argument involved in this Boolean operation. Obsolete)#"
)
.def("Tools",
( const TopTools_ListOfShape & (BRepAlgoAPI_BooleanOperation::*)() const) static_cast< const TopTools_ListOfShape & (BRepAlgoAPI_BooleanOperation::*)() const>(&BRepAlgoAPI_BooleanOperation::Tools),
R"#(Returns the Tools arguments)#"
)
;
// Class BRepAlgoAPI_Splitter from ./opencascade/BRepAlgoAPI_Splitter.hxx
klass = m.attr("BRepAlgoAPI_Splitter");
// nested enums
static_cast<py::class_<BRepAlgoAPI_Splitter , shared_ptr<BRepAlgoAPI_Splitter> , BRepAlgoAPI_BuilderAlgo >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const BOPAlgo_PaveFiller & >() , py::arg("thePF") )
// custom constructors
// methods
.def("SetTools",
(void (BRepAlgoAPI_Splitter::*)( const TopTools_ListOfShape & ) ) static_cast<void (BRepAlgoAPI_Splitter::*)( const TopTools_ListOfShape & ) >(&BRepAlgoAPI_Splitter::SetTools),
R"#(Sets the Tool arguments)#" , py::arg("theLS")
)
.def("Build",
(void (BRepAlgoAPI_Splitter::*)( const Message_ProgressRange & ) ) static_cast<void (BRepAlgoAPI_Splitter::*)( const Message_ProgressRange & ) >(&BRepAlgoAPI_Splitter::Build),
R"#(Performs the Split operation. Performs the intersection of the argument shapes (both objects and tools) and splits objects by the tools.)#" , 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("Tools",
( const TopTools_ListOfShape & (BRepAlgoAPI_Splitter::*)() const) static_cast< const TopTools_ListOfShape & (BRepAlgoAPI_Splitter::*)() const>(&BRepAlgoAPI_Splitter::Tools),
R"#(Returns the Tool arguments)#"
)
;
// Class BRepAlgoAPI_Common from ./opencascade/BRepAlgoAPI_Common.hxx
klass = m.attr("BRepAlgoAPI_Common");
// nested enums
static_cast<py::class_<BRepAlgoAPI_Common , shared_ptr<BRepAlgoAPI_Common> , BRepAlgoAPI_BooleanOperation >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const BOPAlgo_PaveFiller & >() , py::arg("PF") )
.def(py::init< const TopoDS_Shape &, const TopoDS_Shape &, const Message_ProgressRange & >() , py::arg("S1"), py::arg("S2"), py::arg("theRange")=static_cast< const Message_ProgressRange &>(Message_ProgressRange ( )) )
.def(py::init< const TopoDS_Shape &, const TopoDS_Shape &, const BOPAlgo_PaveFiller &, const Message_ProgressRange & >() , py::arg("S1"), py::arg("S2"), py::arg("PF"), py::arg("theRange")=static_cast< const Message_ProgressRange &>(Message_ProgressRange ( )) )
// 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
;
// Class BRepAlgoAPI_Cut from ./opencascade/BRepAlgoAPI_Cut.hxx
klass = m.attr("BRepAlgoAPI_Cut");
// nested enums
static_cast<py::class_<BRepAlgoAPI_Cut , shared_ptr<BRepAlgoAPI_Cut> , BRepAlgoAPI_BooleanOperation >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const BOPAlgo_PaveFiller & >() , py::arg("PF") )
.def(py::init< const TopoDS_Shape &, const TopoDS_Shape &, const Message_ProgressRange & >() , py::arg("S1"), py::arg("S2"), py::arg("theRange")=static_cast< const Message_ProgressRange &>(Message_ProgressRange ( )) )
.def(py::init< const TopoDS_Shape &, const TopoDS_Shape &, const BOPAlgo_PaveFiller &, const Standard_Boolean, const Message_ProgressRange & >() , py::arg("S1"), py::arg("S2"), py::arg("aDSF"), py::arg("bFWD")=static_cast< const Standard_Boolean>(Standard_True), py::arg("theRange")=static_cast< const Message_ProgressRange &>(Message_ProgressRange ( )) )
// 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
;
// Class BRepAlgoAPI_Fuse from ./opencascade/BRepAlgoAPI_Fuse.hxx
klass = m.attr("BRepAlgoAPI_Fuse");
// nested enums
static_cast<py::class_<BRepAlgoAPI_Fuse , shared_ptr<BRepAlgoAPI_Fuse> , BRepAlgoAPI_BooleanOperation >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const BOPAlgo_PaveFiller & >() , py::arg("PF") )
.def(py::init< const TopoDS_Shape &, const TopoDS_Shape &, const Message_ProgressRange & >() , py::arg("S1"), py::arg("S2"), py::arg("theRange")=static_cast< const Message_ProgressRange &>(Message_ProgressRange ( )) )
.def(py::init< const TopoDS_Shape &, const TopoDS_Shape &, const BOPAlgo_PaveFiller &, const Message_ProgressRange & >() , py::arg("S1"), py::arg("S2"), py::arg("aDSF"), py::arg("theRange")=static_cast< const Message_ProgressRange &>(Message_ProgressRange ( )) )
// 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
;
// Class BRepAlgoAPI_Section from ./opencascade/BRepAlgoAPI_Section.hxx
klass = m.attr("BRepAlgoAPI_Section");
// nested enums
static_cast<py::class_<BRepAlgoAPI_Section , shared_ptr<BRepAlgoAPI_Section> , BRepAlgoAPI_BooleanOperation >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const BOPAlgo_PaveFiller & >() , py::arg("PF") )
.def(py::init< const TopoDS_Shape &, const TopoDS_Shape &, const Standard_Boolean >() , py::arg("S1"), py::arg("S2"), py::arg("PerformNow")=static_cast< const Standard_Boolean>(Standard_True) )
.def(py::init< const TopoDS_Shape &, const TopoDS_Shape &, const BOPAlgo_PaveFiller &, const Standard_Boolean >() , py::arg("S1"), py::arg("S2"), py::arg("aDSF"), py::arg("PerformNow")=static_cast< const Standard_Boolean>(Standard_True) )
.def(py::init< const TopoDS_Shape &, const gp_Pln &, const Standard_Boolean >() , py::arg("S1"), py::arg("Pl"), py::arg("PerformNow")=static_cast< const Standard_Boolean>(Standard_True) )
.def(py::init< const TopoDS_Shape &, const handle<Geom_Surface> &, const Standard_Boolean >() , py::arg("S1"), py::arg("Sf"), py::arg("PerformNow")=static_cast< const Standard_Boolean>(Standard_True) )
.def(py::init< const handle<Geom_Surface> &, const TopoDS_Shape &, const Standard_Boolean >() , py::arg("Sf"), py::arg("S2"), py::arg("PerformNow")=static_cast< const Standard_Boolean>(Standard_True) )
.def(py::init< const handle<Geom_Surface> &, const handle<Geom_Surface> &, const Standard_Boolean >() , py::arg("Sf1"), py::arg("Sf2"), py::arg("PerformNow")=static_cast< const Standard_Boolean>(Standard_True) )
// custom constructors
// methods
.def("Init1",
(void (BRepAlgoAPI_Section::*)( const TopoDS_Shape & ) ) static_cast<void (BRepAlgoAPI_Section::*)( const TopoDS_Shape & ) >(&BRepAlgoAPI_Section::Init1),
R"#(initialize the argument <S1> - argument Obsolete)#" , py::arg("S1")
)
.def("Init1",
(void (BRepAlgoAPI_Section::*)( const gp_Pln & ) ) static_cast<void (BRepAlgoAPI_Section::*)( const gp_Pln & ) >(&BRepAlgoAPI_Section::Init1),
R"#(initialize the argument <Pl> - argument Obsolete)#" , py::arg("Pl")
)
.def("Init1",
(void (BRepAlgoAPI_Section::*)( const handle<Geom_Surface> & ) ) static_cast<void (BRepAlgoAPI_Section::*)( const handle<Geom_Surface> & ) >(&BRepAlgoAPI_Section::Init1),
R"#(initialize the argument <Sf> - argument Obsolete)#" , py::arg("Sf")
)
.def("Init2",
(void (BRepAlgoAPI_Section::*)( const TopoDS_Shape & ) ) static_cast<void (BRepAlgoAPI_Section::*)( const TopoDS_Shape & ) >(&BRepAlgoAPI_Section::Init2),
R"#(initialize the tool <S2> - tool Obsolete)#" , py::arg("S2")
)
.def("Init2",
(void (BRepAlgoAPI_Section::*)( const gp_Pln & ) ) static_cast<void (BRepAlgoAPI_Section::*)( const gp_Pln & ) >(&BRepAlgoAPI_Section::Init2),
R"#(initialize the tool <Pl> - tool Obsolete)#" , py::arg("Pl")
)
.def("Init2",
(void (BRepAlgoAPI_Section::*)( const handle<Geom_Surface> & ) ) static_cast<void (BRepAlgoAPI_Section::*)( const handle<Geom_Surface> & ) >(&BRepAlgoAPI_Section::Init2),
R"#(initialize the tool <Sf> - tool Obsolete)#" , py::arg("Sf")
)
.def("Approximation",
(void (BRepAlgoAPI_Section::*)( const Standard_Boolean ) ) static_cast<void (BRepAlgoAPI_Section::*)( const Standard_Boolean ) >(&BRepAlgoAPI_Section::Approximation),
R"#()#" , py::arg("B")
)
.def("ComputePCurveOn1",
(void (BRepAlgoAPI_Section::*)( const Standard_Boolean ) ) static_cast<void (BRepAlgoAPI_Section::*)( const Standard_Boolean ) >(&BRepAlgoAPI_Section::ComputePCurveOn1),
R"#(Indicates whether the P-Curve should be (or not) performed on the argument. By default, no parametric 2D curve (pcurve) is defined for the edges of the result. If ComputePCurve1 equals true, further computations performed to attach an P-Curve in the parametric space of the argument to the constructed edges. Obsolete)#" , py::arg("B")
)
.def("ComputePCurveOn2",
(void (BRepAlgoAPI_Section::*)( const Standard_Boolean ) ) static_cast<void (BRepAlgoAPI_Section::*)( const Standard_Boolean ) >(&BRepAlgoAPI_Section::ComputePCurveOn2),
R"#(Indicates whether the P-Curve should be (or not) performed on the tool. By default, no parametric 2D curve (pcurve) is defined for the edges of the result. If ComputePCurve1 equals true, further computations performed to attach an P-Curve in the parametric space of the tool to the constructed edges. Obsolete)#" , py::arg("B")
)
.def("Build",
(void (BRepAlgoAPI_Section::*)( const Message_ProgressRange & ) ) static_cast<void (BRepAlgoAPI_Section::*)( const Message_ProgressRange & ) >(&BRepAlgoAPI_Section::Build),
R"#(Performs the algorithm Filling interference Data Structure (if it is necessary) Building the result of the operation.)#" , py::arg("theRange")=static_cast< const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("HasAncestorFaceOn1",
(Standard_Boolean (BRepAlgoAPI_Section::*)( const TopoDS_Shape & , TopoDS_Shape & ) const) static_cast<Standard_Boolean (BRepAlgoAPI_Section::*)( const TopoDS_Shape & , TopoDS_Shape & ) const>(&BRepAlgoAPI_Section::HasAncestorFaceOn1),
R"#(get the face of the first part giving section edge <E>. Returns True on the 3 following conditions : 1/ <E> is an edge returned by the Shape() metwod. 2/ First part of section performed is a shape. 3/ <E> is built on a intersection curve (i.e <E> is not the result of common edges) When False, F remains untouched. Obsolete)#" , py::arg("E"), py::arg("F")
)
.def("HasAncestorFaceOn2",
(Standard_Boolean (BRepAlgoAPI_Section::*)( const TopoDS_Shape & , TopoDS_Shape & ) const) static_cast<Standard_Boolean (BRepAlgoAPI_Section::*)( const TopoDS_Shape & , TopoDS_Shape & ) const>(&BRepAlgoAPI_Section::HasAncestorFaceOn2),
R"#(Identifies the ancestor faces of the intersection edge E resulting from the last computation performed in this framework, that is, the faces of the two original shapes on which the edge E lies: - HasAncestorFaceOn1 gives the ancestor face in the first shape, and - HasAncestorFaceOn2 gives the ancestor face in the second shape. These functions return true if an ancestor face F is found, or false if not. An ancestor face is identifiable for the edge E if the following conditions are satisfied: - the first part on which this algorithm performed its last computation is a shape, that is, it was not given as a surface or a plane at the time of construction of this algorithm or at a later time by the Init1 function, - E is one of the elementary edges built by the last computation of this section algorithm. To use these functions properly, you have to test the returned Boolean value before using the ancestor face: F is significant only if the returned Boolean value equals true. Obsolete)#" , py::arg("E"), py::arg("F")
)
// 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/BRepAlgoAPI_Algo.hxx
// ./opencascade/BRepAlgoAPI_BooleanOperation.hxx
// ./opencascade/BRepAlgoAPI_BuilderAlgo.hxx
// ./opencascade/BRepAlgoAPI_Check.hxx
// ./opencascade/BRepAlgoAPI_Common.hxx
// ./opencascade/BRepAlgoAPI_Cut.hxx
// ./opencascade/BRepAlgoAPI_Defeaturing.hxx
// ./opencascade/BRepAlgoAPI_Fuse.hxx
// ./opencascade/BRepAlgoAPI_Section.hxx
// ./opencascade/BRepAlgoAPI_Splitter.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
|