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 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327
|
// 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 <TopoDS_Face.hxx>
#include <TopoDS_Wire.hxx>
#include <TopoDS_Edge.hxx>
#include <Bnd_Box2d.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopoDS_Shell.hxx>
#include <TopoDS_Solid.hxx>
#include <TopoDS_CompSolid.hxx>
#include <TopoDS_Compound.hxx>
#include <BRep_Builder.hxx>
#include <Geom_Curve.hxx>
#include <Geom2d_Curve.hxx>
#include <Geom_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 <Geom_Surface.hxx>
#include <TopLoc_Location.hxx>
#include <TopoDS_Edge.hxx>
#include <Geom_Curve.hxx>
#include <TopoDS_Vertex.hxx>
#include <Geom2d_Curve.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 <Geom_Surface.hxx>
#include <TopLoc_Location.hxx>
#include <TopoDS_Edge.hxx>
#include <Geom_Curve.hxx>
#include <TopoDS_Vertex.hxx>
#include <gp_Pnt.hxx>
#include <Geom2d_Curve.hxx>
#include <Poly_Triangulation.hxx>
#include <Poly_Polygon3D.hxx>
#include <Poly_PolygonOnTriangulation.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <BRepTools_Modification.hxx>
#include <Geom_Curve.hxx>
#include <Geom_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Face.hxx>
#include <Geom_Surface.hxx>
#include <TopoDS_Edge.hxx>
#include <Geom_Curve.hxx>
#include <TopoDS_Vertex.hxx>
#include <Geom2d_Curve.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_Edge.hxx>
#include <TopoDS_Vertex.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 <TopoDS_Face.hxx>
#include <Geom_Surface.hxx>
#include <TopLoc_Location.hxx>
#include <TopoDS_Edge.hxx>
#include <Geom_Curve.hxx>
#include <TopoDS_Vertex.hxx>
#include <Geom2d_Curve.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Wire.hxx>
// module includes
#include <BRepTools.hxx>
#include <BRepTools_CopyModification.hxx>
#include <BRepTools_DataMapIteratorOfMapOfVertexPnt2d.hxx>
#include <BRepTools_GTrsfModification.hxx>
#include <BRepTools_History.hxx>
#include <BRepTools_MapOfVertexPnt2d.hxx>
#include <BRepTools_Modification.hxx>
#include <BRepTools_Modifier.hxx>
#include <BRepTools_NurbsConvertModification.hxx>
#include <BRepTools_PurgeLocations.hxx>
#include <BRepTools_Quilt.hxx>
#include <BRepTools_ReShape.hxx>
#include <BRepTools_ShapeSet.hxx>
#include <BRepTools_Substitution.hxx>
#include <BRepTools_TrsfModification.hxx>
#include <BRepTools_WireExplorer.hxx>
// template related includes
// ./opencascade/BRepTools_MapOfVertexPnt2d.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/BRepTools_MapOfVertexPnt2d.hxx
#include "NCollection_tmpl.hxx"
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
#include <OSD_FileSystem.hxx>
// Module definiiton
void register_BRepTools(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("BRepTools"));
py::object klass;
//Python trampoline classes
class Py_BRepTools_Modification : public BRepTools_Modification{
public:
using BRepTools_Modification::BRepTools_Modification;
// public pure virtual
Standard_Boolean NewSurface(const TopoDS_Face & F,opencascade::handle<Geom_Surface> & S,TopLoc_Location & L,Standard_Real & Tol,Standard_Boolean & RevWires,Standard_Boolean & RevFace) override { PYBIND11_OVERLOAD_PURE(Standard_Boolean,BRepTools_Modification,NewSurface,F,S,L,Tol,RevWires,RevFace) };
Standard_Boolean NewCurve(const TopoDS_Edge & E,opencascade::handle<Geom_Curve> & C,TopLoc_Location & L,Standard_Real & Tol) override { PYBIND11_OVERLOAD_PURE(Standard_Boolean,BRepTools_Modification,NewCurve,E,C,L,Tol) };
Standard_Boolean NewPoint(const TopoDS_Vertex & V,gp_Pnt & P,Standard_Real & Tol) override { PYBIND11_OVERLOAD_PURE(Standard_Boolean,BRepTools_Modification,NewPoint,V,P,Tol) };
Standard_Boolean NewCurve2d(const TopoDS_Edge & E,const TopoDS_Face & F,const TopoDS_Edge & NewE,const TopoDS_Face & NewF,opencascade::handle<Geom2d_Curve> & C,Standard_Real & Tol) override { PYBIND11_OVERLOAD_PURE(Standard_Boolean,BRepTools_Modification,NewCurve2d,E,F,NewE,NewF,C,Tol) };
Standard_Boolean NewParameter(const TopoDS_Vertex & V,const TopoDS_Edge & E,Standard_Real & P,Standard_Real & Tol) override { PYBIND11_OVERLOAD_PURE(Standard_Boolean,BRepTools_Modification,NewParameter,V,E,P,Tol) };
GeomAbs_Shape Continuity(const TopoDS_Edge & E,const TopoDS_Face & F1,const TopoDS_Face & F2,const TopoDS_Edge & NewE,const TopoDS_Face & NewF1,const TopoDS_Face & NewF2) override { PYBIND11_OVERLOAD_PURE(GeomAbs_Shape,BRepTools_Modification,Continuity,E,F1,F2,NewE,NewF1,NewF2) };
// protected pure virtual
// private pure virtual
};
// classes
// Class BRepTools from ./opencascade/BRepTools.hxx
klass = m.attr("BRepTools");
// default constructor
register_default_constructor<BRepTools , shared_ptr<BRepTools>>(m,"BRepTools");
// nested enums
static_cast<py::class_<BRepTools , shared_ptr<BRepTools> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("AddUVBounds_s",
(void (*)( const TopoDS_Face & , Bnd_Box2d & ) ) static_cast<void (*)( const TopoDS_Face & , Bnd_Box2d & ) >(&BRepTools::AddUVBounds),
R"#(Adds to the box <B> the bounding values in the parametric space of F.)#" , py::arg("F"), py::arg("B")
)
.def_static("AddUVBounds_s",
(void (*)( const TopoDS_Face & , const TopoDS_Wire & , Bnd_Box2d & ) ) static_cast<void (*)( const TopoDS_Face & , const TopoDS_Wire & , Bnd_Box2d & ) >(&BRepTools::AddUVBounds),
R"#(Adds to the box <B> the bounding values of the wire in the parametric space of F.)#" , py::arg("F"), py::arg("W"), py::arg("B")
)
.def_static("AddUVBounds_s",
(void (*)( const TopoDS_Face & , const TopoDS_Edge & , Bnd_Box2d & ) ) static_cast<void (*)( const TopoDS_Face & , const TopoDS_Edge & , Bnd_Box2d & ) >(&BRepTools::AddUVBounds),
R"#(Adds to the box <B> the bounding values of the edge in the parametric space of F.)#" , py::arg("F"), py::arg("E"), py::arg("B")
)
.def_static("Update_s",
(void (*)( const TopoDS_Vertex & ) ) static_cast<void (*)( const TopoDS_Vertex & ) >(&BRepTools::Update),
R"#(Update a vertex (nothing is done))#" , py::arg("V")
)
.def_static("Update_s",
(void (*)( const TopoDS_Edge & ) ) static_cast<void (*)( const TopoDS_Edge & ) >(&BRepTools::Update),
R"#(Update an edge, compute 2d bounding boxes.)#" , py::arg("E")
)
.def_static("Update_s",
(void (*)( const TopoDS_Wire & ) ) static_cast<void (*)( const TopoDS_Wire & ) >(&BRepTools::Update),
R"#(Update a wire (nothing is done))#" , py::arg("W")
)
.def_static("Update_s",
(void (*)( const TopoDS_Face & ) ) static_cast<void (*)( const TopoDS_Face & ) >(&BRepTools::Update),
R"#(Update a Face, update UV points.)#" , py::arg("F")
)
.def_static("Update_s",
(void (*)( const TopoDS_Shell & ) ) static_cast<void (*)( const TopoDS_Shell & ) >(&BRepTools::Update),
R"#(Update a shell (nothing is done))#" , py::arg("S")
)
.def_static("Update_s",
(void (*)( const TopoDS_Solid & ) ) static_cast<void (*)( const TopoDS_Solid & ) >(&BRepTools::Update),
R"#(Update a solid (nothing is done))#" , py::arg("S")
)
.def_static("Update_s",
(void (*)( const TopoDS_CompSolid & ) ) static_cast<void (*)( const TopoDS_CompSolid & ) >(&BRepTools::Update),
R"#(Update a composite solid (nothing is done))#" , py::arg("C")
)
.def_static("Update_s",
(void (*)( const TopoDS_Compound & ) ) static_cast<void (*)( const TopoDS_Compound & ) >(&BRepTools::Update),
R"#(Update a compound (nothing is done))#" , py::arg("C")
)
.def_static("Update_s",
(void (*)( const TopoDS_Shape & ) ) static_cast<void (*)( const TopoDS_Shape & ) >(&BRepTools::Update),
R"#(Update a shape, call the correct update.)#" , py::arg("S")
)
.def_static("UpdateFaceUVPoints_s",
(void (*)( const TopoDS_Face & ) ) static_cast<void (*)( const TopoDS_Face & ) >(&BRepTools::UpdateFaceUVPoints),
R"#(For each edge of the face <F> reset the UV points to the bounding points of the parametric curve of the edge on the face.)#" , py::arg("theF")
)
.def_static("Clean_s",
(void (*)( const TopoDS_Shape & , const Standard_Boolean ) ) static_cast<void (*)( const TopoDS_Shape & , const Standard_Boolean ) >(&BRepTools::Clean),
R"#(Removes all cached polygonal representation of the shape, i.e. the triangulations of the faces of <S> and polygons on triangulations and polygons 3d of the edges. In case polygonal representation is the only available representation for the shape (shape does not have geometry) it is not removed.)#" , py::arg("theShape"), py::arg("theForce")=static_cast<const Standard_Boolean>(Standard_False)
)
.def_static("CleanGeometry_s",
(void (*)( const TopoDS_Shape & ) ) static_cast<void (*)( const TopoDS_Shape & ) >(&BRepTools::CleanGeometry),
R"#(Removes geometry (curves and surfaces) from all edges and faces of the shape)#" , py::arg("theShape")
)
.def_static("RemoveUnusedPCurves_s",
(void (*)( const TopoDS_Shape & ) ) static_cast<void (*)( const TopoDS_Shape & ) >(&BRepTools::RemoveUnusedPCurves),
R"#(Removes all the pcurves of the edges of <S> that refer to surfaces not belonging to any face of <S>)#" , py::arg("S")
)
.def_static("Triangulation_s",
(Standard_Boolean (*)( const TopoDS_Shape & , const Standard_Real , const Standard_Boolean ) ) static_cast<Standard_Boolean (*)( const TopoDS_Shape & , const Standard_Real , const Standard_Boolean ) >(&BRepTools::Triangulation),
R"#(Verifies that each Face from the shape has got a triangulation with a deflection smaller or equal to specified one and the Edges a discretization on this triangulation.)#" , py::arg("theShape"), py::arg("theLinDefl"), py::arg("theToCheckFreeEdges")=static_cast<const Standard_Boolean>(Standard_False)
)
.def_static("LoadTriangulation_s",
(Standard_Boolean (*)( const TopoDS_Shape & , const Standard_Integer , const Standard_Boolean , const opencascade::handle<OSD_FileSystem> & ) ) static_cast<Standard_Boolean (*)( const TopoDS_Shape & , const Standard_Integer , const Standard_Boolean , const opencascade::handle<OSD_FileSystem> & ) >(&BRepTools::LoadTriangulation),
R"#(Loads triangulation data for each face of the shape from some deferred storage using specified shared input file system)#" , py::arg("theShape"), py::arg("theTriangulationIdx")=static_cast<const Standard_Integer>(- 1), py::arg("theToSetAsActive")=static_cast<const Standard_Boolean>(Standard_False), py::arg("theFileSystem")=static_cast<const opencascade::handle<OSD_FileSystem> &>(Handle ( OSD_FileSystem ) ( ))
)
.def_static("UnloadTriangulation_s",
(Standard_Boolean (*)( const TopoDS_Shape & , const Standard_Integer ) ) static_cast<Standard_Boolean (*)( const TopoDS_Shape & , const Standard_Integer ) >(&BRepTools::UnloadTriangulation),
R"#(Releases triangulation data for each face of the shape if there is deferred storage to load it later)#" , py::arg("theShape"), py::arg("theTriangulationIdx")=static_cast<const Standard_Integer>(- 1)
)
.def_static("ActivateTriangulation_s",
(Standard_Boolean (*)( const TopoDS_Shape & , const Standard_Integer , const Standard_Boolean ) ) static_cast<Standard_Boolean (*)( const TopoDS_Shape & , const Standard_Integer , const Standard_Boolean ) >(&BRepTools::ActivateTriangulation),
R"#(Activates triangulation data for each face of the shape from some deferred storage using specified shared input file system)#" , py::arg("theShape"), py::arg("theTriangulationIdx"), py::arg("theToActivateStrictly")=static_cast<const Standard_Boolean>(false)
)
.def_static("LoadAllTriangulations_s",
(Standard_Boolean (*)( const TopoDS_Shape & , const opencascade::handle<OSD_FileSystem> & ) ) static_cast<Standard_Boolean (*)( const TopoDS_Shape & , const opencascade::handle<OSD_FileSystem> & ) >(&BRepTools::LoadAllTriangulations),
R"#(Loads all available triangulations for each face of the shape from some deferred storage using specified shared input file system)#" , py::arg("theShape"), py::arg("theFileSystem")=static_cast<const opencascade::handle<OSD_FileSystem> &>(Handle ( OSD_FileSystem ) ( ))
)
.def_static("UnloadAllTriangulations_s",
(Standard_Boolean (*)( const TopoDS_Shape & ) ) static_cast<Standard_Boolean (*)( const TopoDS_Shape & ) >(&BRepTools::UnloadAllTriangulations),
R"#(Releases all available triangulations for each face of the shape if there is deferred storage to load them later)#" , py::arg("theShape")
)
.def_static("Compare_s",
(Standard_Boolean (*)( const TopoDS_Vertex & , const TopoDS_Vertex & ) ) static_cast<Standard_Boolean (*)( const TopoDS_Vertex & , const TopoDS_Vertex & ) >(&BRepTools::Compare),
R"#(Returns True if the distance between the two vertices is lower than their tolerance.)#" , py::arg("V1"), py::arg("V2")
)
.def_static("Compare_s",
(Standard_Boolean (*)( const TopoDS_Edge & , const TopoDS_Edge & ) ) static_cast<Standard_Boolean (*)( const TopoDS_Edge & , const TopoDS_Edge & ) >(&BRepTools::Compare),
R"#(Returns True if the distance between the two edges is lower than their tolerance.)#" , py::arg("E1"), py::arg("E2")
)
.def_static("OuterWire_s",
(TopoDS_Wire (*)( const TopoDS_Face & ) ) static_cast<TopoDS_Wire (*)( const TopoDS_Face & ) >(&BRepTools::OuterWire),
R"#(Returns the outer most wire of <F>. Returns a Null wire if <F> has no wires.)#" , py::arg("F")
)
.def_static("Map3DEdges_s",
(void (*)( const TopoDS_Shape & , NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher> & ) ) static_cast<void (*)( const TopoDS_Shape & , NCollection_IndexedMap<TopoDS_Shape, TopTools_ShapeMapHasher> & ) >(&BRepTools::Map3DEdges),
R"#(Stores in the map <M> all the 3D topology edges of <S>.)#" , py::arg("S"), py::arg("M")
)
.def_static("IsReallyClosed_s",
(Standard_Boolean (*)( const TopoDS_Edge & , const TopoDS_Face & ) ) static_cast<Standard_Boolean (*)( const TopoDS_Edge & , const TopoDS_Face & ) >(&BRepTools::IsReallyClosed),
R"#(Verifies that the edge <E> is found two times on the face <F> before calling BRep_Tool::IsClosed.)#" , py::arg("E"), py::arg("F")
)
.def_static("Dump_s",
(void (*)( const TopoDS_Shape & , std::ostream & ) ) static_cast<void (*)( const TopoDS_Shape & , std::ostream & ) >(&BRepTools::Dump),
R"#(Dumps the topological structure and the geometry of <Sh> on the stream <S>.)#" , py::arg("Sh"), py::arg("S")
)
.def_static("Write_s",
(void (*)( const TopoDS_Shape & , std::ostream & , const Message_ProgressRange & ) ) static_cast<void (*)( const TopoDS_Shape & , std::ostream & , const Message_ProgressRange & ) >(&BRepTools::Write),
R"#(Writes the shape to the stream in an ASCII format TopTools_FormatVersion_VERSION_1. This alias writes shape with triangulation data.)#" , py::arg("theShape"), py::arg("theStream"), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def_static("Write_s",
(void (*)( const TopoDS_Shape & , std::ostream & , const Standard_Boolean , const Standard_Boolean , const TopTools_FormatVersion , const Message_ProgressRange & ) ) static_cast<void (*)( const TopoDS_Shape & , std::ostream & , const Standard_Boolean , const Standard_Boolean , const TopTools_FormatVersion , const Message_ProgressRange & ) >(&BRepTools::Write),
R"#(Writes the shape to the stream in an ASCII format of specified version.)#" , py::arg("theShape"), py::arg("theStream"), py::arg("theWithTriangles"), py::arg("theWithNormals"), py::arg("theVersion"), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def_static("Read_s",
(void (*)( TopoDS_Shape & , std::istream & , const BRep_Builder & , const Message_ProgressRange & ) ) static_cast<void (*)( TopoDS_Shape & , std::istream & , const BRep_Builder & , const Message_ProgressRange & ) >(&BRepTools::Read),
R"#(Reads a Shape from <S> in returns it in <Sh>. <B> is used to build the shape.)#" , py::arg("Sh"), py::arg("S"), py::arg("B"), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def_static("Write_s",
(Standard_Boolean (*)( const TopoDS_Shape & , const Standard_CString , const Message_ProgressRange & ) ) static_cast<Standard_Boolean (*)( const TopoDS_Shape & , const Standard_CString , const Message_ProgressRange & ) >(&BRepTools::Write),
R"#(Writes the shape to the file in an ASCII format TopTools_FormatVersion_VERSION_1. This alias writes shape with triangulation data.)#" , py::arg("theShape"), py::arg("theFile"), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def_static("Write_s",
(Standard_Boolean (*)( const TopoDS_Shape & , const Standard_CString , const Standard_Boolean , const Standard_Boolean , const TopTools_FormatVersion , const Message_ProgressRange & ) ) static_cast<Standard_Boolean (*)( const TopoDS_Shape & , const Standard_CString , const Standard_Boolean , const Standard_Boolean , const TopTools_FormatVersion , const Message_ProgressRange & ) >(&BRepTools::Write),
R"#(Writes the shape to the file in an ASCII format of specified version.)#" , py::arg("theShape"), py::arg("theFile"), py::arg("theWithTriangles"), py::arg("theWithNormals"), py::arg("theVersion"), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def_static("Read_s",
(Standard_Boolean (*)( TopoDS_Shape & , const Standard_CString , const BRep_Builder & , const Message_ProgressRange & ) ) static_cast<Standard_Boolean (*)( TopoDS_Shape & , const Standard_CString , const BRep_Builder & , const Message_ProgressRange & ) >(&BRepTools::Read),
R"#(Reads a Shape from <File>, returns it in <Sh>. <B> is used to build the shape.)#" , py::arg("Sh"), py::arg("File"), py::arg("B"), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def_static("EvalAndUpdateTol_s",
(Standard_Real (*)( const TopoDS_Edge & , const opencascade::handle<Geom_Curve> & , const opencascade::handle<Geom2d_Curve> & , const opencascade::handle<Geom_Surface> & , const Standard_Real , const Standard_Real ) ) static_cast<Standard_Real (*)( const TopoDS_Edge & , const opencascade::handle<Geom_Curve> & , const opencascade::handle<Geom2d_Curve> & , const opencascade::handle<Geom_Surface> & , const Standard_Real , const Standard_Real ) >(&BRepTools::EvalAndUpdateTol),
R"#(Evals real tolerance of edge <theE>. <theC3d>, <theC2d>, <theS>, <theF>, <theL> are correspondently 3d curve of edge, 2d curve on surface <theS> and rang of edge If calculated tolerance is more then current edge tolerance, edge is updated. Method returns actual tolerance of edge)#" , py::arg("theE"), py::arg("theC3d"), py::arg("theC2d"), py::arg("theS"), py::arg("theF"), py::arg("theL")
)
.def_static("OriEdgeInFace_s",
(TopAbs_Orientation (*)( const TopoDS_Edge & , const TopoDS_Face & ) ) static_cast<TopAbs_Orientation (*)( const TopoDS_Edge & , const TopoDS_Face & ) >(&BRepTools::OriEdgeInFace),
R"#(returns the cumul of the orientation of <Edge> and thc containing wire in <Face>)#" , py::arg("theEdge"), py::arg("theFace")
)
.def_static("RemoveInternals_s",
(void (*)( TopoDS_Shape & , const Standard_Boolean ) ) static_cast<void (*)( TopoDS_Shape & , const Standard_Boolean ) >(&BRepTools::RemoveInternals),
R"#(Removes internal sub-shapes from the shape. The check on internal status is based on orientation of sub-shapes, classification is not performed. Before removal of internal sub-shapes the algorithm checks if such removal is not going to break topological connectivity between sub-shapes. The flag <theForce> if set to true disables the connectivity check and clears the given shape from all sub-shapes with internal orientation.)#" , py::arg("theS"), py::arg("theForce")=static_cast<const Standard_Boolean>(Standard_False)
)
.def_static("CheckLocations_s",
(void (*)( const TopoDS_Shape & , NCollection_List<TopoDS_Shape> & ) ) static_cast<void (*)( const TopoDS_Shape & , NCollection_List<TopoDS_Shape> & ) >(&BRepTools::CheckLocations),
R"#(Check all locations of shape according criterium: aTrsf.IsNegative() || (Abs(Abs(aTrsf.ScaleFactor()) - 1.) > TopLoc_Location::ScalePrec()) All sub-shapes having such locations are put in list theProblemShapes)#" , py::arg("theS"), py::arg("theProblemShapes")
)
// static methods using call by reference i.s.o. return
.def_static("UVBounds_s",
[](const TopoDS_Face & F ){
Standard_Real UMin;
Standard_Real UMax;
Standard_Real VMin;
Standard_Real VMax;
BRepTools::UVBounds(F,UMin,UMax,VMin,VMax);
return std::make_tuple(UMin,UMax,VMin,VMax); },
R"#(Returns in UMin, UMax, VMin, VMax the bounding values in the parametric space of F.)#" , py::arg("F")
)
.def_static("UVBounds_s",
[](const TopoDS_Face & F,const TopoDS_Wire & W ){
Standard_Real UMin;
Standard_Real UMax;
Standard_Real VMin;
Standard_Real VMax;
BRepTools::UVBounds(F,W,UMin,UMax,VMin,VMax);
return std::make_tuple(UMin,UMax,VMin,VMax); },
R"#(Returns in UMin, UMax, VMin, VMax the bounding values of the wire in the parametric space of F.)#" , py::arg("F"), py::arg("W")
)
.def_static("UVBounds_s",
[](const TopoDS_Face & F,const TopoDS_Edge & E ){
Standard_Real UMin;
Standard_Real UMax;
Standard_Real VMin;
Standard_Real VMax;
BRepTools::UVBounds(F,E,UMin,UMax,VMin,VMax);
return std::make_tuple(UMin,UMax,VMin,VMax); },
R"#(Returns in UMin, UMax, VMin, VMax the bounding values of the edge in the parametric space of F.)#" , py::arg("F"), py::arg("E")
)
.def_static("DetectClosedness_s",
[](const TopoDS_Face & theFace ){
Standard_Boolean theUclosed;
Standard_Boolean theVclosed;
BRepTools::DetectClosedness(theFace,theUclosed,theVclosed);
return std::make_tuple(theUclosed,theVclosed); },
R"#(Detect closedness of face in U and V directions)#" , py::arg("theFace")
)
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class BRepTools_History from ./opencascade/BRepTools_History.hxx
klass = m.attr("BRepTools_History");
// nested enums
py::enum_<BRepTools_History::TRelationType>(klass, "TRelationType_e", R"#(The types of the historical relations.)#")
.value("TRelationType_Removed", BRepTools_History::TRelationType::TRelationType_Removed)
.value("TRelationType_Generated", BRepTools_History::TRelationType::TRelationType_Generated)
.value("TRelationType_Modified", BRepTools_History::TRelationType::TRelationType_Modified).export_values();
static_cast<py::class_<BRepTools_History ,opencascade::handle<BRepTools_History> , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("AddGenerated",
(void (BRepTools_History::*)( const TopoDS_Shape & , const TopoDS_Shape & ) ) static_cast<void (BRepTools_History::*)( const TopoDS_Shape & , const TopoDS_Shape & ) >(&BRepTools_History::AddGenerated),
R"#(Set the second shape as generated one from the first shape.)#" , py::arg("theInitial"), py::arg("theGenerated")
)
.def("AddModified",
(void (BRepTools_History::*)( const TopoDS_Shape & , const TopoDS_Shape & ) ) static_cast<void (BRepTools_History::*)( const TopoDS_Shape & , const TopoDS_Shape & ) >(&BRepTools_History::AddModified),
R"#(Set the second shape as modified one from the first shape.)#" , py::arg("theInitial"), py::arg("theModified")
)
.def("Remove",
(void (BRepTools_History::*)( const TopoDS_Shape & ) ) static_cast<void (BRepTools_History::*)( const TopoDS_Shape & ) >(&BRepTools_History::Remove),
R"#(Set the shape as removed one.)#" , py::arg("theRemoved")
)
.def("ReplaceGenerated",
(void (BRepTools_History::*)( const TopoDS_Shape & , const TopoDS_Shape & ) ) static_cast<void (BRepTools_History::*)( const TopoDS_Shape & , const TopoDS_Shape & ) >(&BRepTools_History::ReplaceGenerated),
R"#(Set the second shape as the only generated one from the first one.)#" , py::arg("theInitial"), py::arg("theGenerated")
)
.def("ReplaceModified",
(void (BRepTools_History::*)( const TopoDS_Shape & , const TopoDS_Shape & ) ) static_cast<void (BRepTools_History::*)( const TopoDS_Shape & , const TopoDS_Shape & ) >(&BRepTools_History::ReplaceModified),
R"#(Set the second shape as the only modified one from the first one.)#" , py::arg("theInitial"), py::arg("theModified")
)
.def("Clear",
(void (BRepTools_History::*)() ) static_cast<void (BRepTools_History::*)() >(&BRepTools_History::Clear),
R"#(Clears the history.)#"
)
.def("Generated",
(const TopTools_ListOfShape & (BRepTools_History::*)( const TopoDS_Shape & ) const) static_cast<const TopTools_ListOfShape & (BRepTools_History::*)( const TopoDS_Shape & ) const>(&BRepTools_History::Generated),
R"#(Returns all shapes generated from the shape.)#" , py::arg("theInitial")
)
.def("Modified",
(const TopTools_ListOfShape & (BRepTools_History::*)( const TopoDS_Shape & ) const) static_cast<const TopTools_ListOfShape & (BRepTools_History::*)( const TopoDS_Shape & ) const>(&BRepTools_History::Modified),
R"#(Returns all shapes modified from the shape.)#" , py::arg("theInitial")
)
.def("IsRemoved",
(Standard_Boolean (BRepTools_History::*)( const TopoDS_Shape & ) const) static_cast<Standard_Boolean (BRepTools_History::*)( const TopoDS_Shape & ) const>(&BRepTools_History::IsRemoved),
R"#(Returns 'true' if the shape is removed.)#" , py::arg("theInitial")
)
.def("HasGenerated",
(Standard_Boolean (BRepTools_History::*)() const) static_cast<Standard_Boolean (BRepTools_History::*)() const>(&BRepTools_History::HasGenerated),
R"#(Returns 'true' if there any shapes with Generated elements present)#"
)
.def("HasModified",
(Standard_Boolean (BRepTools_History::*)() const) static_cast<Standard_Boolean (BRepTools_History::*)() const>(&BRepTools_History::HasModified),
R"#(Returns 'true' if there any Modified shapes present)#"
)
.def("HasRemoved",
(Standard_Boolean (BRepTools_History::*)() const) static_cast<Standard_Boolean (BRepTools_History::*)() const>(&BRepTools_History::HasRemoved),
R"#(Returns 'true' if there any removed shapes present)#"
)
.def("Merge",
(void (BRepTools_History::*)( const opencascade::handle<BRepTools_History> & ) ) static_cast<void (BRepTools_History::*)( const opencascade::handle<BRepTools_History> & ) >(&BRepTools_History::Merge),
R"#(Merges the next history to this history.)#" , py::arg("theHistory23")
)
.def("Merge",
(void (BRepTools_History::*)( const BRepTools_History & ) ) static_cast<void (BRepTools_History::*)( const BRepTools_History & ) >(&BRepTools_History::Merge),
R"#(Merges the next history to this history.)#" , py::arg("theHistory23")
)
.def("Dump",
(void (BRepTools_History::*)( std::ostream & ) ) static_cast<void (BRepTools_History::*)( std::ostream & ) >(&BRepTools_History::Dump),
R"#(Prints the brief description of the history into a stream)#" , py::arg("theS")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("IsSupportedType_s",
(Standard_Boolean (*)( const TopoDS_Shape & ) ) static_cast<Standard_Boolean (*)( const TopoDS_Shape & ) >(&BRepTools_History::IsSupportedType),
R"#(Returns 'true' if the type of the shape is supported by the history.)#" , py::arg("theShape")
)
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&BRepTools_History::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&BRepTools_History::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> & (BRepTools_History::*)() const) static_cast<const opencascade::handle<Standard_Type> & (BRepTools_History::*)() const>(&BRepTools_History::DynamicType),
R"#(None)#"
)
;
// Class BRepTools_Modification from ./opencascade/BRepTools_Modification.hxx
klass = m.attr("BRepTools_Modification");
// nested enums
static_cast<py::class_<BRepTools_Modification ,opencascade::handle<BRepTools_Modification> ,Py_BRepTools_Modification , Standard_Transient >>(klass)
// constructors
// custom constructors
// methods
.def("NewSurface",
(Standard_Boolean (BRepTools_Modification::*)( const TopoDS_Face & , opencascade::handle<Geom_Surface> & , TopLoc_Location & , Standard_Real & , Standard_Boolean & , Standard_Boolean & ) ) static_cast<Standard_Boolean (BRepTools_Modification::*)( const TopoDS_Face & , opencascade::handle<Geom_Surface> & , TopLoc_Location & , Standard_Real & , Standard_Boolean & , Standard_Boolean & ) >(&BRepTools_Modification::NewSurface),
R"#(Returns true if the face, F, has been modified. If the face has been modified: - S is the new geometry of the face, - L is its new location, and - Tol is the new tolerance. The flag, RevWires, is set to true when the modification reverses the normal of the surface, (i.e. the wires have to be reversed). The flag, RevFace, is set to true if the orientation of the modified face changes in the shells which contain it. If the face has not been modified this function returns false, and the values of S, L, Tol, RevWires and RevFace are not significant.)#" , py::arg("F"), py::arg("S"), py::arg("L"), py::arg("Tol"), py::arg("RevWires"), py::arg("RevFace")
)
.def("NewTriangulation",
(Standard_Boolean (BRepTools_Modification::*)( const TopoDS_Face & , opencascade::handle<Poly_Triangulation> & ) ) static_cast<Standard_Boolean (BRepTools_Modification::*)( const TopoDS_Face & , opencascade::handle<Poly_Triangulation> & ) >(&BRepTools_Modification::NewTriangulation),
R"#(Returns true if the face has been modified according to changed triangulation. If the face has been modified: - T is a new triangulation on the face)#" , py::arg("F"), py::arg("T")
)
.def("NewCurve",
(Standard_Boolean (BRepTools_Modification::*)( const TopoDS_Edge & , opencascade::handle<Geom_Curve> & , TopLoc_Location & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_Modification::*)( const TopoDS_Edge & , opencascade::handle<Geom_Curve> & , TopLoc_Location & , Standard_Real & ) >(&BRepTools_Modification::NewCurve),
R"#(Returns true if the edge, E, has been modified. If the edge has been modified: - C is the new geometry associated with the edge, - L is its new location, and - Tol is the new tolerance. If the edge has not been modified, this function returns false, and the values of C, L and Tol are not significant.)#" , py::arg("E"), py::arg("C"), py::arg("L"), py::arg("Tol")
)
.def("NewPolygon",
(Standard_Boolean (BRepTools_Modification::*)( const TopoDS_Edge & , opencascade::handle<Poly_Polygon3D> & ) ) static_cast<Standard_Boolean (BRepTools_Modification::*)( const TopoDS_Edge & , opencascade::handle<Poly_Polygon3D> & ) >(&BRepTools_Modification::NewPolygon),
R"#(Returns true if the edge has been modified according to changed polygon. If the edge has been modified: - P is a new polygon)#" , py::arg("E"), py::arg("P")
)
.def("NewPolygonOnTriangulation",
(Standard_Boolean (BRepTools_Modification::*)( const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Poly_PolygonOnTriangulation> & ) ) static_cast<Standard_Boolean (BRepTools_Modification::*)( const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Poly_PolygonOnTriangulation> & ) >(&BRepTools_Modification::NewPolygonOnTriangulation),
R"#(Returns true if the edge has been modified according to changed polygon on triangulation. If the edge has been modified: - P is a new polygon on triangulation)#" , py::arg("E"), py::arg("F"), py::arg("P")
)
.def("NewPoint",
(Standard_Boolean (BRepTools_Modification::*)( const TopoDS_Vertex & , gp_Pnt & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_Modification::*)( const TopoDS_Vertex & , gp_Pnt & , Standard_Real & ) >(&BRepTools_Modification::NewPoint),
R"#(Returns true if the vertex V has been modified. If V has been modified: - P is the new geometry of the vertex, and - Tol is the new tolerance. If the vertex has not been modified this function returns false, and the values of P and Tol are not significant.)#" , py::arg("V"), py::arg("P"), py::arg("Tol")
)
.def("NewCurve2d",
(Standard_Boolean (BRepTools_Modification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Geom2d_Curve> & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_Modification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Geom2d_Curve> & , Standard_Real & ) >(&BRepTools_Modification::NewCurve2d),
R"#(Returns true if the edge, E, has a new curve on surface on the face, F. If a new curve exists: - C is the new geometry of the edge, - L is the new location, and - Tol is the new tolerance. NewE is the new edge created from E, and NewF is the new face created from F. If there is no new curve on the face, this function returns false, and the values of C, L and Tol are not significant.)#" , py::arg("E"), py::arg("F"), py::arg("NewE"), py::arg("NewF"), py::arg("C"), py::arg("Tol")
)
.def("NewParameter",
(Standard_Boolean (BRepTools_Modification::*)( const TopoDS_Vertex & , const TopoDS_Edge & , Standard_Real & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_Modification::*)( const TopoDS_Vertex & , const TopoDS_Edge & , Standard_Real & , Standard_Real & ) >(&BRepTools_Modification::NewParameter),
R"#(Returns true if the vertex V has a new parameter on the edge E. If a new parameter exists: - P is the parameter, and - Tol is the new tolerance. If there is no new parameter this function returns false, and the values of P and Tol are not significant.)#" , py::arg("V"), py::arg("E"), py::arg("P"), py::arg("Tol")
)
.def("Continuity",
(GeomAbs_Shape (BRepTools_Modification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & ) ) static_cast<GeomAbs_Shape (BRepTools_Modification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & ) >(&BRepTools_Modification::Continuity),
R"#(Returns the continuity of <NewE> between <NewF1> and <NewF2>. <NewE> is the new edge created from <E>. <NewF1> (resp. <NewF2>) is the new face created from <F1> (resp. <F2>).)#" , py::arg("E"), py::arg("F1"), py::arg("F2"), py::arg("NewE"), py::arg("NewF1"), py::arg("NewF2")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&BRepTools_Modification::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&BRepTools_Modification::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> & (BRepTools_Modification::*)() const) static_cast<const opencascade::handle<Standard_Type> & (BRepTools_Modification::*)() const>(&BRepTools_Modification::DynamicType),
R"#(None)#"
)
;
// Class BRepTools_Modifier from ./opencascade/BRepTools_Modifier.hxx
klass = m.attr("BRepTools_Modifier");
// nested enums
static_cast<py::class_<BRepTools_Modifier , shared_ptr<BRepTools_Modifier> >>(klass)
// constructors
.def(py::init< Standard_Boolean >() , py::arg("theMutableInput")=static_cast<Standard_Boolean>(Standard_False) )
.def(py::init< const TopoDS_Shape & >() , py::arg("S") )
.def(py::init< const TopoDS_Shape &,const opencascade::handle<BRepTools_Modification> & >() , py::arg("S"), py::arg("M") )
// custom constructors
// methods
.def("Init",
(void (BRepTools_Modifier::*)( const TopoDS_Shape & ) ) static_cast<void (BRepTools_Modifier::*)( const TopoDS_Shape & ) >(&BRepTools_Modifier::Init),
R"#(Initializes the modifier with the shape <S>.)#" , py::arg("S")
)
.def("Perform",
(void (BRepTools_Modifier::*)( const opencascade::handle<BRepTools_Modification> & , const Message_ProgressRange & ) ) static_cast<void (BRepTools_Modifier::*)( const opencascade::handle<BRepTools_Modification> & , const Message_ProgressRange & ) >(&BRepTools_Modifier::Perform),
R"#(Performs the modifications described by <M>.)#" , py::arg("M"), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("IsDone",
(Standard_Boolean (BRepTools_Modifier::*)() const) static_cast<Standard_Boolean (BRepTools_Modifier::*)() const>(&BRepTools_Modifier::IsDone),
R"#(Returns Standard_True if the modification has been computed successfully.)#"
)
.def("IsMutableInput",
(Standard_Boolean (BRepTools_Modifier::*)() const) static_cast<Standard_Boolean (BRepTools_Modifier::*)() const>(&BRepTools_Modifier::IsMutableInput),
R"#(Returns the current mutable input state)#"
)
.def("SetMutableInput",
(void (BRepTools_Modifier::*)( Standard_Boolean ) ) static_cast<void (BRepTools_Modifier::*)( Standard_Boolean ) >(&BRepTools_Modifier::SetMutableInput),
R"#(Sets the mutable input state If true then the input (original) shape can be modified during modification process)#" , py::arg("theMutableInput")
)
.def("ModifiedShape",
(const TopoDS_Shape & (BRepTools_Modifier::*)( const TopoDS_Shape & ) const) static_cast<const TopoDS_Shape & (BRepTools_Modifier::*)( const TopoDS_Shape & ) const>(&BRepTools_Modifier::ModifiedShape),
R"#(Returns the modified shape corresponding to <S>.)#" , py::arg("S")
)
.def("ModifiedShape",
(const TopoDS_Shape & (BRepTools_Modifier::*)( const TopoDS_Shape & ) const) static_cast<const TopoDS_Shape & (BRepTools_Modifier::*)( const TopoDS_Shape & ) const>(&BRepTools_Modifier::ModifiedShape),
R"#(Returns the modified shape corresponding to <S>.)#" , py::arg("S")
)
.def("IsDone",
(Standard_Boolean (BRepTools_Modifier::*)() const) static_cast<Standard_Boolean (BRepTools_Modifier::*)() const>(&BRepTools_Modifier::IsDone),
R"#(Returns Standard_True if the modification has been computed successfully.)#"
)
// 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 BRepTools_PurgeLocations from ./opencascade/BRepTools_PurgeLocations.hxx
klass = m.attr("BRepTools_PurgeLocations");
// nested enums
static_cast<py::class_<BRepTools_PurgeLocations , shared_ptr<BRepTools_PurgeLocations> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Perform",
(Standard_Boolean (BRepTools_PurgeLocations::*)( const TopoDS_Shape & ) ) static_cast<Standard_Boolean (BRepTools_PurgeLocations::*)( const TopoDS_Shape & ) >(&BRepTools_PurgeLocations::Perform),
R"#(Removes all locations correspodingly to criterium from theShape.)#" , py::arg("theShape")
)
.def("IsDone",
(Standard_Boolean (BRepTools_PurgeLocations::*)() const) static_cast<Standard_Boolean (BRepTools_PurgeLocations::*)() const>(&BRepTools_PurgeLocations::IsDone),
R"#(None)#"
)
.def("ModifiedShape",
(TopoDS_Shape (BRepTools_PurgeLocations::*)( const TopoDS_Shape & ) const) static_cast<TopoDS_Shape (BRepTools_PurgeLocations::*)( const TopoDS_Shape & ) const>(&BRepTools_PurgeLocations::ModifiedShape),
R"#(Returns modified shape obtained from initial shape.)#" , py::arg("theInitShape")
)
// 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("GetResult",
(const TopoDS_Shape & (BRepTools_PurgeLocations::*)() const) static_cast<const TopoDS_Shape & (BRepTools_PurgeLocations::*)() const>(&BRepTools_PurgeLocations::GetResult),
R"#(Returns shape with removed locations.)#"
)
;
// Class BRepTools_Quilt from ./opencascade/BRepTools_Quilt.hxx
klass = m.attr("BRepTools_Quilt");
// nested enums
static_cast<py::class_<BRepTools_Quilt , shared_ptr<BRepTools_Quilt> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Bind",
(void (BRepTools_Quilt::*)( const TopoDS_Edge & , const TopoDS_Edge & ) ) static_cast<void (BRepTools_Quilt::*)( const TopoDS_Edge & , const TopoDS_Edge & ) >(&BRepTools_Quilt::Bind),
R"#(Binds <Enew> to be the new edge instead of <Eold>.)#" , py::arg("Eold"), py::arg("Enew")
)
.def("Bind",
(void (BRepTools_Quilt::*)( const TopoDS_Vertex & , const TopoDS_Vertex & ) ) static_cast<void (BRepTools_Quilt::*)( const TopoDS_Vertex & , const TopoDS_Vertex & ) >(&BRepTools_Quilt::Bind),
R"#(Binds <VNew> to be a new vertex instead of <Vold>.)#" , py::arg("Vold"), py::arg("Vnew")
)
.def("Add",
(void (BRepTools_Quilt::*)( const TopoDS_Shape & ) ) static_cast<void (BRepTools_Quilt::*)( const TopoDS_Shape & ) >(&BRepTools_Quilt::Add),
R"#(Add the faces of <S> to the Quilt, the faces containing bounded edges are copied.)#" , py::arg("S")
)
.def("IsCopied",
(Standard_Boolean (BRepTools_Quilt::*)( const TopoDS_Shape & ) const) static_cast<Standard_Boolean (BRepTools_Quilt::*)( const TopoDS_Shape & ) const>(&BRepTools_Quilt::IsCopied),
R"#(Returns True if <S> has been copied (<S> is a vertex, an edge or a face))#" , py::arg("S")
)
.def("Copy",
(const TopoDS_Shape & (BRepTools_Quilt::*)( const TopoDS_Shape & ) const) static_cast<const TopoDS_Shape & (BRepTools_Quilt::*)( const TopoDS_Shape & ) const>(&BRepTools_Quilt::Copy),
R"#(Returns the shape substituted to <S> in the Quilt.)#" , py::arg("S")
)
.def("Shells",
(TopoDS_Shape (BRepTools_Quilt::*)() const) static_cast<TopoDS_Shape (BRepTools_Quilt::*)() const>(&BRepTools_Quilt::Shells),
R"#(Returns a Compound of shells made from the current set of faces. The shells will be flagged as closed or not closed.)#"
)
// 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 BRepTools_ReShape from ./opencascade/BRepTools_ReShape.hxx
klass = m.attr("BRepTools_ReShape");
// nested enums
static_cast<py::class_<BRepTools_ReShape ,opencascade::handle<BRepTools_ReShape> , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Clear",
(void (BRepTools_ReShape::*)() ) static_cast<void (BRepTools_ReShape::*)() >(&BRepTools_ReShape::Clear),
R"#(Clears all substitutions requests)#"
)
.def("Remove",
(void (BRepTools_ReShape::*)( const TopoDS_Shape & ) ) static_cast<void (BRepTools_ReShape::*)( const TopoDS_Shape & ) >(&BRepTools_ReShape::Remove),
R"#(Sets a request to Remove a Shape whatever the orientation)#" , py::arg("shape")
)
.def("Replace",
(void (BRepTools_ReShape::*)( const TopoDS_Shape & , const TopoDS_Shape & ) ) static_cast<void (BRepTools_ReShape::*)( const TopoDS_Shape & , const TopoDS_Shape & ) >(&BRepTools_ReShape::Replace),
R"#(Sets a request to Replace a Shape by a new one.)#" , py::arg("shape"), py::arg("newshape")
)
.def("IsRecorded",
(Standard_Boolean (BRepTools_ReShape::*)( const TopoDS_Shape & ) const) static_cast<Standard_Boolean (BRepTools_ReShape::*)( const TopoDS_Shape & ) const>(&BRepTools_ReShape::IsRecorded),
R"#(Tells if a shape is recorded for Replace/Remove)#" , py::arg("shape")
)
.def("Value",
(TopoDS_Shape (BRepTools_ReShape::*)( const TopoDS_Shape & ) const) static_cast<TopoDS_Shape (BRepTools_ReShape::*)( const TopoDS_Shape & ) const>(&BRepTools_ReShape::Value),
R"#(Returns the new value for an individual shape If not recorded, returns the original shape itself If to be Removed, returns a Null Shape Else, returns the replacing item)#" , py::arg("shape")
)
.def("Status",
(Standard_Integer (BRepTools_ReShape::*)( const TopoDS_Shape & , TopoDS_Shape & , const Standard_Boolean ) ) static_cast<Standard_Integer (BRepTools_ReShape::*)( const TopoDS_Shape & , TopoDS_Shape & , const Standard_Boolean ) >(&BRepTools_ReShape::Status),
R"#(Returns a complete substitution status for a shape 0 : not recorded, <newsh> = original <shape> < 0: to be removed, <newsh> is NULL > 0: to be replaced, <newsh> is a new item If <last> is False, returns status and new shape recorded in the map directly for the shape, if True and status > 0 then recursively searches for the last status and new shape.)#" , py::arg("shape"), py::arg("newsh"), py::arg("last")=static_cast<const Standard_Boolean>(Standard_False)
)
.def("Apply",
(TopoDS_Shape (BRepTools_ReShape::*)( const TopoDS_Shape & , const TopAbs_ShapeEnum ) ) static_cast<TopoDS_Shape (BRepTools_ReShape::*)( const TopoDS_Shape & , const TopAbs_ShapeEnum ) >(&BRepTools_ReShape::Apply),
R"#(Applies the substitutions requests to a shape.)#" , py::arg("theShape"), py::arg("theUntil")=static_cast<const TopAbs_ShapeEnum>(TopAbs_SHAPE)
)
.def("CopyVertex",
(TopoDS_Vertex (BRepTools_ReShape::*)( const TopoDS_Vertex & , const Standard_Real ) ) static_cast<TopoDS_Vertex (BRepTools_ReShape::*)( const TopoDS_Vertex & , const Standard_Real ) >(&BRepTools_ReShape::CopyVertex),
R"#(None)#" , py::arg("theV"), py::arg("theTol")=static_cast<const Standard_Real>(- 1.0)
)
.def("CopyVertex",
(TopoDS_Vertex (BRepTools_ReShape::*)( const TopoDS_Vertex & , const gp_Pnt & , const Standard_Real ) ) static_cast<TopoDS_Vertex (BRepTools_ReShape::*)( const TopoDS_Vertex & , const gp_Pnt & , const Standard_Real ) >(&BRepTools_ReShape::CopyVertex),
R"#(None)#" , py::arg("theV"), py::arg("theNewPos"), py::arg("aTol")
)
.def("IsNewShape",
(Standard_Boolean (BRepTools_ReShape::*)( const TopoDS_Shape & ) const) static_cast<Standard_Boolean (BRepTools_ReShape::*)( const TopoDS_Shape & ) const>(&BRepTools_ReShape::IsNewShape),
R"#(None)#" , py::arg("theShape")
)
.def("History",
(opencascade::handle<BRepTools_History> (BRepTools_ReShape::*)() const) static_cast<opencascade::handle<BRepTools_History> (BRepTools_ReShape::*)() const>(&BRepTools_ReShape::History),
R"#(Returns the history of the substituted shapes.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&BRepTools_ReShape::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&BRepTools_ReShape::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_property("ModeConsiderLocation",
[](BRepTools_ReShape& self){return self.ModeConsiderLocation();} ,
[](BRepTools_ReShape& self, Standard_Boolean val){self.ModeConsiderLocation() = val;}, R"#(Returns (modifiable) the flag which defines whether Location of shape take into account during replacing shapes.)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (BRepTools_ReShape::*)() const) static_cast<const opencascade::handle<Standard_Type> & (BRepTools_ReShape::*)() const>(&BRepTools_ReShape::DynamicType),
R"#(None)#"
)
;
// Class BRepTools_ShapeSet from ./opencascade/BRepTools_ShapeSet.hxx
klass = m.attr("BRepTools_ShapeSet");
// nested enums
static_cast<py::class_<BRepTools_ShapeSet , shared_ptr<BRepTools_ShapeSet> , TopTools_ShapeSet >>(klass)
// constructors
.def(py::init< const Standard_Boolean,const Standard_Boolean >() , py::arg("theWithTriangles")=static_cast<const Standard_Boolean>(Standard_True), py::arg("theWithNormals")=static_cast<const Standard_Boolean>(Standard_False) )
.def(py::init< const BRep_Builder &,const Standard_Boolean,const Standard_Boolean >() , py::arg("theBuilder"), py::arg("theWithTriangles")=static_cast<const Standard_Boolean>(Standard_True), py::arg("theWithNormals")=static_cast<const Standard_Boolean>(Standard_False) )
// custom constructors
// methods
.def("IsWithTriangles",
(Standard_Boolean (BRepTools_ShapeSet::*)() const) static_cast<Standard_Boolean (BRepTools_ShapeSet::*)() const>(&BRepTools_ShapeSet::IsWithTriangles),
R"#(Return true if shape should be stored with triangles.)#"
)
.def("IsWithNormals",
(Standard_Boolean (BRepTools_ShapeSet::*)() const) static_cast<Standard_Boolean (BRepTools_ShapeSet::*)() const>(&BRepTools_ShapeSet::IsWithNormals),
R"#(Return true if shape should be stored triangulation with normals.)#"
)
.def("SetWithTriangles",
(void (BRepTools_ShapeSet::*)( const Standard_Boolean ) ) static_cast<void (BRepTools_ShapeSet::*)( const Standard_Boolean ) >(&BRepTools_ShapeSet::SetWithTriangles),
R"#(Define if shape will be stored with triangles. Ignored (always written) if face defines only triangulation (no surface).)#" , py::arg("theWithTriangles")
)
.def("SetWithNormals",
(void (BRepTools_ShapeSet::*)( const Standard_Boolean ) ) static_cast<void (BRepTools_ShapeSet::*)( const Standard_Boolean ) >(&BRepTools_ShapeSet::SetWithNormals),
R"#(Define if shape will be stored triangulation with normals. Ignored (always written) if face defines only triangulation (no surface).)#" , py::arg("theWithNormals")
)
.def("Clear",
(void (BRepTools_ShapeSet::*)() ) static_cast<void (BRepTools_ShapeSet::*)() >(&BRepTools_ShapeSet::Clear),
R"#(Clears the content of the set.)#"
)
.def("AddGeometry",
(void (BRepTools_ShapeSet::*)( const TopoDS_Shape & ) ) static_cast<void (BRepTools_ShapeSet::*)( const TopoDS_Shape & ) >(&BRepTools_ShapeSet::AddGeometry),
R"#(Stores the goemetry of <S>.)#" , py::arg("S")
)
.def("DumpGeometry",
(void (BRepTools_ShapeSet::*)( std::ostream & ) const) static_cast<void (BRepTools_ShapeSet::*)( std::ostream & ) const>(&BRepTools_ShapeSet::DumpGeometry),
R"#(Dumps the geometry of me on the stream <OS>.)#" , py::arg("OS")
)
.def("WriteGeometry",
(void (BRepTools_ShapeSet::*)( std::ostream & , const Message_ProgressRange & ) ) static_cast<void (BRepTools_ShapeSet::*)( std::ostream & , const Message_ProgressRange & ) >(&BRepTools_ShapeSet::WriteGeometry),
R"#(Writes the geometry of me on the stream <OS> in a format that can be read back by Read.)#" , py::arg("OS"), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("ReadGeometry",
(void (BRepTools_ShapeSet::*)( std::istream & , const Message_ProgressRange & ) ) static_cast<void (BRepTools_ShapeSet::*)( std::istream & , const Message_ProgressRange & ) >(&BRepTools_ShapeSet::ReadGeometry),
R"#(Reads the geometry of me from the stream <IS>.)#" , py::arg("IS"), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("DumpGeometry",
(void (BRepTools_ShapeSet::*)( const TopoDS_Shape & , std::ostream & ) const) static_cast<void (BRepTools_ShapeSet::*)( const TopoDS_Shape & , std::ostream & ) const>(&BRepTools_ShapeSet::DumpGeometry),
R"#(Dumps the geometry of <S> on the stream <OS>.)#" , py::arg("S"), py::arg("OS")
)
.def("WriteGeometry",
(void (BRepTools_ShapeSet::*)( const TopoDS_Shape & , std::ostream & ) const) static_cast<void (BRepTools_ShapeSet::*)( const TopoDS_Shape & , std::ostream & ) const>(&BRepTools_ShapeSet::WriteGeometry),
R"#(Writes the geometry of <S> on the stream <OS> in a format that can be read back by Read.)#" , py::arg("S"), py::arg("OS")
)
.def("ReadGeometry",
(void (BRepTools_ShapeSet::*)( const TopAbs_ShapeEnum , std::istream & , TopoDS_Shape & ) ) static_cast<void (BRepTools_ShapeSet::*)( const TopAbs_ShapeEnum , std::istream & , TopoDS_Shape & ) >(&BRepTools_ShapeSet::ReadGeometry),
R"#(Reads the geometry of a shape of type <T> from the stream <IS> and returns it in <S>.)#" , py::arg("T"), py::arg("IS"), py::arg("S")
)
.def("AddShapes",
(void (BRepTools_ShapeSet::*)( TopoDS_Shape & , const TopoDS_Shape & ) ) static_cast<void (BRepTools_ShapeSet::*)( TopoDS_Shape & , const TopoDS_Shape & ) >(&BRepTools_ShapeSet::AddShapes),
R"#(Inserts the shape <S2> in the shape <S1>. This method must be redefined to use the correct builder.)#" , py::arg("S1"), py::arg("S2")
)
.def("Check",
(void (BRepTools_ShapeSet::*)( const TopAbs_ShapeEnum , TopoDS_Shape & ) ) static_cast<void (BRepTools_ShapeSet::*)( const TopAbs_ShapeEnum , TopoDS_Shape & ) >(&BRepTools_ShapeSet::Check),
R"#(None)#" , py::arg("T"), py::arg("S")
)
.def("ReadPolygon3D",
(void (BRepTools_ShapeSet::*)( std::istream & , const Message_ProgressRange & ) ) static_cast<void (BRepTools_ShapeSet::*)( std::istream & , const Message_ProgressRange & ) >(&BRepTools_ShapeSet::ReadPolygon3D),
R"#(Reads the 3d polygons of me from the stream <IS>.)#" , py::arg("IS"), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("WritePolygon3D",
(void (BRepTools_ShapeSet::*)( std::ostream & , const Standard_Boolean , const Message_ProgressRange & ) const) static_cast<void (BRepTools_ShapeSet::*)( std::ostream & , const Standard_Boolean , const Message_ProgressRange & ) const>(&BRepTools_ShapeSet::WritePolygon3D),
R"#(Writes the 3d polygons on the stream <OS> in a format that can be read back by Read.)#" , py::arg("OS"), py::arg("Compact")=static_cast<const Standard_Boolean>(Standard_True), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("DumpPolygon3D",
(void (BRepTools_ShapeSet::*)( std::ostream & ) const) static_cast<void (BRepTools_ShapeSet::*)( std::ostream & ) const>(&BRepTools_ShapeSet::DumpPolygon3D),
R"#(Dumps the 3d polygons on the stream <OS>.)#" , py::arg("OS")
)
.def("ReadTriangulation",
(void (BRepTools_ShapeSet::*)( std::istream & , const Message_ProgressRange & ) ) static_cast<void (BRepTools_ShapeSet::*)( std::istream & , const Message_ProgressRange & ) >(&BRepTools_ShapeSet::ReadTriangulation),
R"#(Reads the triangulation of me from the stream <IS>.)#" , py::arg("IS"), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("WriteTriangulation",
(void (BRepTools_ShapeSet::*)( std::ostream & , const Standard_Boolean , const Message_ProgressRange & ) const) static_cast<void (BRepTools_ShapeSet::*)( std::ostream & , const Standard_Boolean , const Message_ProgressRange & ) const>(&BRepTools_ShapeSet::WriteTriangulation),
R"#(Writes the triangulation on the stream <OS> in a format that can be read back by Read.)#" , py::arg("OS"), py::arg("Compact")=static_cast<const Standard_Boolean>(Standard_True), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("DumpTriangulation",
(void (BRepTools_ShapeSet::*)( std::ostream & ) const) static_cast<void (BRepTools_ShapeSet::*)( std::ostream & ) const>(&BRepTools_ShapeSet::DumpTriangulation),
R"#(Dumps the triangulation on the stream <OS>.)#" , py::arg("OS")
)
.def("ReadPolygonOnTriangulation",
(void (BRepTools_ShapeSet::*)( std::istream & , const Message_ProgressRange & ) ) static_cast<void (BRepTools_ShapeSet::*)( std::istream & , const Message_ProgressRange & ) >(&BRepTools_ShapeSet::ReadPolygonOnTriangulation),
R"#(Reads the polygons on triangulation of me from the stream <IS>.)#" , py::arg("IS"), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("WritePolygonOnTriangulation",
(void (BRepTools_ShapeSet::*)( std::ostream & , const Standard_Boolean , const Message_ProgressRange & ) const) static_cast<void (BRepTools_ShapeSet::*)( std::ostream & , const Standard_Boolean , const Message_ProgressRange & ) const>(&BRepTools_ShapeSet::WritePolygonOnTriangulation),
R"#(Writes the polygons on triangulation on the stream <OS> in a format that can be read back by Read.)#" , py::arg("OS"), py::arg("Compact")=static_cast<const Standard_Boolean>(Standard_True), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("DumpPolygonOnTriangulation",
(void (BRepTools_ShapeSet::*)( std::ostream & ) const) static_cast<void (BRepTools_ShapeSet::*)( std::ostream & ) const>(&BRepTools_ShapeSet::DumpPolygonOnTriangulation),
R"#(Dumps the polygons on triangulation on the stream <OS>.)#" , py::arg("OS")
)
// 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 BRepTools_Substitution from ./opencascade/BRepTools_Substitution.hxx
klass = m.attr("BRepTools_Substitution");
// nested enums
static_cast<py::class_<BRepTools_Substitution , shared_ptr<BRepTools_Substitution> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Clear",
(void (BRepTools_Substitution::*)() ) static_cast<void (BRepTools_Substitution::*)() >(&BRepTools_Substitution::Clear),
R"#(Reset all the fields.)#"
)
.def("Substitute",
(void (BRepTools_Substitution::*)( const TopoDS_Shape & , const NCollection_List<TopoDS_Shape> & ) ) static_cast<void (BRepTools_Substitution::*)( const TopoDS_Shape & , const NCollection_List<TopoDS_Shape> & ) >(&BRepTools_Substitution::Substitute),
R"#(<Oldshape> will be replaced by <NewShapes>.)#" , py::arg("OldShape"), py::arg("NewShapes")
)
.def("Build",
(void (BRepTools_Substitution::*)( const TopoDS_Shape & ) ) static_cast<void (BRepTools_Substitution::*)( const TopoDS_Shape & ) >(&BRepTools_Substitution::Build),
R"#(Build NewShape from <S> if its subshapes has modified.)#" , py::arg("S")
)
.def("IsCopied",
(Standard_Boolean (BRepTools_Substitution::*)( const TopoDS_Shape & ) const) static_cast<Standard_Boolean (BRepTools_Substitution::*)( const TopoDS_Shape & ) const>(&BRepTools_Substitution::IsCopied),
R"#(Returns True if <S> has been replaced .)#" , py::arg("S")
)
.def("Copy",
(const TopTools_ListOfShape & (BRepTools_Substitution::*)( const TopoDS_Shape & ) const) static_cast<const TopTools_ListOfShape & (BRepTools_Substitution::*)( const TopoDS_Shape & ) const>(&BRepTools_Substitution::Copy),
R"#(Returns the set of shapes substituted to <S>.)#" , py::arg("S")
)
// 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 BRepTools_WireExplorer from ./opencascade/BRepTools_WireExplorer.hxx
klass = m.attr("BRepTools_WireExplorer");
// nested enums
static_cast<py::class_<BRepTools_WireExplorer , shared_ptr<BRepTools_WireExplorer> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Wire & >() , py::arg("W") )
.def(py::init< const TopoDS_Wire &,const TopoDS_Face & >() , py::arg("W"), py::arg("F") )
// custom constructors
// methods
.def("Init",
(void (BRepTools_WireExplorer::*)( const TopoDS_Wire & ) ) static_cast<void (BRepTools_WireExplorer::*)( const TopoDS_Wire & ) >(&BRepTools_WireExplorer::Init),
R"#(Initializes an exploration of the wire <W>.)#" , py::arg("W")
)
.def("Init",
(void (BRepTools_WireExplorer::*)( const TopoDS_Wire & , const TopoDS_Face & ) ) static_cast<void (BRepTools_WireExplorer::*)( const TopoDS_Wire & , const TopoDS_Face & ) >(&BRepTools_WireExplorer::Init),
R"#(Initializes an exploration of the wire <W>. F is used to select the edge connected to the previous in the parametric representation of <F>.)#" , py::arg("W"), py::arg("F")
)
.def("Init",
(void (BRepTools_WireExplorer::*)( const TopoDS_Wire & , const TopoDS_Face & , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (BRepTools_WireExplorer::*)( const TopoDS_Wire & , const TopoDS_Face & , const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) >(&BRepTools_WireExplorer::Init),
R"#(Initializes an exploration of the wire <W>. F is used to select the edge connected to the previous in the parametric representation of <F>. <UMIn>, <UMax>, <VMin>, <VMax> - the UV bounds of the face <F>.)#" , py::arg("W"), py::arg("F"), py::arg("UMin"), py::arg("UMax"), py::arg("VMin"), py::arg("VMax")
)
.def("More",
(Standard_Boolean (BRepTools_WireExplorer::*)() const) static_cast<Standard_Boolean (BRepTools_WireExplorer::*)() const>(&BRepTools_WireExplorer::More),
R"#(Returns True if there is a current edge.)#"
)
.def("Next",
(void (BRepTools_WireExplorer::*)() ) static_cast<void (BRepTools_WireExplorer::*)() >(&BRepTools_WireExplorer::Next),
R"#(Proceeds to the next edge.)#"
)
.def("Orientation",
(TopAbs_Orientation (BRepTools_WireExplorer::*)() const) static_cast<TopAbs_Orientation (BRepTools_WireExplorer::*)() const>(&BRepTools_WireExplorer::Orientation),
R"#(Returns an Orientation for the current edge.)#"
)
.def("Clear",
(void (BRepTools_WireExplorer::*)() ) static_cast<void (BRepTools_WireExplorer::*)() >(&BRepTools_WireExplorer::Clear),
R"#(Clears the content of the explorer.)#"
)
// 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("Current",
(const TopoDS_Edge & (BRepTools_WireExplorer::*)() const) static_cast<const TopoDS_Edge & (BRepTools_WireExplorer::*)() const>(&BRepTools_WireExplorer::Current),
R"#(Returns the current edge.)#"
)
.def("CurrentVertex",
(const TopoDS_Vertex & (BRepTools_WireExplorer::*)() const) static_cast<const TopoDS_Vertex & (BRepTools_WireExplorer::*)() const>(&BRepTools_WireExplorer::CurrentVertex),
R"#(Returns the vertex connecting the current edge to the previous one.)#"
)
;
// Class BRepTools_CopyModification from ./opencascade/BRepTools_CopyModification.hxx
klass = m.attr("BRepTools_CopyModification");
// nested enums
static_cast<py::class_<BRepTools_CopyModification ,opencascade::handle<BRepTools_CopyModification> , BRepTools_Modification >>(klass)
// constructors
.def(py::init< const Standard_Boolean,const Standard_Boolean >() , py::arg("theCopyGeom")=static_cast<const Standard_Boolean>(Standard_True), py::arg("theCopyMesh")=static_cast<const Standard_Boolean>(Standard_True) )
// custom constructors
// methods
.def("NewSurface",
(Standard_Boolean (BRepTools_CopyModification::*)( const TopoDS_Face & , opencascade::handle<Geom_Surface> & , TopLoc_Location & , Standard_Real & , Standard_Boolean & , Standard_Boolean & ) ) static_cast<Standard_Boolean (BRepTools_CopyModification::*)( const TopoDS_Face & , opencascade::handle<Geom_Surface> & , TopLoc_Location & , Standard_Real & , Standard_Boolean & , Standard_Boolean & ) >(&BRepTools_CopyModification::NewSurface),
R"#(Returns true if theFace has been modified. If the face has been modified: - theSurf is the new geometry of the face, - theLoc is its new location, and - theTol is the new tolerance. theRevWires, theRevFace are always set to false, because the orientaion is not changed.)#" , py::arg("theFace"), py::arg("theSurf"), py::arg("theLoc"), py::arg("theTol"), py::arg("theRevWires"), py::arg("theRevFace")
)
.def("NewCurve",
(Standard_Boolean (BRepTools_CopyModification::*)( const TopoDS_Edge & , opencascade::handle<Geom_Curve> & , TopLoc_Location & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_CopyModification::*)( const TopoDS_Edge & , opencascade::handle<Geom_Curve> & , TopLoc_Location & , Standard_Real & ) >(&BRepTools_CopyModification::NewCurve),
R"#(Returns true if theEdge has been modified. If the edge has been modified: - theCurve is the new geometric support of the edge, - theLoc is the new location, and - theTol is the new tolerance. If the edge has not been modified, this function returns false, and the values of theCurve, theLoc and theTol are not significant.)#" , py::arg("theEdge"), py::arg("theCurve"), py::arg("theLoc"), py::arg("theTol")
)
.def("NewPoint",
(Standard_Boolean (BRepTools_CopyModification::*)( const TopoDS_Vertex & , gp_Pnt & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_CopyModification::*)( const TopoDS_Vertex & , gp_Pnt & , Standard_Real & ) >(&BRepTools_CopyModification::NewPoint),
R"#(Returns true if theVertex has been modified. If the vertex has been modified: - thePnt is the new geometry of the vertex, and - theTol is the new tolerance. If the vertex has not been modified this function returns false, and the values of thePnt and theTol are not significant.)#" , py::arg("theVertex"), py::arg("thePnt"), py::arg("theTol")
)
.def("NewCurve2d",
(Standard_Boolean (BRepTools_CopyModification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Geom2d_Curve> & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_CopyModification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Geom2d_Curve> & , Standard_Real & ) >(&BRepTools_CopyModification::NewCurve2d),
R"#(Returns true if theEdge has a new curve on surface on theFace. If a new curve exists: - theCurve is the new geometric support of the edge, - theTol the new tolerance. If no new curve exists, this function returns false, and the values of theCurve and theTol are not significant.)#" , py::arg("theEdge"), py::arg("theFace"), py::arg("theNewEdge"), py::arg("theNewFace"), py::arg("theCurve"), py::arg("theTol")
)
.def("NewParameter",
(Standard_Boolean (BRepTools_CopyModification::*)( const TopoDS_Vertex & , const TopoDS_Edge & , Standard_Real & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_CopyModification::*)( const TopoDS_Vertex & , const TopoDS_Edge & , Standard_Real & , Standard_Real & ) >(&BRepTools_CopyModification::NewParameter),
R"#(Returns true if theVertex has a new parameter on theEdge. If a new parameter exists: - thePnt is the parameter, and - theTol is the new tolerance. If no new parameter exists, this function returns false, and the values of thePnt and theTol are not significant.)#" , py::arg("theVertex"), py::arg("theEdge"), py::arg("thePnt"), py::arg("theTol")
)
.def("Continuity",
(GeomAbs_Shape (BRepTools_CopyModification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & ) ) static_cast<GeomAbs_Shape (BRepTools_CopyModification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & ) >(&BRepTools_CopyModification::Continuity),
R"#(Returns the continuity of theNewEdge between theNewFace1 and theNewFace2.)#" , py::arg("theEdge"), py::arg("theFace1"), py::arg("theFace2"), py::arg("theNewEdge"), py::arg("theNewFace1"), py::arg("theNewFace2")
)
.def("NewTriangulation",
(Standard_Boolean (BRepTools_CopyModification::*)( const TopoDS_Face & , opencascade::handle<Poly_Triangulation> & ) ) static_cast<Standard_Boolean (BRepTools_CopyModification::*)( const TopoDS_Face & , opencascade::handle<Poly_Triangulation> & ) >(&BRepTools_CopyModification::NewTriangulation),
R"#(Returns true if the face has been modified according to changed triangulation. If the face has been modified: - theTri is a new triangulation on the face)#" , py::arg("theFace"), py::arg("theTri")
)
.def("NewPolygon",
(Standard_Boolean (BRepTools_CopyModification::*)( const TopoDS_Edge & , opencascade::handle<Poly_Polygon3D> & ) ) static_cast<Standard_Boolean (BRepTools_CopyModification::*)( const TopoDS_Edge & , opencascade::handle<Poly_Polygon3D> & ) >(&BRepTools_CopyModification::NewPolygon),
R"#(Returns true if the edge has been modified according to changed polygon. If the edge has been modified: - thePoly is a new polygon)#" , py::arg("theEdge"), py::arg("thePoly")
)
.def("NewPolygonOnTriangulation",
(Standard_Boolean (BRepTools_CopyModification::*)( const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Poly_PolygonOnTriangulation> & ) ) static_cast<Standard_Boolean (BRepTools_CopyModification::*)( const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Poly_PolygonOnTriangulation> & ) >(&BRepTools_CopyModification::NewPolygonOnTriangulation),
R"#(Returns true if the edge has been modified according to changed polygon on triangulation. If the edge has been modified: - thePoly is a new polygon on triangulation)#" , py::arg("theEdge"), py::arg("theFace"), py::arg("thePoly")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&BRepTools_CopyModification::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&BRepTools_CopyModification::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> & (BRepTools_CopyModification::*)() const) static_cast<const opencascade::handle<Standard_Type> & (BRepTools_CopyModification::*)() const>(&BRepTools_CopyModification::DynamicType),
R"#(None)#"
)
;
// Class BRepTools_GTrsfModification from ./opencascade/BRepTools_GTrsfModification.hxx
klass = m.attr("BRepTools_GTrsfModification");
// nested enums
static_cast<py::class_<BRepTools_GTrsfModification ,opencascade::handle<BRepTools_GTrsfModification> , BRepTools_Modification >>(klass)
// constructors
.def(py::init< const gp_GTrsf & >() , py::arg("T") )
// custom constructors
// methods
.def("NewSurface",
(Standard_Boolean (BRepTools_GTrsfModification::*)( const TopoDS_Face & , opencascade::handle<Geom_Surface> & , TopLoc_Location & , Standard_Real & , Standard_Boolean & , Standard_Boolean & ) ) static_cast<Standard_Boolean (BRepTools_GTrsfModification::*)( const TopoDS_Face & , opencascade::handle<Geom_Surface> & , TopLoc_Location & , Standard_Real & , Standard_Boolean & , Standard_Boolean & ) >(&BRepTools_GTrsfModification::NewSurface),
R"#(Returns Standard_True if the face <F> has been modified. In this case, <S> is the new geometric support of the face, <L> the new location,<Tol> the new tolerance.<RevWires> has to be set to Standard_True when the modification reverses the normal of the surface.(the wires have to be reversed). <RevFace> has to be set to Standard_True if the orientation of the modified face changes in the shells which contain it. -- Here, <RevFace> will return Standard_True if the -- gp_Trsf is negative.)#" , py::arg("F"), py::arg("S"), py::arg("L"), py::arg("Tol"), py::arg("RevWires"), py::arg("RevFace")
)
.def("NewCurve",
(Standard_Boolean (BRepTools_GTrsfModification::*)( const TopoDS_Edge & , opencascade::handle<Geom_Curve> & , TopLoc_Location & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_GTrsfModification::*)( const TopoDS_Edge & , opencascade::handle<Geom_Curve> & , TopLoc_Location & , Standard_Real & ) >(&BRepTools_GTrsfModification::NewCurve),
R"#(Returns Standard_True if the edge <E> has been modified. In this case, <C> is the new geometric support of the edge, <L> the new location, <Tol> the new tolerance. Otherwise, returns Standard_False, and <C>, <L>, <Tol> are not significant.)#" , py::arg("E"), py::arg("C"), py::arg("L"), py::arg("Tol")
)
.def("NewPoint",
(Standard_Boolean (BRepTools_GTrsfModification::*)( const TopoDS_Vertex & , gp_Pnt & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_GTrsfModification::*)( const TopoDS_Vertex & , gp_Pnt & , Standard_Real & ) >(&BRepTools_GTrsfModification::NewPoint),
R"#(Returns Standard_True if the vertex <V> has been modified. In this case, <P> is the new geometric support of the vertex, <Tol> the new tolerance. Otherwise, returns Standard_False, and <P>, <Tol> are not significant.)#" , py::arg("V"), py::arg("P"), py::arg("Tol")
)
.def("NewCurve2d",
(Standard_Boolean (BRepTools_GTrsfModification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Geom2d_Curve> & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_GTrsfModification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Geom2d_Curve> & , Standard_Real & ) >(&BRepTools_GTrsfModification::NewCurve2d),
R"#(Returns Standard_True if the edge <E> has a new curve on surface on the face <F>.In this case, <C> is the new geometric support of the edge, <L> the new location, <Tol> the new tolerance. Otherwise, returns Standard_False, and <C>, <L>, <Tol> are not significant.)#" , py::arg("E"), py::arg("F"), py::arg("NewE"), py::arg("NewF"), py::arg("C"), py::arg("Tol")
)
.def("NewParameter",
(Standard_Boolean (BRepTools_GTrsfModification::*)( const TopoDS_Vertex & , const TopoDS_Edge & , Standard_Real & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_GTrsfModification::*)( const TopoDS_Vertex & , const TopoDS_Edge & , Standard_Real & , Standard_Real & ) >(&BRepTools_GTrsfModification::NewParameter),
R"#(Returns Standard_True if the Vertex <V> has a new parameter on the edge <E>. In this case, <P> is the parameter, <Tol> the new tolerance. Otherwise, returns Standard_False, and <P>, <Tol> are not significant.)#" , py::arg("V"), py::arg("E"), py::arg("P"), py::arg("Tol")
)
.def("Continuity",
(GeomAbs_Shape (BRepTools_GTrsfModification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & ) ) static_cast<GeomAbs_Shape (BRepTools_GTrsfModification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & ) >(&BRepTools_GTrsfModification::Continuity),
R"#(Returns the continuity of <NewE> between <NewF1> and <NewF2>.)#" , py::arg("E"), py::arg("F1"), py::arg("F2"), py::arg("NewE"), py::arg("NewF1"), py::arg("NewF2")
)
.def("NewTriangulation",
(Standard_Boolean (BRepTools_GTrsfModification::*)( const TopoDS_Face & , opencascade::handle<Poly_Triangulation> & ) ) static_cast<Standard_Boolean (BRepTools_GTrsfModification::*)( const TopoDS_Face & , opencascade::handle<Poly_Triangulation> & ) >(&BRepTools_GTrsfModification::NewTriangulation),
R"#(Returns true if the face has been modified according to changed triangulation. If the face has been modified: - theTri is a new triangulation on the face)#" , py::arg("theFace"), py::arg("theTri")
)
.def("NewPolygon",
(Standard_Boolean (BRepTools_GTrsfModification::*)( const TopoDS_Edge & , opencascade::handle<Poly_Polygon3D> & ) ) static_cast<Standard_Boolean (BRepTools_GTrsfModification::*)( const TopoDS_Edge & , opencascade::handle<Poly_Polygon3D> & ) >(&BRepTools_GTrsfModification::NewPolygon),
R"#(Returns true if the edge has been modified according to changed polygon. If the edge has been modified: - thePoly is a new polygon)#" , py::arg("theEdge"), py::arg("thePoly")
)
.def("NewPolygonOnTriangulation",
(Standard_Boolean (BRepTools_GTrsfModification::*)( const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Poly_PolygonOnTriangulation> & ) ) static_cast<Standard_Boolean (BRepTools_GTrsfModification::*)( const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Poly_PolygonOnTriangulation> & ) >(&BRepTools_GTrsfModification::NewPolygonOnTriangulation),
R"#(Returns true if the edge has been modified according to changed polygon on triangulation. If the edge has been modified: - thePoly is a new polygon on triangulation)#" , py::arg("theEdge"), py::arg("theFace"), py::arg("thePoly")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&BRepTools_GTrsfModification::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&BRepTools_GTrsfModification::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("GTrsf",
(gp_GTrsf & (BRepTools_GTrsfModification::*)() ) static_cast<gp_GTrsf & (BRepTools_GTrsfModification::*)() >(&BRepTools_GTrsfModification::GTrsf),
R"#(Gives an access on the GTrsf.)#"
, py::return_value_policy::reference_internal
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (BRepTools_GTrsfModification::*)() const) static_cast<const opencascade::handle<Standard_Type> & (BRepTools_GTrsfModification::*)() const>(&BRepTools_GTrsfModification::DynamicType),
R"#(None)#"
)
;
// Class BRepTools_TrsfModification from ./opencascade/BRepTools_TrsfModification.hxx
klass = m.attr("BRepTools_TrsfModification");
// nested enums
static_cast<py::class_<BRepTools_TrsfModification ,opencascade::handle<BRepTools_TrsfModification> , BRepTools_Modification >>(klass)
// constructors
.def(py::init< const gp_Trsf & >() , py::arg("T") )
// custom constructors
// methods
.def("NewSurface",
(Standard_Boolean (BRepTools_TrsfModification::*)( const TopoDS_Face & , opencascade::handle<Geom_Surface> & , TopLoc_Location & , Standard_Real & , Standard_Boolean & , Standard_Boolean & ) ) static_cast<Standard_Boolean (BRepTools_TrsfModification::*)( const TopoDS_Face & , opencascade::handle<Geom_Surface> & , TopLoc_Location & , Standard_Real & , Standard_Boolean & , Standard_Boolean & ) >(&BRepTools_TrsfModification::NewSurface),
R"#(Returns true if the face F has been modified. If the face has been modified: - S is the new geometry of the face, - L is its new location, and - Tol is the new tolerance. RevWires is set to true when the modification reverses the normal of the surface (the wires have to be reversed). RevFace is set to true if the orientation of the modified face changes in the shells which contain it. For this class, RevFace returns true if the gp_Trsf associated with this modification is negative.)#" , py::arg("F"), py::arg("S"), py::arg("L"), py::arg("Tol"), py::arg("RevWires"), py::arg("RevFace")
)
.def("NewTriangulation",
(Standard_Boolean (BRepTools_TrsfModification::*)( const TopoDS_Face & , opencascade::handle<Poly_Triangulation> & ) ) static_cast<Standard_Boolean (BRepTools_TrsfModification::*)( const TopoDS_Face & , opencascade::handle<Poly_Triangulation> & ) >(&BRepTools_TrsfModification::NewTriangulation),
R"#(Returns true if the face has been modified according to changed triangulation. If the face has been modified: - T is a new triangulation on the face)#" , py::arg("F"), py::arg("T")
)
.def("NewPolygon",
(Standard_Boolean (BRepTools_TrsfModification::*)( const TopoDS_Edge & , opencascade::handle<Poly_Polygon3D> & ) ) static_cast<Standard_Boolean (BRepTools_TrsfModification::*)( const TopoDS_Edge & , opencascade::handle<Poly_Polygon3D> & ) >(&BRepTools_TrsfModification::NewPolygon),
R"#(Returns true if the edge has been modified according to changed polygon. If the edge has been modified: - P is a new polygon)#" , py::arg("E"), py::arg("P")
)
.def("NewPolygonOnTriangulation",
(Standard_Boolean (BRepTools_TrsfModification::*)( const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Poly_PolygonOnTriangulation> & ) ) static_cast<Standard_Boolean (BRepTools_TrsfModification::*)( const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Poly_PolygonOnTriangulation> & ) >(&BRepTools_TrsfModification::NewPolygonOnTriangulation),
R"#(Returns true if the edge has been modified according to changed polygon on triangulation. If the edge has been modified: - P is a new polygon on triangulation)#" , py::arg("E"), py::arg("F"), py::arg("P")
)
.def("NewCurve",
(Standard_Boolean (BRepTools_TrsfModification::*)( const TopoDS_Edge & , opencascade::handle<Geom_Curve> & , TopLoc_Location & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_TrsfModification::*)( const TopoDS_Edge & , opencascade::handle<Geom_Curve> & , TopLoc_Location & , Standard_Real & ) >(&BRepTools_TrsfModification::NewCurve),
R"#(Returns true if the edge E has been modified. If the edge has been modified: - C is the new geometric support of the edge, - L is the new location, and - Tol is the new tolerance. If the edge has not been modified, this function returns false, and the values of C, L and Tol are not significant.)#" , py::arg("E"), py::arg("C"), py::arg("L"), py::arg("Tol")
)
.def("NewPoint",
(Standard_Boolean (BRepTools_TrsfModification::*)( const TopoDS_Vertex & , gp_Pnt & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_TrsfModification::*)( const TopoDS_Vertex & , gp_Pnt & , Standard_Real & ) >(&BRepTools_TrsfModification::NewPoint),
R"#(Returns true if the vertex V has been modified. If the vertex has been modified: - P is the new geometry of the vertex, and - Tol is the new tolerance. If the vertex has not been modified this function returns false, and the values of P and Tol are not significant.)#" , py::arg("V"), py::arg("P"), py::arg("Tol")
)
.def("NewCurve2d",
(Standard_Boolean (BRepTools_TrsfModification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Geom2d_Curve> & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_TrsfModification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Geom2d_Curve> & , Standard_Real & ) >(&BRepTools_TrsfModification::NewCurve2d),
R"#(Returns true if the edge E has a new curve on surface on the face F. If a new curve exists: - C is the new geometric support of the edge, - L is the new location, and - Tol the new tolerance. If no new curve exists, this function returns false, and the values of C, L and Tol are not significant.)#" , py::arg("E"), py::arg("F"), py::arg("NewE"), py::arg("NewF"), py::arg("C"), py::arg("Tol")
)
.def("NewParameter",
(Standard_Boolean (BRepTools_TrsfModification::*)( const TopoDS_Vertex & , const TopoDS_Edge & , Standard_Real & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_TrsfModification::*)( const TopoDS_Vertex & , const TopoDS_Edge & , Standard_Real & , Standard_Real & ) >(&BRepTools_TrsfModification::NewParameter),
R"#(Returns true if the Vertex V has a new parameter on the edge E. If a new parameter exists: - P is the parameter, and - Tol is the new tolerance. If no new parameter exists, this function returns false, and the values of P and Tol are not significant.)#" , py::arg("V"), py::arg("E"), py::arg("P"), py::arg("Tol")
)
.def("Continuity",
(GeomAbs_Shape (BRepTools_TrsfModification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & ) ) static_cast<GeomAbs_Shape (BRepTools_TrsfModification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & ) >(&BRepTools_TrsfModification::Continuity),
R"#(Returns the continuity of <NewE> between <NewF1> and <NewF2>.)#" , py::arg("E"), py::arg("F1"), py::arg("F2"), py::arg("NewE"), py::arg("NewF1"), py::arg("NewF2")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&BRepTools_TrsfModification::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&BRepTools_TrsfModification::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("Trsf",
(gp_Trsf & (BRepTools_TrsfModification::*)() ) static_cast<gp_Trsf & (BRepTools_TrsfModification::*)() >(&BRepTools_TrsfModification::Trsf),
R"#(Provides access to the gp_Trsf associated with this modification. The transformation can be changed.)#"
, py::return_value_policy::reference_internal
)
.def_property("IsCopyMesh",
[](BRepTools_TrsfModification& self){return self.IsCopyMesh();} ,
[](BRepTools_TrsfModification& self, Standard_Boolean val){self.IsCopyMesh() = val;}, R"#(Sets a flag to indicate the need to copy mesh.)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (BRepTools_TrsfModification::*)() const) static_cast<const opencascade::handle<Standard_Type> & (BRepTools_TrsfModification::*)() const>(&BRepTools_TrsfModification::DynamicType),
R"#(None)#"
)
;
// Class BRepTools_NurbsConvertModification from ./opencascade/BRepTools_NurbsConvertModification.hxx
klass = m.attr("BRepTools_NurbsConvertModification");
// nested enums
static_cast<py::class_<BRepTools_NurbsConvertModification ,opencascade::handle<BRepTools_NurbsConvertModification> , BRepTools_CopyModification >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("NewSurface",
(Standard_Boolean (BRepTools_NurbsConvertModification::*)( const TopoDS_Face & , opencascade::handle<Geom_Surface> & , TopLoc_Location & , Standard_Real & , Standard_Boolean & , Standard_Boolean & ) ) static_cast<Standard_Boolean (BRepTools_NurbsConvertModification::*)( const TopoDS_Face & , opencascade::handle<Geom_Surface> & , TopLoc_Location & , Standard_Real & , Standard_Boolean & , Standard_Boolean & ) >(&BRepTools_NurbsConvertModification::NewSurface),
R"#(Returns Standard_True if the face <F> has been modified. In this case, <S> is the new geometric support of the face, <L> the new location,<Tol> the new tolerance.<RevWires> has to be set to Standard_True when the modification reverses the normal of the surface.(the wires have to be reversed). <RevFace> has to be set to Standard_True if the orientation of the modified face changes in the shells which contain it. -- Here, <RevFace> will return Standard_True if the -- gp_Trsf is negative.)#" , py::arg("F"), py::arg("S"), py::arg("L"), py::arg("Tol"), py::arg("RevWires"), py::arg("RevFace")
)
.def("NewCurve",
(Standard_Boolean (BRepTools_NurbsConvertModification::*)( const TopoDS_Edge & , opencascade::handle<Geom_Curve> & , TopLoc_Location & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_NurbsConvertModification::*)( const TopoDS_Edge & , opencascade::handle<Geom_Curve> & , TopLoc_Location & , Standard_Real & ) >(&BRepTools_NurbsConvertModification::NewCurve),
R"#(Returns Standard_True if the edge <E> has been modified. In this case, <C> is the new geometric support of the edge, <L> the new location, <Tol> the new tolerance. Otherwise, returns Standard_False, and <C>, <L>, <Tol> are not significant.)#" , py::arg("E"), py::arg("C"), py::arg("L"), py::arg("Tol")
)
.def("NewPoint",
(Standard_Boolean (BRepTools_NurbsConvertModification::*)( const TopoDS_Vertex & , gp_Pnt & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_NurbsConvertModification::*)( const TopoDS_Vertex & , gp_Pnt & , Standard_Real & ) >(&BRepTools_NurbsConvertModification::NewPoint),
R"#(Returns Standard_True if the vertex <V> has been modified. In this case, <P> is the new geometric support of the vertex, <Tol> the new tolerance. Otherwise, returns Standard_False, and <P>, <Tol> are not significant.)#" , py::arg("V"), py::arg("P"), py::arg("Tol")
)
.def("NewCurve2d",
(Standard_Boolean (BRepTools_NurbsConvertModification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Geom2d_Curve> & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_NurbsConvertModification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Geom2d_Curve> & , Standard_Real & ) >(&BRepTools_NurbsConvertModification::NewCurve2d),
R"#(Returns Standard_True if the edge <E> has a new curve on surface on the face <F>.In this case, <C> is the new geometric support of the edge, <L> the new location, <Tol> the new tolerance. Otherwise, returns Standard_False, and <C>, <L>, <Tol> are not significant.)#" , py::arg("E"), py::arg("F"), py::arg("NewE"), py::arg("NewF"), py::arg("C"), py::arg("Tol")
)
.def("NewParameter",
(Standard_Boolean (BRepTools_NurbsConvertModification::*)( const TopoDS_Vertex & , const TopoDS_Edge & , Standard_Real & , Standard_Real & ) ) static_cast<Standard_Boolean (BRepTools_NurbsConvertModification::*)( const TopoDS_Vertex & , const TopoDS_Edge & , Standard_Real & , Standard_Real & ) >(&BRepTools_NurbsConvertModification::NewParameter),
R"#(Returns Standard_True if the Vertex <V> has a new parameter on the edge <E>. In this case, <P> is the parameter, <Tol> the new tolerance. Otherwise, returns Standard_False, and <P>, <Tol> are not significant.)#" , py::arg("V"), py::arg("E"), py::arg("P"), py::arg("Tol")
)
.def("Continuity",
(GeomAbs_Shape (BRepTools_NurbsConvertModification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & ) ) static_cast<GeomAbs_Shape (BRepTools_NurbsConvertModification::*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & ) >(&BRepTools_NurbsConvertModification::Continuity),
R"#(Returns the continuity of <NewE> between <NewF1> and <NewF2>.)#" , py::arg("E"), py::arg("F1"), py::arg("F2"), py::arg("NewE"), py::arg("NewF1"), py::arg("NewF2")
)
.def("NewTriangulation",
(Standard_Boolean (BRepTools_NurbsConvertModification::*)( const TopoDS_Face & , opencascade::handle<Poly_Triangulation> & ) ) static_cast<Standard_Boolean (BRepTools_NurbsConvertModification::*)( const TopoDS_Face & , opencascade::handle<Poly_Triangulation> & ) >(&BRepTools_NurbsConvertModification::NewTriangulation),
R"#(Returns true if the face has been modified according to changed triangulation. If the face has been modified: - theTri is a new triangulation on the face)#" , py::arg("theFace"), py::arg("theTri")
)
.def("NewPolygon",
(Standard_Boolean (BRepTools_NurbsConvertModification::*)( const TopoDS_Edge & , opencascade::handle<Poly_Polygon3D> & ) ) static_cast<Standard_Boolean (BRepTools_NurbsConvertModification::*)( const TopoDS_Edge & , opencascade::handle<Poly_Polygon3D> & ) >(&BRepTools_NurbsConvertModification::NewPolygon),
R"#(Returns true if the edge has been modified according to changed polygon. If the edge has been modified: - thePoly is a new polygon)#" , py::arg("theEdge"), py::arg("thePoly")
)
.def("NewPolygonOnTriangulation",
(Standard_Boolean (BRepTools_NurbsConvertModification::*)( const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Poly_PolygonOnTriangulation> & ) ) static_cast<Standard_Boolean (BRepTools_NurbsConvertModification::*)( const TopoDS_Edge & , const TopoDS_Face & , opencascade::handle<Poly_PolygonOnTriangulation> & ) >(&BRepTools_NurbsConvertModification::NewPolygonOnTriangulation),
R"#(Returns true if the edge has been modified according to changed polygon on triangulation. If the edge has been modified: - thePoly is a new polygon on triangulation)#" , py::arg("theEdge"), py::arg("theFace"), py::arg("thePoly")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&BRepTools_NurbsConvertModification::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&BRepTools_NurbsConvertModification::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("GetUpdatedEdges",
(const TopTools_ListOfShape & (BRepTools_NurbsConvertModification::*)() const) static_cast<const TopTools_ListOfShape & (BRepTools_NurbsConvertModification::*)() const>(&BRepTools_NurbsConvertModification::GetUpdatedEdges),
R"#(None)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (BRepTools_NurbsConvertModification::*)() const) static_cast<const opencascade::handle<Standard_Type> & (BRepTools_NurbsConvertModification::*)() const>(&BRepTools_NurbsConvertModification::DynamicType),
R"#(None)#"
)
;
// functions
// ./opencascade/BRepTools.hxx
// ./opencascade/BRepTools_CopyModification.hxx
// ./opencascade/BRepTools_DataMapIteratorOfMapOfVertexPnt2d.hxx
// ./opencascade/BRepTools_GTrsfModification.hxx
// ./opencascade/BRepTools_History.hxx
// ./opencascade/BRepTools_MapOfVertexPnt2d.hxx
// ./opencascade/BRepTools_Modification.hxx
// ./opencascade/BRepTools_Modifier.hxx
// ./opencascade/BRepTools_NurbsConvertModification.hxx
// ./opencascade/BRepTools_PurgeLocations.hxx
// ./opencascade/BRepTools_Quilt.hxx
// ./opencascade/BRepTools_ReShape.hxx
// ./opencascade/BRepTools_ShapeSet.hxx
// ./opencascade/BRepTools_Substitution.hxx
// ./opencascade/BRepTools_TrsfModification.hxx
// ./opencascade/BRepTools_WireExplorer.hxx
// Additional functions
// operators
// register typdefs
register_template_NCollection_DataMap<TopoDS_Shape, TColgp_SequenceOfPnt2d, TopTools_ShapeMapHasher>(m,"BRepTools_MapOfVertexPnt2d");
// exceptions
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|