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 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871
|
// std lib related includes
#include <tuple>
// pybind 11 related includes
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
// Standard Handle
#include <Standard_Handle.hxx>
// includes to resolve forward declarations
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Select3D_SensitiveEntity.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Select3D_SensitiveEntity.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <SelectMgr_EntityOwner.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Graphic3d_TransformPers.hxx>
#include <SelectMgr_EntityOwner.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Poly_Triangle.hxx>
#include <Poly_Triangulation.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
// module includes
#include <Select3D_BndBox3d.hxx>
#include <Select3D_BVHBuilder3d.hxx>
#include <Select3D_BVHIndexBuffer.hxx>
#include <Select3D_EntitySequence.hxx>
#include <Select3D_IndexedMapOfEntity.hxx>
#include <Select3D_InteriorSensitivePointSet.hxx>
#include <Select3D_Pnt.hxx>
#include <Select3D_PointData.hxx>
#include <Select3D_SensitiveBox.hxx>
#include <Select3D_SensitiveCircle.hxx>
#include <Select3D_SensitiveCurve.hxx>
#include <Select3D_SensitiveCylinder.hxx>
#include <Select3D_SensitiveEntity.hxx>
#include <Select3D_SensitiveFace.hxx>
#include <Select3D_SensitiveGroup.hxx>
#include <Select3D_SensitivePoint.hxx>
#include <Select3D_SensitivePoly.hxx>
#include <Select3D_SensitivePrimitiveArray.hxx>
#include <Select3D_SensitiveSegment.hxx>
#include <Select3D_SensitiveSet.hxx>
#include <Select3D_SensitiveSphere.hxx>
#include <Select3D_SensitiveTriangle.hxx>
#include <Select3D_SensitiveTriangulation.hxx>
#include <Select3D_SensitiveWire.hxx>
#include <Select3D_TypeOfSensitivity.hxx>
// template related includes
// ./opencascade/Select3D_BVHBuilder3d.hxx
#include "BVH_tmpl.hxx"
// ./opencascade/Select3D_EntitySequence.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/Select3D_EntitySequence.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/Select3D_InteriorSensitivePointSet.hxx
#include "NCollection_tmpl.hxx"
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_Select3D(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("Select3D"));
py::object klass;
//Python trampoline classes
class Py_Select3D_SensitiveEntity : public Select3D_SensitiveEntity{
public:
using Select3D_SensitiveEntity::Select3D_SensitiveEntity;
// public pure virtual
Standard_Boolean Matches(SelectBasics_SelectingVolumeManager & theMgr,SelectBasics_PickResult & thePickResult) override { PYBIND11_OVERLOAD_PURE(Standard_Boolean,Select3D_SensitiveEntity,Matches,theMgr,thePickResult) };
Standard_Integer NbSubElements() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,Select3D_SensitiveEntity,NbSubElements,) };
Select3D_BndBox3d BoundingBox() override { PYBIND11_OVERLOAD_PURE(Select3D_BndBox3d,Select3D_SensitiveEntity,BoundingBox,) };
gp_Pnt CenterOfGeometry() const override { PYBIND11_OVERLOAD_PURE(gp_Pnt,Select3D_SensitiveEntity,CenterOfGeometry,) };
// protected pure virtual
// private pure virtual
};
class Py_Select3D_SensitiveSet : public Select3D_SensitiveSet{
public:
using Select3D_SensitiveSet::Select3D_SensitiveSet;
// public pure virtual
Standard_Integer Size() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,Select3D_SensitiveSet,Size,) };
Select3D_BndBox3d Box(const Standard_Integer theIdx) const override { PYBIND11_OVERLOAD_PURE(Select3D_BndBox3d,Select3D_SensitiveSet,Box,theIdx) };
Standard_Real Center(const Standard_Integer theIdx,const Standard_Integer theAxis) const override { PYBIND11_OVERLOAD_PURE(Standard_Real,Select3D_SensitiveSet,Center,theIdx,theAxis) };
void Swap(const Standard_Integer theIdx1,const Standard_Integer theIdx2) override { PYBIND11_OVERLOAD_PURE(void,Select3D_SensitiveSet,Swap,theIdx1,theIdx2) };
Standard_Integer NbSubElements() const override { PYBIND11_OVERLOAD_PURE(Standard_Integer,Select3D_SensitiveEntity,NbSubElements,) };
// protected pure virtual
Standard_Boolean overlapsElement(SelectBasics_PickResult & thePickResult,SelectBasics_SelectingVolumeManager & theMgr,Standard_Integer theElemIdx,Standard_Boolean theIsFullInside) override { PYBIND11_OVERLOAD_PURE(Standard_Boolean,Select3D_SensitiveSet,overlapsElement,thePickResult,theMgr,theElemIdx,theIsFullInside) };
Standard_Boolean elementIsInside(SelectBasics_SelectingVolumeManager & theMgr,Standard_Integer theElemIdx,Standard_Boolean theIsFullInside) override { PYBIND11_OVERLOAD_PURE(Standard_Boolean,Select3D_SensitiveSet,elementIsInside,theMgr,theElemIdx,theIsFullInside) };
Standard_Real distanceToCOG(SelectBasics_SelectingVolumeManager & theMgr) override { PYBIND11_OVERLOAD_PURE(Standard_Real,Select3D_SensitiveSet,distanceToCOG,theMgr) };
// private pure virtual
};
// classes
// Class Select3D_BVHIndexBuffer from ./opencascade/Select3D_BVHIndexBuffer.hxx
klass = m.attr("Select3D_BVHIndexBuffer");
// nested enums
static_cast<py::class_<Select3D_BVHIndexBuffer ,opencascade::handle<Select3D_BVHIndexBuffer> , Graphic3d_Buffer >>(klass)
// constructors
.def(py::init< const opencascade::handle<NCollection_BaseAllocator> & >() , py::arg("theAlloc") )
// custom constructors
// methods
.def("HasPatches",
(bool (Select3D_BVHIndexBuffer::*)() const) static_cast<bool (Select3D_BVHIndexBuffer::*)() const>(&Select3D_BVHIndexBuffer::HasPatches),
R"#(None)#"
)
.def("Init",
(bool (Select3D_BVHIndexBuffer::*)( const Standard_Integer , const bool ) ) static_cast<bool (Select3D_BVHIndexBuffer::*)( const Standard_Integer , const bool ) >(&Select3D_BVHIndexBuffer::Init),
R"#(Allocates new empty index array)#" , py::arg("theNbElems"), py::arg("theHasPatches")
)
.def("Index",
(Standard_Integer (Select3D_BVHIndexBuffer::*)( const Standard_Integer ) const) static_cast<Standard_Integer (Select3D_BVHIndexBuffer::*)( const Standard_Integer ) const>(&Select3D_BVHIndexBuffer::Index),
R"#(Access index at specified position)#" , py::arg("theIndex")
)
.def("PatchSize",
(Standard_Integer (Select3D_BVHIndexBuffer::*)( const Standard_Integer ) const) static_cast<Standard_Integer (Select3D_BVHIndexBuffer::*)( const Standard_Integer ) const>(&Select3D_BVHIndexBuffer::PatchSize),
R"#(Access index at specified position)#" , py::arg("theIndex")
)
.def("SetIndex",
(void (Select3D_BVHIndexBuffer::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<void (Select3D_BVHIndexBuffer::*)( const Standard_Integer , const Standard_Integer ) >(&Select3D_BVHIndexBuffer::SetIndex),
R"#(Change index at specified position)#" , py::arg("theIndex"), py::arg("theValue")
)
.def("SetIndex",
(void (Select3D_BVHIndexBuffer::*)( const Standard_Integer , const Standard_Integer , const Standard_Integer ) ) static_cast<void (Select3D_BVHIndexBuffer::*)( const Standard_Integer , const Standard_Integer , const Standard_Integer ) >(&Select3D_BVHIndexBuffer::SetIndex),
R"#(Change index at specified position)#" , py::arg("theIndex"), py::arg("theValue"), py::arg("thePatchSize")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&Select3D_BVHIndexBuffer::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Select3D_BVHIndexBuffer::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> & (Select3D_BVHIndexBuffer::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Select3D_BVHIndexBuffer::*)() const>(&Select3D_BVHIndexBuffer::DynamicType),
R"#(None)#"
)
;
// Class Select3D_Pnt from ./opencascade/Select3D_Pnt.hxx
klass = m.attr("Select3D_Pnt");
// default constructor
register_default_constructor<Select3D_Pnt , shared_ptr<Select3D_Pnt>>(m,"Select3D_Pnt");
// nested enums
static_cast<py::class_<Select3D_Pnt , shared_ptr<Select3D_Pnt> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
.def_readwrite("x", &Select3D_Pnt::x)
.def_readwrite("y", &Select3D_Pnt::y)
.def_readwrite("z", &Select3D_Pnt::z)
// methods returning by ref wrapped as properties
;
// Class Select3D_PointData from ./opencascade/Select3D_PointData.hxx
klass = m.attr("Select3D_PointData");
// nested enums
static_cast<py::class_<Select3D_PointData , shared_ptr<Select3D_PointData> >>(klass)
// constructors
.def(py::init< const Standard_Integer >() , py::arg("theNbPoints") )
// custom constructors
// methods
.def("SetPnt",
(void (Select3D_PointData::*)( const Standard_Integer , const Select3D_Pnt & ) ) static_cast<void (Select3D_PointData::*)( const Standard_Integer , const Select3D_Pnt & ) >(&Select3D_PointData::SetPnt),
R"#(None)#" , py::arg("theIndex"), py::arg("theValue")
)
.def("SetPnt",
(void (Select3D_PointData::*)( const Standard_Integer , const gp_Pnt & ) ) static_cast<void (Select3D_PointData::*)( const Standard_Integer , const gp_Pnt & ) >(&Select3D_PointData::SetPnt),
R"#(None)#" , py::arg("theIndex"), py::arg("theValue")
)
.def("Pnt",
(const Select3D_Pnt & (Select3D_PointData::*)( const Standard_Integer ) const) static_cast<const Select3D_Pnt & (Select3D_PointData::*)( const Standard_Integer ) const>(&Select3D_PointData::Pnt),
R"#(None)#" , py::arg("theIndex")
)
.def("Pnt3d",
(gp_Pnt (Select3D_PointData::*)( const Standard_Integer ) const) static_cast<gp_Pnt (Select3D_PointData::*)( const Standard_Integer ) const>(&Select3D_PointData::Pnt3d),
R"#(None)#" , py::arg("theIndex")
)
.def("Size",
(Standard_Integer (Select3D_PointData::*)() const) static_cast<Standard_Integer (Select3D_PointData::*)() const>(&Select3D_PointData::Size),
R"#(None)#"
)
// 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 Select3D_SensitiveEntity from ./opencascade/Select3D_SensitiveEntity.hxx
klass = m.attr("Select3D_SensitiveEntity");
// nested enums
static_cast<py::class_<Select3D_SensitiveEntity ,opencascade::handle<Select3D_SensitiveEntity> ,Py_Select3D_SensitiveEntity , Standard_Transient >>(klass)
// constructors
// custom constructors
// methods
.def("Set",
(void (Select3D_SensitiveEntity::*)( const opencascade::handle<SelectMgr_EntityOwner> & ) ) static_cast<void (Select3D_SensitiveEntity::*)( const opencascade::handle<SelectMgr_EntityOwner> & ) >(&Select3D_SensitiveEntity::Set),
R"#(Sets owner of the entity)#" , py::arg("theOwnerId")
)
.def("SensitivityFactor",
(Standard_Integer (Select3D_SensitiveEntity::*)() const) static_cast<Standard_Integer (Select3D_SensitiveEntity::*)() const>(&Select3D_SensitiveEntity::SensitivityFactor),
R"#(allows a better sensitivity for a specific entity in selection algorithms useful for small sized entities.)#"
)
.def("SetSensitivityFactor",
(void (Select3D_SensitiveEntity::*)( const Standard_Integer ) ) static_cast<void (Select3D_SensitiveEntity::*)( const Standard_Integer ) >(&Select3D_SensitiveEntity::SetSensitivityFactor),
R"#(Allows to manage sensitivity of a particular sensitive entity)#" , py::arg("theNewSens")
)
.def("GetConnected",
(opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveEntity::*)() ) static_cast<opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveEntity::*)() >(&Select3D_SensitiveEntity::GetConnected),
R"#(Originally this method intended to return sensitive entity with new location aLocation, but currently sensitive entities do not hold a location, instead HasLocation() and Location() methods call corresponding entity owner's methods. Thus all entities returned by GetConnected() share the same location propagated from corresponding selectable object. You must redefine this function for any type of sensitive entity which can accept another connected sensitive entity.)#"
)
.def("Matches",
(Standard_Boolean (Select3D_SensitiveEntity::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) ) static_cast<Standard_Boolean (Select3D_SensitiveEntity::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) >(&Select3D_SensitiveEntity::Matches),
R"#(Checks whether sensitive overlaps current selecting volume. Stores minimum depth, distance to center of geometry and closest point detected into thePickResult)#" , py::arg("theMgr"), py::arg("thePickResult")
)
.def("NbSubElements",
(Standard_Integer (Select3D_SensitiveEntity::*)() const) static_cast<Standard_Integer (Select3D_SensitiveEntity::*)() const>(&Select3D_SensitiveEntity::NbSubElements),
R"#(Returns the number of sub-entities or elements in sensitive entity. Is used to determine if entity is complex and needs to pre-build BVH at the creation of sensitive entity step or is light-weighted so the tree can be build on demand with unnoticeable delay.)#"
)
.def("BoundingBox",
(Select3D_BndBox3d (Select3D_SensitiveEntity::*)() ) static_cast<Select3D_BndBox3d (Select3D_SensitiveEntity::*)() >(&Select3D_SensitiveEntity::BoundingBox),
R"#(Returns bounding box of a sensitive with transformation applied)#"
)
.def("CenterOfGeometry",
(gp_Pnt (Select3D_SensitiveEntity::*)() const) static_cast<gp_Pnt (Select3D_SensitiveEntity::*)() const>(&Select3D_SensitiveEntity::CenterOfGeometry),
R"#(Returns center of a sensitive with transformation applied)#"
)
.def("BVH",
(void (Select3D_SensitiveEntity::*)() ) static_cast<void (Select3D_SensitiveEntity::*)() >(&Select3D_SensitiveEntity::BVH),
R"#(Builds BVH tree for a sensitive if needed)#"
)
.def("ToBuildBVH",
(Standard_Boolean (Select3D_SensitiveEntity::*)() const) static_cast<Standard_Boolean (Select3D_SensitiveEntity::*)() const>(&Select3D_SensitiveEntity::ToBuildBVH),
R"#(Returns TRUE if BVH tree is in invalidated state)#"
)
.def("Clear",
(void (Select3D_SensitiveEntity::*)() ) static_cast<void (Select3D_SensitiveEntity::*)() >(&Select3D_SensitiveEntity::Clear),
R"#(Clears up all resources and memory)#"
)
.def("HasInitLocation",
(Standard_Boolean (Select3D_SensitiveEntity::*)() const) static_cast<Standard_Boolean (Select3D_SensitiveEntity::*)() const>(&Select3D_SensitiveEntity::HasInitLocation),
R"#(Returns true if the shape corresponding to the entity has init location)#"
)
.def("InvInitLocation",
(gp_GTrsf (Select3D_SensitiveEntity::*)() const) static_cast<gp_GTrsf (Select3D_SensitiveEntity::*)() const>(&Select3D_SensitiveEntity::InvInitLocation),
R"#(Returns inversed location transformation matrix if the shape corresponding to this entity has init location set. Otherwise, returns identity matrix.)#"
)
.def("SetTransformPersistence",
(void (Select3D_SensitiveEntity::*)( const opencascade::handle<Graphic3d_TransformPers> & ) ) static_cast<void (Select3D_SensitiveEntity::*)( const opencascade::handle<Graphic3d_TransformPers> & ) >(&Select3D_SensitiveEntity::SetTransformPersistence),
R"#(Set transformation persistence.)#" , py::arg("theTrsfPers")
)
.def("DumpJson",
(void (Select3D_SensitiveEntity::*)( std::ostream & , Standard_Integer ) const) static_cast<void (Select3D_SensitiveEntity::*)( std::ostream & , Standard_Integer ) const>(&Select3D_SensitiveEntity::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&Select3D_SensitiveEntity::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Select3D_SensitiveEntity::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> & (Select3D_SensitiveEntity::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Select3D_SensitiveEntity::*)() const>(&Select3D_SensitiveEntity::DynamicType),
R"#(None)#"
)
.def("OwnerId",
(const opencascade::handle<SelectMgr_EntityOwner> & (Select3D_SensitiveEntity::*)() const) static_cast<const opencascade::handle<SelectMgr_EntityOwner> & (Select3D_SensitiveEntity::*)() const>(&Select3D_SensitiveEntity::OwnerId),
R"#(Returns pointer to owner of the entity)#"
)
.def("TransformPersistence",
(const opencascade::handle<Graphic3d_TransformPers> & (Select3D_SensitiveEntity::*)() const) static_cast<const opencascade::handle<Graphic3d_TransformPers> & (Select3D_SensitiveEntity::*)() const>(&Select3D_SensitiveEntity::TransformPersistence),
R"#(Return transformation persistence.)#"
)
;
// Class Select3D_SensitiveBox from ./opencascade/Select3D_SensitiveBox.hxx
klass = m.attr("Select3D_SensitiveBox");
// nested enums
static_cast<py::class_<Select3D_SensitiveBox ,opencascade::handle<Select3D_SensitiveBox> , Select3D_SensitiveEntity >>(klass)
// constructors
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &,const Bnd_Box & >() , py::arg("theOwnerId"), py::arg("theBox") )
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real >() , py::arg("theOwnerId"), py::arg("theXMin"), py::arg("theYMin"), py::arg("theZMin"), py::arg("theXMax"), py::arg("theYMax"), py::arg("theZMax") )
// custom constructors
// methods
.def("NbSubElements",
(Standard_Integer (Select3D_SensitiveBox::*)() const) static_cast<Standard_Integer (Select3D_SensitiveBox::*)() const>(&Select3D_SensitiveBox::NbSubElements),
R"#(Returns the amount of sub-entities in sensitive)#"
)
.def("GetConnected",
(opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveBox::*)() ) static_cast<opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveBox::*)() >(&Select3D_SensitiveBox::GetConnected),
R"#(None)#"
)
.def("Matches",
(Standard_Boolean (Select3D_SensitiveBox::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) ) static_cast<Standard_Boolean (Select3D_SensitiveBox::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) >(&Select3D_SensitiveBox::Matches),
R"#(Checks whether the box overlaps current selecting volume)#" , py::arg("theMgr"), py::arg("thePickResult")
)
.def("Box",
(Bnd_Box (Select3D_SensitiveBox::*)() const) static_cast<Bnd_Box (Select3D_SensitiveBox::*)() const>(&Select3D_SensitiveBox::Box),
R"#(None)#"
)
.def("CenterOfGeometry",
(gp_Pnt (Select3D_SensitiveBox::*)() const) static_cast<gp_Pnt (Select3D_SensitiveBox::*)() const>(&Select3D_SensitiveBox::CenterOfGeometry),
R"#(Returns center of the box. If location transformation is set, it will be applied)#"
)
.def("BoundingBox",
(Select3D_BndBox3d (Select3D_SensitiveBox::*)() ) static_cast<Select3D_BndBox3d (Select3D_SensitiveBox::*)() >(&Select3D_SensitiveBox::BoundingBox),
R"#(Returns coordinates of the box. If location transformation is set, it will be applied)#"
)
.def("ToBuildBVH",
(Standard_Boolean (Select3D_SensitiveBox::*)() const) static_cast<Standard_Boolean (Select3D_SensitiveBox::*)() const>(&Select3D_SensitiveBox::ToBuildBVH),
R"#(Returns TRUE if BVH tree is in invalidated state)#"
)
.def("DumpJson",
(void (Select3D_SensitiveBox::*)( std::ostream & , Standard_Integer ) const) static_cast<void (Select3D_SensitiveBox::*)( std::ostream & , Standard_Integer ) const>(&Select3D_SensitiveBox::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&Select3D_SensitiveBox::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Select3D_SensitiveBox::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> & (Select3D_SensitiveBox::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Select3D_SensitiveBox::*)() const>(&Select3D_SensitiveBox::DynamicType),
R"#(None)#"
)
;
// Class Select3D_SensitiveCircle from ./opencascade/Select3D_SensitiveCircle.hxx
klass = m.attr("Select3D_SensitiveCircle");
// nested enums
static_cast<py::class_<Select3D_SensitiveCircle ,opencascade::handle<Select3D_SensitiveCircle> , Select3D_SensitiveEntity >>(klass)
// constructors
// custom constructors
// methods
.def("Matches",
(Standard_Boolean (Select3D_SensitiveCircle::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) ) static_cast<Standard_Boolean (Select3D_SensitiveCircle::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) >(&Select3D_SensitiveCircle::Matches),
R"#(Checks whether the circle overlaps current selecting volume)#" , py::arg("theMgr"), py::arg("thePickResult")
)
.def("GetConnected",
(opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveCircle::*)() ) static_cast<opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveCircle::*)() >(&Select3D_SensitiveCircle::GetConnected),
R"#(Returns a copy of this sensitive circle)#"
)
.def("BoundingBox",
(Select3D_BndBox3d (Select3D_SensitiveCircle::*)() ) static_cast<Select3D_BndBox3d (Select3D_SensitiveCircle::*)() >(&Select3D_SensitiveCircle::BoundingBox),
R"#(Returns bounding box of the circle. If location transformation is set, it will be applied)#"
)
.def("ToBuildBVH",
(Standard_Boolean (Select3D_SensitiveCircle::*)() const) static_cast<Standard_Boolean (Select3D_SensitiveCircle::*)() const>(&Select3D_SensitiveCircle::ToBuildBVH),
R"#(Always returns Standard_False)#"
)
.def("NbSubElements",
(Standard_Integer (Select3D_SensitiveCircle::*)() const) static_cast<Standard_Integer (Select3D_SensitiveCircle::*)() const>(&Select3D_SensitiveCircle::NbSubElements),
R"#(Returns the amount of points)#"
)
.def("CenterOfGeometry",
(gp_Pnt (Select3D_SensitiveCircle::*)() const) static_cast<gp_Pnt (Select3D_SensitiveCircle::*)() const>(&Select3D_SensitiveCircle::CenterOfGeometry),
R"#(Returns center of the circle with transformation applied)#"
)
.def("Circle",
(gp_Circ (Select3D_SensitiveCircle::*)() const) static_cast<gp_Circ (Select3D_SensitiveCircle::*)() const>(&Select3D_SensitiveCircle::Circle),
R"#(Returns circle)#"
)
.def("Radius",
(Standard_Real (Select3D_SensitiveCircle::*)() const) static_cast<Standard_Real (Select3D_SensitiveCircle::*)() const>(&Select3D_SensitiveCircle::Radius),
R"#(Returns circle radius)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&Select3D_SensitiveCircle::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Select3D_SensitiveCircle::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> & (Select3D_SensitiveCircle::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Select3D_SensitiveCircle::*)() const>(&Select3D_SensitiveCircle::DynamicType),
R"#(None)#"
)
.def("Transformation",
(const gp_Trsf & (Select3D_SensitiveCircle::*)() const) static_cast<const gp_Trsf & (Select3D_SensitiveCircle::*)() const>(&Select3D_SensitiveCircle::Transformation),
R"#(The transformation for gp::XOY() with center in gp::Origin(), it specifies the position and orientation of the circle.)#"
)
;
// Class Select3D_SensitiveCylinder from ./opencascade/Select3D_SensitiveCylinder.hxx
klass = m.attr("Select3D_SensitiveCylinder");
// nested enums
static_cast<py::class_<Select3D_SensitiveCylinder ,opencascade::handle<Select3D_SensitiveCylinder> , Select3D_SensitiveEntity >>(klass)
// constructors
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &,const Standard_Real,const Standard_Real,const Standard_Real,const gp_Trsf &,const Standard_Boolean >() , py::arg("theOwnerId"), py::arg("theBottomRad"), py::arg("theTopRad"), py::arg("theHeight"), py::arg("theTrsf"), py::arg("theIsHollow")=static_cast<const Standard_Boolean>(Standard_False) )
// custom constructors
// methods
.def("Matches",
(Standard_Boolean (Select3D_SensitiveCylinder::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) ) static_cast<Standard_Boolean (Select3D_SensitiveCylinder::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) >(&Select3D_SensitiveCylinder::Matches),
R"#(Checks whether the cylinder overlaps current selecting volume)#" , py::arg("theMgr"), py::arg("thePickResult")
)
.def("GetConnected",
(opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveCylinder::*)() ) static_cast<opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveCylinder::*)() >(&Select3D_SensitiveCylinder::GetConnected),
R"#(Returns the copy of this)#"
)
.def("BoundingBox",
(Select3D_BndBox3d (Select3D_SensitiveCylinder::*)() ) static_cast<Select3D_BndBox3d (Select3D_SensitiveCylinder::*)() >(&Select3D_SensitiveCylinder::BoundingBox),
R"#(Returns bounding box of the cylinder. If location transformation is set, it will be applied)#"
)
.def("ToBuildBVH",
(Standard_Boolean (Select3D_SensitiveCylinder::*)() const) static_cast<Standard_Boolean (Select3D_SensitiveCylinder::*)() const>(&Select3D_SensitiveCylinder::ToBuildBVH),
R"#(Always returns Standard_False)#"
)
.def("NbSubElements",
(Standard_Integer (Select3D_SensitiveCylinder::*)() const) static_cast<Standard_Integer (Select3D_SensitiveCylinder::*)() const>(&Select3D_SensitiveCylinder::NbSubElements),
R"#(Returns the amount of points)#"
)
.def("CenterOfGeometry",
(gp_Pnt (Select3D_SensitiveCylinder::*)() const) static_cast<gp_Pnt (Select3D_SensitiveCylinder::*)() const>(&Select3D_SensitiveCylinder::CenterOfGeometry),
R"#(Returns center of the cylinder with transformation applied)#"
)
.def("TopRadius",
(Standard_Real (Select3D_SensitiveCylinder::*)() const) static_cast<Standard_Real (Select3D_SensitiveCylinder::*)() const>(&Select3D_SensitiveCylinder::TopRadius),
R"#(Returns cylinder top radius)#"
)
.def("BottomRadius",
(Standard_Real (Select3D_SensitiveCylinder::*)() const) static_cast<Standard_Real (Select3D_SensitiveCylinder::*)() const>(&Select3D_SensitiveCylinder::BottomRadius),
R"#(Returns cylinder bottom radius)#"
)
.def("Height",
(Standard_Real (Select3D_SensitiveCylinder::*)() const) static_cast<Standard_Real (Select3D_SensitiveCylinder::*)() const>(&Select3D_SensitiveCylinder::Height),
R"#(Returns cylinder height)#"
)
.def("IsHollow",
(Standard_Boolean (Select3D_SensitiveCylinder::*)() const) static_cast<Standard_Boolean (Select3D_SensitiveCylinder::*)() const>(&Select3D_SensitiveCylinder::IsHollow),
R"#(Returns true if the cylinder is empty inside)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&Select3D_SensitiveCylinder::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Select3D_SensitiveCylinder::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> & (Select3D_SensitiveCylinder::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Select3D_SensitiveCylinder::*)() const>(&Select3D_SensitiveCylinder::DynamicType),
R"#(None)#"
)
.def("Transformation",
(const gp_Trsf & (Select3D_SensitiveCylinder::*)() const) static_cast<const gp_Trsf & (Select3D_SensitiveCylinder::*)() const>(&Select3D_SensitiveCylinder::Transformation),
R"#(Returns cylinder transformation)#"
)
;
// Class Select3D_SensitiveFace from ./opencascade/Select3D_SensitiveFace.hxx
klass = m.attr("Select3D_SensitiveFace");
// nested enums
static_cast<py::class_<Select3D_SensitiveFace ,opencascade::handle<Select3D_SensitiveFace> , Select3D_SensitiveEntity >>(klass)
// constructors
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &, const NCollection_Array1<gp_Pnt> &,const Select3D_TypeOfSensitivity >() , py::arg("theOwnerId"), py::arg("thePoints"), py::arg("theType") )
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &,const opencascade::handle<TColgp_HArray1OfPnt> &,const Select3D_TypeOfSensitivity >() , py::arg("theOwnerId"), py::arg("thePoints"), py::arg("theType") )
// custom constructors
// methods
.def("Matches",
(Standard_Boolean (Select3D_SensitiveFace::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) ) static_cast<Standard_Boolean (Select3D_SensitiveFace::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) >(&Select3D_SensitiveFace::Matches),
R"#(Checks whether the face overlaps current selecting volume)#" , py::arg("theMgr"), py::arg("thePickResult")
)
.def("GetConnected",
(opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveFace::*)() ) static_cast<opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveFace::*)() >(&Select3D_SensitiveFace::GetConnected),
R"#(None)#"
)
.def("BoundingBox",
(Select3D_BndBox3d (Select3D_SensitiveFace::*)() ) static_cast<Select3D_BndBox3d (Select3D_SensitiveFace::*)() >(&Select3D_SensitiveFace::BoundingBox),
R"#(Returns bounding box of the face. If location transformation is set, it will be applied)#"
)
.def("CenterOfGeometry",
(gp_Pnt (Select3D_SensitiveFace::*)() const) static_cast<gp_Pnt (Select3D_SensitiveFace::*)() const>(&Select3D_SensitiveFace::CenterOfGeometry),
R"#(Returns center of the face. If location transformation is set, it will be applied)#"
)
.def("BVH",
(void (Select3D_SensitiveFace::*)() ) static_cast<void (Select3D_SensitiveFace::*)() >(&Select3D_SensitiveFace::BVH),
R"#(Builds BVH tree for the face)#"
)
.def("ToBuildBVH",
(Standard_Boolean (Select3D_SensitiveFace::*)() const) static_cast<Standard_Boolean (Select3D_SensitiveFace::*)() const>(&Select3D_SensitiveFace::ToBuildBVH),
R"#(Returns TRUE if BVH tree is in invalidated state)#"
)
.def("NbSubElements",
(Standard_Integer (Select3D_SensitiveFace::*)() const) static_cast<Standard_Integer (Select3D_SensitiveFace::*)() const>(&Select3D_SensitiveFace::NbSubElements),
R"#(Returns the amount of sub-entities (points or planar convex polygons))#"
)
.def("DumpJson",
(void (Select3D_SensitiveFace::*)( std::ostream & , Standard_Integer ) const) static_cast<void (Select3D_SensitiveFace::*)( std::ostream & , Standard_Integer ) const>(&Select3D_SensitiveFace::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
// methods using call by reference i.s.o. return
.def("GetPoints",
[]( Select3D_SensitiveFace &self , TColgp_HArray1OfPnt& theHArrayOfPnt ){
opencascade::handle<TColgp_HArray1OfPnt> theHArrayOfPnt_ptr; theHArrayOfPnt_ptr = &theHArrayOfPnt;
self.GetPoints(theHArrayOfPnt_ptr);
if ( theHArrayOfPnt_ptr.get() != &theHArrayOfPnt ) copy_if_copy_constructible(theHArrayOfPnt, *theHArrayOfPnt_ptr);
return std::make_tuple(); },
R"#(Initializes the given array theHArrayOfPnt by 3d coordinates of vertices of the face)#" , py::arg("theHArrayOfPnt")
)
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&Select3D_SensitiveFace::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Select3D_SensitiveFace::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> & (Select3D_SensitiveFace::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Select3D_SensitiveFace::*)() const>(&Select3D_SensitiveFace::DynamicType),
R"#(None)#"
)
;
// Class Select3D_SensitivePoint from ./opencascade/Select3D_SensitivePoint.hxx
klass = m.attr("Select3D_SensitivePoint");
// nested enums
static_cast<py::class_<Select3D_SensitivePoint ,opencascade::handle<Select3D_SensitivePoint> , Select3D_SensitiveEntity >>(klass)
// constructors
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &,const gp_Pnt & >() , py::arg("theOwnerId"), py::arg("thePoint") )
// custom constructors
// methods
.def("NbSubElements",
(Standard_Integer (Select3D_SensitivePoint::*)() const) static_cast<Standard_Integer (Select3D_SensitivePoint::*)() const>(&Select3D_SensitivePoint::NbSubElements),
R"#(Returns the amount of sub-entities in sensitive)#"
)
.def("GetConnected",
(opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitivePoint::*)() ) static_cast<opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitivePoint::*)() >(&Select3D_SensitivePoint::GetConnected),
R"#(None)#"
)
.def("Matches",
(Standard_Boolean (Select3D_SensitivePoint::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) ) static_cast<Standard_Boolean (Select3D_SensitivePoint::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) >(&Select3D_SensitivePoint::Matches),
R"#(Checks whether the point overlaps current selecting volume)#" , py::arg("theMgr"), py::arg("thePickResult")
)
.def("CenterOfGeometry",
(gp_Pnt (Select3D_SensitivePoint::*)() const) static_cast<gp_Pnt (Select3D_SensitivePoint::*)() const>(&Select3D_SensitivePoint::CenterOfGeometry),
R"#(Returns center of point. If location transformation is set, it will be applied)#"
)
.def("BoundingBox",
(Select3D_BndBox3d (Select3D_SensitivePoint::*)() ) static_cast<Select3D_BndBox3d (Select3D_SensitivePoint::*)() >(&Select3D_SensitivePoint::BoundingBox),
R"#(Returns bounding box of the point. If location transformation is set, it will be applied)#"
)
.def("ToBuildBVH",
(Standard_Boolean (Select3D_SensitivePoint::*)() const) static_cast<Standard_Boolean (Select3D_SensitivePoint::*)() const>(&Select3D_SensitivePoint::ToBuildBVH),
R"#(Returns TRUE if BVH tree is in invalidated state)#"
)
.def("DumpJson",
(void (Select3D_SensitivePoint::*)( std::ostream & , Standard_Integer ) const) static_cast<void (Select3D_SensitivePoint::*)( std::ostream & , Standard_Integer ) const>(&Select3D_SensitivePoint::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&Select3D_SensitivePoint::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Select3D_SensitivePoint::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> & (Select3D_SensitivePoint::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Select3D_SensitivePoint::*)() const>(&Select3D_SensitivePoint::DynamicType),
R"#(None)#"
)
.def("Point",
(const gp_Pnt & (Select3D_SensitivePoint::*)() const) static_cast<const gp_Pnt & (Select3D_SensitivePoint::*)() const>(&Select3D_SensitivePoint::Point),
R"#(Returns the point used at the time of construction.)#"
)
;
// Class Select3D_SensitiveSegment from ./opencascade/Select3D_SensitiveSegment.hxx
klass = m.attr("Select3D_SensitiveSegment");
// nested enums
static_cast<py::class_<Select3D_SensitiveSegment ,opencascade::handle<Select3D_SensitiveSegment> , Select3D_SensitiveEntity >>(klass)
// constructors
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &,const gp_Pnt &,const gp_Pnt & >() , py::arg("theOwnerId"), py::arg("theFirstPnt"), py::arg("theLastPnt") )
// custom constructors
// methods
.def("SetStartPoint",
(void (Select3D_SensitiveSegment::*)( const gp_Pnt & ) ) static_cast<void (Select3D_SensitiveSegment::*)( const gp_Pnt & ) >(&Select3D_SensitiveSegment::SetStartPoint),
R"#(changes the start Point of the Segment;)#" , py::arg("thePnt")
)
.def("SetEndPoint",
(void (Select3D_SensitiveSegment::*)( const gp_Pnt & ) ) static_cast<void (Select3D_SensitiveSegment::*)( const gp_Pnt & ) >(&Select3D_SensitiveSegment::SetEndPoint),
R"#(changes the end point of the segment)#" , py::arg("thePnt")
)
.def("NbSubElements",
(Standard_Integer (Select3D_SensitiveSegment::*)() const) static_cast<Standard_Integer (Select3D_SensitiveSegment::*)() const>(&Select3D_SensitiveSegment::NbSubElements),
R"#(Returns the amount of points)#"
)
.def("GetConnected",
(opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveSegment::*)() ) static_cast<opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveSegment::*)() >(&Select3D_SensitiveSegment::GetConnected),
R"#(None)#"
)
.def("Matches",
(Standard_Boolean (Select3D_SensitiveSegment::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) ) static_cast<Standard_Boolean (Select3D_SensitiveSegment::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) >(&Select3D_SensitiveSegment::Matches),
R"#(Checks whether the segment overlaps current selecting volume)#" , py::arg("theMgr"), py::arg("thePickResult")
)
.def("CenterOfGeometry",
(gp_Pnt (Select3D_SensitiveSegment::*)() const) static_cast<gp_Pnt (Select3D_SensitiveSegment::*)() const>(&Select3D_SensitiveSegment::CenterOfGeometry),
R"#(Returns center of the segment. If location transformation is set, it will be applied)#"
)
.def("BoundingBox",
(Select3D_BndBox3d (Select3D_SensitiveSegment::*)() ) static_cast<Select3D_BndBox3d (Select3D_SensitiveSegment::*)() >(&Select3D_SensitiveSegment::BoundingBox),
R"#(Returns bounding box of the segment. If location transformation is set, it will be applied)#"
)
.def("ToBuildBVH",
(Standard_Boolean (Select3D_SensitiveSegment::*)() const) static_cast<Standard_Boolean (Select3D_SensitiveSegment::*)() const>(&Select3D_SensitiveSegment::ToBuildBVH),
R"#(Returns TRUE if BVH tree is in invalidated state)#"
)
.def("StartPoint",
(void (Select3D_SensitiveSegment::*)( const gp_Pnt & ) ) static_cast<void (Select3D_SensitiveSegment::*)( const gp_Pnt & ) >(&Select3D_SensitiveSegment::StartPoint),
R"#(changes the start Point of the Segment;)#" , py::arg("thePnt")
)
.def("EndPoint",
(void (Select3D_SensitiveSegment::*)( const gp_Pnt & ) ) static_cast<void (Select3D_SensitiveSegment::*)( const gp_Pnt & ) >(&Select3D_SensitiveSegment::EndPoint),
R"#(changes the end point of the segment)#" , py::arg("thePnt")
)
.def("DumpJson",
(void (Select3D_SensitiveSegment::*)( std::ostream & , Standard_Integer ) const) static_cast<void (Select3D_SensitiveSegment::*)( std::ostream & , Standard_Integer ) const>(&Select3D_SensitiveSegment::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&Select3D_SensitiveSegment::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Select3D_SensitiveSegment::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> & (Select3D_SensitiveSegment::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Select3D_SensitiveSegment::*)() const>(&Select3D_SensitiveSegment::DynamicType),
R"#(None)#"
)
.def("StartPoint",
(const gp_Pnt & (Select3D_SensitiveSegment::*)() const) static_cast<const gp_Pnt & (Select3D_SensitiveSegment::*)() const>(&Select3D_SensitiveSegment::StartPoint),
R"#(gives the 3D start Point of the Segment)#"
)
.def("EndPoint",
(const gp_Pnt & (Select3D_SensitiveSegment::*)() const) static_cast<const gp_Pnt & (Select3D_SensitiveSegment::*)() const>(&Select3D_SensitiveSegment::EndPoint),
R"#(gives the 3D End Point of the Segment)#"
)
;
// Class Select3D_SensitiveSet from ./opencascade/Select3D_SensitiveSet.hxx
klass = m.attr("Select3D_SensitiveSet");
// nested enums
static_cast<py::class_<Select3D_SensitiveSet ,opencascade::handle<Select3D_SensitiveSet> ,Py_Select3D_SensitiveSet , Select3D_SensitiveEntity >>(klass)
// constructors
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> & >() , py::arg("theOwnerId") )
// custom constructors
// methods
.def("Size",
(Standard_Integer (Select3D_SensitiveSet::*)() const) static_cast<Standard_Integer (Select3D_SensitiveSet::*)() const>(&Select3D_SensitiveSet::Size),
R"#(Returns the amount of sub-entities of the complex entity)#"
)
.def("Box",
(Select3D_BndBox3d (Select3D_SensitiveSet::*)( const Standard_Integer ) const) static_cast<Select3D_BndBox3d (Select3D_SensitiveSet::*)( const Standard_Integer ) const>(&Select3D_SensitiveSet::Box),
R"#(Returns bounding box of sub-entity with index theIdx in sub-entity list)#" , py::arg("theIdx")
)
.def("Center",
(Standard_Real (Select3D_SensitiveSet::*)( const Standard_Integer , const Standard_Integer ) const) static_cast<Standard_Real (Select3D_SensitiveSet::*)( const Standard_Integer , const Standard_Integer ) const>(&Select3D_SensitiveSet::Center),
R"#(Returns geometry center of sensitive entity index theIdx along the given axis theAxis)#" , py::arg("theIdx"), py::arg("theAxis")
)
.def("Swap",
(void (Select3D_SensitiveSet::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<void (Select3D_SensitiveSet::*)( const Standard_Integer , const Standard_Integer ) >(&Select3D_SensitiveSet::Swap),
R"#(Swaps items with indexes theIdx1 and theIdx2)#" , py::arg("theIdx1"), py::arg("theIdx2")
)
.def("Matches",
(Standard_Boolean (Select3D_SensitiveSet::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) ) static_cast<Standard_Boolean (Select3D_SensitiveSet::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) >(&Select3D_SensitiveSet::Matches),
R"#(Checks whether one or more entities of the set overlap current selecting volume. Implements the traverse of BVH tree built for the set)#" , py::arg("theMgr"), py::arg("thePickResult")
)
.def("BVH",
(void (Select3D_SensitiveSet::*)() ) static_cast<void (Select3D_SensitiveSet::*)() >(&Select3D_SensitiveSet::BVH),
R"#(Builds BVH tree for sensitive set. Must be called manually to build BVH tree for any sensitive set in case if its content was initialized not in a constructor, but element by element)#"
)
.def("ToBuildBVH",
(Standard_Boolean (Select3D_SensitiveSet::*)() const) static_cast<Standard_Boolean (Select3D_SensitiveSet::*)() const>(&Select3D_SensitiveSet::ToBuildBVH),
R"#(Returns TRUE if BVH tree is in invalidated state)#"
)
.def("SetBuilder",
(void (Select3D_SensitiveSet::*)( const opencascade::handle<Select3D_BVHBuilder3d> & ) ) static_cast<void (Select3D_SensitiveSet::*)( const opencascade::handle<Select3D_BVHBuilder3d> & ) >(&Select3D_SensitiveSet::SetBuilder),
R"#(Sets the method (builder) used to construct BVH.)#" , py::arg("theBuilder")
)
.def("MarkDirty",
(void (Select3D_SensitiveSet::*)() ) static_cast<void (Select3D_SensitiveSet::*)() >(&Select3D_SensitiveSet::MarkDirty),
R"#(Marks BVH tree of the set as outdated. It will be rebuild at the next call of BVH())#"
)
.def("BoundingBox",
(Select3D_BndBox3d (Select3D_SensitiveSet::*)() ) static_cast<Select3D_BndBox3d (Select3D_SensitiveSet::*)() >(&Select3D_SensitiveSet::BoundingBox),
R"#(Returns bounding box of the whole set. This method should be redefined in Select3D_SensitiveSet descendants)#"
)
.def("CenterOfGeometry",
(gp_Pnt (Select3D_SensitiveSet::*)() const) static_cast<gp_Pnt (Select3D_SensitiveSet::*)() const>(&Select3D_SensitiveSet::CenterOfGeometry),
R"#(Returns center of the whole set. This method should be redefined in Select3D_SensitiveSet descendants)#"
)
.def("Clear",
(void (Select3D_SensitiveSet::*)() ) static_cast<void (Select3D_SensitiveSet::*)() >(&Select3D_SensitiveSet::Clear),
R"#(Destroys cross-reference to avoid memory leak)#"
)
.def("GetLeafNodeSize",
(Standard_Integer (Select3D_SensitiveSet::*)() const) static_cast<Standard_Integer (Select3D_SensitiveSet::*)() const>(&Select3D_SensitiveSet::GetLeafNodeSize),
R"#(Returns a number of nodes in 1 BVH leaf)#"
)
.def("DumpJson",
(void (Select3D_SensitiveSet::*)( std::ostream & , Standard_Integer ) const) static_cast<void (Select3D_SensitiveSet::*)( std::ostream & , Standard_Integer ) const>(&Select3D_SensitiveSet::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&Select3D_SensitiveSet::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Select3D_SensitiveSet::get_type_descriptor),
R"#(None)#"
)
.def_static("DefaultBVHBuilder_s",
(const opencascade::handle<Select3D_BVHBuilder3d> & (*)() ) static_cast<const opencascade::handle<Select3D_BVHBuilder3d> & (*)() >(&Select3D_SensitiveSet::DefaultBVHBuilder),
R"#(Return global instance to default BVH builder.)#"
)
.def_static("SetDefaultBVHBuilder_s",
(void (*)( const opencascade::handle<Select3D_BVHBuilder3d> & ) ) static_cast<void (*)( const opencascade::handle<Select3D_BVHBuilder3d> & ) >(&Select3D_SensitiveSet::SetDefaultBVHBuilder),
R"#(Assign new BVH builder to be used by default for new sensitive sets (assigning is NOT thread-safe!).)#" , py::arg("theBuilder")
)
// 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> & (Select3D_SensitiveSet::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Select3D_SensitiveSet::*)() const>(&Select3D_SensitiveSet::DynamicType),
R"#(None)#"
)
;
// Class Select3D_SensitiveSphere from ./opencascade/Select3D_SensitiveSphere.hxx
klass = m.attr("Select3D_SensitiveSphere");
// nested enums
static_cast<py::class_<Select3D_SensitiveSphere ,opencascade::handle<Select3D_SensitiveSphere> , Select3D_SensitiveEntity >>(klass)
// constructors
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &,const gp_Pnt &,const Standard_Real >() , py::arg("theOwnerId"), py::arg("theCenter"), py::arg("theRadius") )
// custom constructors
// methods
.def("Radius",
(Standard_Real (Select3D_SensitiveSphere::*)() const) static_cast<Standard_Real (Select3D_SensitiveSphere::*)() const>(&Select3D_SensitiveSphere::Radius),
R"#(Returns the radius of the sphere)#"
)
.def("Matches",
(Standard_Boolean (Select3D_SensitiveSphere::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) ) static_cast<Standard_Boolean (Select3D_SensitiveSphere::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) >(&Select3D_SensitiveSphere::Matches),
R"#(Checks whether the sphere overlaps current selecting volume)#" , py::arg("theMgr"), py::arg("thePickResult")
)
.def("GetConnected",
(opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveSphere::*)() ) static_cast<opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveSphere::*)() >(&Select3D_SensitiveSphere::GetConnected),
R"#(Returns the copy of this)#"
)
.def("BoundingBox",
(Select3D_BndBox3d (Select3D_SensitiveSphere::*)() ) static_cast<Select3D_BndBox3d (Select3D_SensitiveSphere::*)() >(&Select3D_SensitiveSphere::BoundingBox),
R"#(Returns bounding box of the sphere. If location transformation is set, it will be applied)#"
)
.def("ToBuildBVH",
(Standard_Boolean (Select3D_SensitiveSphere::*)() const) static_cast<Standard_Boolean (Select3D_SensitiveSphere::*)() const>(&Select3D_SensitiveSphere::ToBuildBVH),
R"#(Always returns Standard_False)#"
)
.def("NbSubElements",
(Standard_Integer (Select3D_SensitiveSphere::*)() const) static_cast<Standard_Integer (Select3D_SensitiveSphere::*)() const>(&Select3D_SensitiveSphere::NbSubElements),
R"#(Returns the amount of points)#"
)
.def("CenterOfGeometry",
(gp_Pnt (Select3D_SensitiveSphere::*)() const) static_cast<gp_Pnt (Select3D_SensitiveSphere::*)() const>(&Select3D_SensitiveSphere::CenterOfGeometry),
R"#(Returns center of the sphere with transformation applied)#"
)
.def("ResetLastDetectedPoint",
(void (Select3D_SensitiveSphere::*)() ) static_cast<void (Select3D_SensitiveSphere::*)() >(&Select3D_SensitiveSphere::ResetLastDetectedPoint),
R"#(Invalidate the position of detected point on the sphere.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&Select3D_SensitiveSphere::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Select3D_SensitiveSphere::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> & (Select3D_SensitiveSphere::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Select3D_SensitiveSphere::*)() const>(&Select3D_SensitiveSphere::DynamicType),
R"#(None)#"
)
.def("LastDetectedPoint",
(const gp_Pnt & (Select3D_SensitiveSphere::*)() const) static_cast<const gp_Pnt & (Select3D_SensitiveSphere::*)() const>(&Select3D_SensitiveSphere::LastDetectedPoint),
R"#(Returns the position of detected point on the sphere.)#"
)
;
// Class Select3D_SensitiveTriangle from ./opencascade/Select3D_SensitiveTriangle.hxx
klass = m.attr("Select3D_SensitiveTriangle");
// nested enums
static_cast<py::class_<Select3D_SensitiveTriangle ,opencascade::handle<Select3D_SensitiveTriangle> , Select3D_SensitiveEntity >>(klass)
// constructors
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &,const gp_Pnt &,const gp_Pnt &,const gp_Pnt &,const Select3D_TypeOfSensitivity >() , py::arg("theOwnerId"), py::arg("thePnt0"), py::arg("thePnt1"), py::arg("thePnt2"), py::arg("theType")=static_cast<const Select3D_TypeOfSensitivity>(Select3D_TOS_INTERIOR) )
// custom constructors
// methods
.def("Matches",
(Standard_Boolean (Select3D_SensitiveTriangle::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) ) static_cast<Standard_Boolean (Select3D_SensitiveTriangle::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) >(&Select3D_SensitiveTriangle::Matches),
R"#(Checks whether the triangle overlaps current selecting volume)#" , py::arg("theMgr"), py::arg("thePickResult")
)
.def("Points3D",
(void (Select3D_SensitiveTriangle::*)( gp_Pnt & , gp_Pnt & , gp_Pnt & ) const) static_cast<void (Select3D_SensitiveTriangle::*)( gp_Pnt & , gp_Pnt & , gp_Pnt & ) const>(&Select3D_SensitiveTriangle::Points3D),
R"#(Returns the 3D points P1, P2, P3 used at the time of construction.)#" , py::arg("thePnt0"), py::arg("thePnt1"), py::arg("thePnt2")
)
.def("Center3D",
(gp_Pnt (Select3D_SensitiveTriangle::*)() const) static_cast<gp_Pnt (Select3D_SensitiveTriangle::*)() const>(&Select3D_SensitiveTriangle::Center3D),
R"#(Returns the center point of the sensitive triangle created at construction time.)#"
)
.def("GetConnected",
(opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveTriangle::*)() ) static_cast<opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveTriangle::*)() >(&Select3D_SensitiveTriangle::GetConnected),
R"#(Returns the copy of this)#"
)
.def("BoundingBox",
(Select3D_BndBox3d (Select3D_SensitiveTriangle::*)() ) static_cast<Select3D_BndBox3d (Select3D_SensitiveTriangle::*)() >(&Select3D_SensitiveTriangle::BoundingBox),
R"#(Returns bounding box of the triangle. If location transformation is set, it will be applied)#"
)
.def("ToBuildBVH",
(Standard_Boolean (Select3D_SensitiveTriangle::*)() const) static_cast<Standard_Boolean (Select3D_SensitiveTriangle::*)() const>(&Select3D_SensitiveTriangle::ToBuildBVH),
R"#(Returns TRUE if BVH tree is in invalidated state)#"
)
.def("NbSubElements",
(Standard_Integer (Select3D_SensitiveTriangle::*)() const) static_cast<Standard_Integer (Select3D_SensitiveTriangle::*)() const>(&Select3D_SensitiveTriangle::NbSubElements),
R"#(Returns the amount of points)#"
)
.def("CenterOfGeometry",
(gp_Pnt (Select3D_SensitiveTriangle::*)() const) static_cast<gp_Pnt (Select3D_SensitiveTriangle::*)() const>(&Select3D_SensitiveTriangle::CenterOfGeometry),
R"#(None)#"
)
.def("DumpJson",
(void (Select3D_SensitiveTriangle::*)( std::ostream & , Standard_Integer ) const) static_cast<void (Select3D_SensitiveTriangle::*)( std::ostream & , Standard_Integer ) const>(&Select3D_SensitiveTriangle::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&Select3D_SensitiveTriangle::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Select3D_SensitiveTriangle::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> & (Select3D_SensitiveTriangle::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Select3D_SensitiveTriangle::*)() const>(&Select3D_SensitiveTriangle::DynamicType),
R"#(None)#"
)
;
// Class Select3D_InteriorSensitivePointSet from ./opencascade/Select3D_InteriorSensitivePointSet.hxx
klass = m.attr("Select3D_InteriorSensitivePointSet");
// nested enums
static_cast<py::class_<Select3D_InteriorSensitivePointSet ,opencascade::handle<Select3D_InteriorSensitivePointSet> , Select3D_SensitiveSet >>(klass)
// constructors
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &, const NCollection_Array1<gp_Pnt> & >() , py::arg("theOwnerId"), py::arg("thePoints") )
// custom constructors
// methods
.def("Size",
(Standard_Integer (Select3D_InteriorSensitivePointSet::*)() const) static_cast<Standard_Integer (Select3D_InteriorSensitivePointSet::*)() const>(&Select3D_InteriorSensitivePointSet::Size),
R"#(Returns the length of vector of planar convex polygons)#"
)
.def("Box",
(Select3D_BndBox3d (Select3D_InteriorSensitivePointSet::*)( const Standard_Integer ) const) static_cast<Select3D_BndBox3d (Select3D_InteriorSensitivePointSet::*)( const Standard_Integer ) const>(&Select3D_InteriorSensitivePointSet::Box),
R"#(Returns bounding box of planar convex polygon with index theIdx)#" , py::arg("theIdx")
)
.def("Center",
(Standard_Real (Select3D_InteriorSensitivePointSet::*)( const Standard_Integer , const Standard_Integer ) const) static_cast<Standard_Real (Select3D_InteriorSensitivePointSet::*)( const Standard_Integer , const Standard_Integer ) const>(&Select3D_InteriorSensitivePointSet::Center),
R"#(Returns geometry center of planar convex polygon with index theIdx in the vector along the given axis theAxis)#" , py::arg("theIdx"), py::arg("theAxis")
)
.def("Swap",
(void (Select3D_InteriorSensitivePointSet::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<void (Select3D_InteriorSensitivePointSet::*)( const Standard_Integer , const Standard_Integer ) >(&Select3D_InteriorSensitivePointSet::Swap),
R"#(Swaps items with indexes theIdx1 and theIdx2 in the vector)#" , py::arg("theIdx1"), py::arg("theIdx2")
)
.def("BoundingBox",
(Select3D_BndBox3d (Select3D_InteriorSensitivePointSet::*)() ) static_cast<Select3D_BndBox3d (Select3D_InteriorSensitivePointSet::*)() >(&Select3D_InteriorSensitivePointSet::BoundingBox),
R"#(Returns bounding box of the point set. If location transformation is set, it will be applied)#"
)
.def("CenterOfGeometry",
(gp_Pnt (Select3D_InteriorSensitivePointSet::*)() const) static_cast<gp_Pnt (Select3D_InteriorSensitivePointSet::*)() const>(&Select3D_InteriorSensitivePointSet::CenterOfGeometry),
R"#(Returns center of the point set. If location transformation is set, it will be applied)#"
)
.def("NbSubElements",
(Standard_Integer (Select3D_InteriorSensitivePointSet::*)() const) static_cast<Standard_Integer (Select3D_InteriorSensitivePointSet::*)() const>(&Select3D_InteriorSensitivePointSet::NbSubElements),
R"#(Returns the amount of points in set)#"
)
.def("DumpJson",
(void (Select3D_InteriorSensitivePointSet::*)( std::ostream & , Standard_Integer ) const) static_cast<void (Select3D_InteriorSensitivePointSet::*)( std::ostream & , Standard_Integer ) const>(&Select3D_InteriorSensitivePointSet::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
// methods using call by reference i.s.o. return
.def("GetPoints",
[]( Select3D_InteriorSensitivePointSet &self , TColgp_HArray1OfPnt& theHArrayOfPnt ){
opencascade::handle<TColgp_HArray1OfPnt> theHArrayOfPnt_ptr; theHArrayOfPnt_ptr = &theHArrayOfPnt;
self.GetPoints(theHArrayOfPnt_ptr);
if ( theHArrayOfPnt_ptr.get() != &theHArrayOfPnt ) copy_if_copy_constructible(theHArrayOfPnt, *theHArrayOfPnt_ptr);
return std::make_tuple(); },
R"#(Initializes the given array theHArrayOfPnt by 3d coordinates of vertices of the whole point set)#" , py::arg("theHArrayOfPnt")
)
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&Select3D_InteriorSensitivePointSet::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Select3D_InteriorSensitivePointSet::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> & (Select3D_InteriorSensitivePointSet::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Select3D_InteriorSensitivePointSet::*)() const>(&Select3D_InteriorSensitivePointSet::DynamicType),
R"#(None)#"
)
;
// Class Select3D_SensitiveGroup from ./opencascade/Select3D_SensitiveGroup.hxx
klass = m.attr("Select3D_SensitiveGroup");
// nested enums
static_cast<py::class_<Select3D_SensitiveGroup ,opencascade::handle<Select3D_SensitiveGroup> , Select3D_SensitiveSet >>(klass)
// constructors
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &,const Standard_Boolean >() , py::arg("theOwnerId"), py::arg("theIsMustMatchAll")=static_cast<const Standard_Boolean>(Standard_True) )
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &,NCollection_Sequence<opencascade::handle<Select3D_SensitiveEntity>> &,const Standard_Boolean >() , py::arg("theOwnerId"), py::arg("theEntities"), py::arg("theIsMustMatchAll")=static_cast<const Standard_Boolean>(Standard_True) )
// custom constructors
// methods
.def("SubEntity",
(const opencascade::handle<Select3D_SensitiveEntity> & (Select3D_SensitiveGroup::*)( const Standard_Integer ) const) static_cast<const opencascade::handle<Select3D_SensitiveEntity> & (Select3D_SensitiveGroup::*)( const Standard_Integer ) const>(&Select3D_SensitiveGroup::SubEntity),
R"#(Access entity by index [1, NbSubElements()].)#" , py::arg("theIndex")
)
.def("LastDetectedEntity",
(opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveGroup::*)() const) static_cast<opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveGroup::*)() const>(&Select3D_SensitiveGroup::LastDetectedEntity),
R"#(Return last detected entity.)#"
)
.def("LastDetectedEntityIndex",
(Standard_Integer (Select3D_SensitiveGroup::*)() const) static_cast<Standard_Integer (Select3D_SensitiveGroup::*)() const>(&Select3D_SensitiveGroup::LastDetectedEntityIndex),
R"#(Return index of last detected entity.)#"
)
.def("Add",
(void (Select3D_SensitiveGroup::*)( NCollection_Sequence<opencascade::handle<Select3D_SensitiveEntity>> & ) ) static_cast<void (Select3D_SensitiveGroup::*)( NCollection_Sequence<opencascade::handle<Select3D_SensitiveEntity>> & ) >(&Select3D_SensitiveGroup::Add),
R"#(Adds the list of sensitive entities LL to the empty sensitive group object created at construction time.)#" , py::arg("theEntities")
)
.def("Add",
(void (Select3D_SensitiveGroup::*)( const opencascade::handle<Select3D_SensitiveEntity> & ) ) static_cast<void (Select3D_SensitiveGroup::*)( const opencascade::handle<Select3D_SensitiveEntity> & ) >(&Select3D_SensitiveGroup::Add),
R"#(Adds the sensitive entity aSensitive to the non-empty sensitive group object created at construction time.)#" , py::arg("theSensitive")
)
.def("Remove",
(void (Select3D_SensitiveGroup::*)( const opencascade::handle<Select3D_SensitiveEntity> & ) ) static_cast<void (Select3D_SensitiveGroup::*)( const opencascade::handle<Select3D_SensitiveEntity> & ) >(&Select3D_SensitiveGroup::Remove),
R"#(None)#" , py::arg("theSensitive")
)
.def("Clear",
(void (Select3D_SensitiveGroup::*)() ) static_cast<void (Select3D_SensitiveGroup::*)() >(&Select3D_SensitiveGroup::Clear),
R"#(Removes all sensitive entities from the list used at the time of construction, or added using the function Add.)#"
)
.def("IsIn",
(Standard_Boolean (Select3D_SensitiveGroup::*)( const opencascade::handle<Select3D_SensitiveEntity> & ) const) static_cast<Standard_Boolean (Select3D_SensitiveGroup::*)( const opencascade::handle<Select3D_SensitiveEntity> & ) const>(&Select3D_SensitiveGroup::IsIn),
R"#(Returns true if the sensitive entity aSensitive is in the list used at the time of construction, or added using the function Add.)#" , py::arg("theSensitive")
)
.def("SetMatchType",
(void (Select3D_SensitiveGroup::*)( const Standard_Boolean ) ) static_cast<void (Select3D_SensitiveGroup::*)( const Standard_Boolean ) >(&Select3D_SensitiveGroup::SetMatchType),
R"#(Sets the requirement that all sensitive entities in the list used at the time of construction, or added using the function Add must be matched.)#" , py::arg("theIsMustMatchAll")
)
.def("MustMatchAll",
(Standard_Boolean (Select3D_SensitiveGroup::*)() const) static_cast<Standard_Boolean (Select3D_SensitiveGroup::*)() const>(&Select3D_SensitiveGroup::MustMatchAll),
R"#(Returns true if all sensitive entities in the list used at the time of construction, or added using the function Add must be matched.)#"
)
.def("ToCheckOverlapAll",
(Standard_Boolean (Select3D_SensitiveGroup::*)() const) static_cast<Standard_Boolean (Select3D_SensitiveGroup::*)() const>(&Select3D_SensitiveGroup::ToCheckOverlapAll),
R"#(Returns TRUE if all sensitive entities should be checked within rectangular/polygonal selection, FALSE by default. Can be useful for sensitive entities holding detection results as class property.)#"
)
.def("SetCheckOverlapAll",
(void (Select3D_SensitiveGroup::*)( Standard_Boolean ) ) static_cast<void (Select3D_SensitiveGroup::*)( Standard_Boolean ) >(&Select3D_SensitiveGroup::SetCheckOverlapAll),
R"#(Returns TRUE if all sensitive entities should be checked within rectangular/polygonal selection, FALSE by default. Can be useful for sensitive entities holding detection results as class property.)#" , py::arg("theToCheckAll")
)
.def("Matches",
(Standard_Boolean (Select3D_SensitiveGroup::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) ) static_cast<Standard_Boolean (Select3D_SensitiveGroup::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) >(&Select3D_SensitiveGroup::Matches),
R"#(Checks whether the group overlaps current selecting volume)#" , py::arg("theMgr"), py::arg("thePickResult")
)
.def("NbSubElements",
(Standard_Integer (Select3D_SensitiveGroup::*)() const) static_cast<Standard_Integer (Select3D_SensitiveGroup::*)() const>(&Select3D_SensitiveGroup::NbSubElements),
R"#(Returns the amount of sub-entities)#"
)
.def("GetConnected",
(opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveGroup::*)() ) static_cast<opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveGroup::*)() >(&Select3D_SensitiveGroup::GetConnected),
R"#(None)#"
)
.def("Set",
(void (Select3D_SensitiveGroup::*)( const opencascade::handle<SelectMgr_EntityOwner> & ) ) static_cast<void (Select3D_SensitiveGroup::*)( const opencascade::handle<SelectMgr_EntityOwner> & ) >(&Select3D_SensitiveGroup::Set),
R"#(Sets the owner for all entities in group)#" , py::arg("theOwnerId")
)
.def("BoundingBox",
(Select3D_BndBox3d (Select3D_SensitiveGroup::*)() ) static_cast<Select3D_BndBox3d (Select3D_SensitiveGroup::*)() >(&Select3D_SensitiveGroup::BoundingBox),
R"#(Returns bounding box of the group. If location transformation is set, it will be applied)#"
)
.def("CenterOfGeometry",
(gp_Pnt (Select3D_SensitiveGroup::*)() const) static_cast<gp_Pnt (Select3D_SensitiveGroup::*)() const>(&Select3D_SensitiveGroup::CenterOfGeometry),
R"#(Returns center of entity set. If location transformation is set, it will be applied)#"
)
.def("Box",
(Select3D_BndBox3d (Select3D_SensitiveGroup::*)( const Standard_Integer ) const) static_cast<Select3D_BndBox3d (Select3D_SensitiveGroup::*)( const Standard_Integer ) const>(&Select3D_SensitiveGroup::Box),
R"#(Returns bounding box of sensitive entity with index theIdx)#" , py::arg("theIdx")
)
.def("Center",
(Standard_Real (Select3D_SensitiveGroup::*)( const Standard_Integer , const Standard_Integer ) const) static_cast<Standard_Real (Select3D_SensitiveGroup::*)( const Standard_Integer , const Standard_Integer ) const>(&Select3D_SensitiveGroup::Center),
R"#(Returns geometry center of sensitive entity index theIdx in the vector along the given axis theAxis)#" , py::arg("theIdx"), py::arg("theAxis")
)
.def("Swap",
(void (Select3D_SensitiveGroup::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<void (Select3D_SensitiveGroup::*)( const Standard_Integer , const Standard_Integer ) >(&Select3D_SensitiveGroup::Swap),
R"#(Swaps items with indexes theIdx1 and theIdx2 in the vector)#" , py::arg("theIdx1"), py::arg("theIdx2")
)
.def("Size",
(Standard_Integer (Select3D_SensitiveGroup::*)() const) static_cast<Standard_Integer (Select3D_SensitiveGroup::*)() const>(&Select3D_SensitiveGroup::Size),
R"#(Returns the length of vector of sensitive entities)#"
)
.def("DumpJson",
(void (Select3D_SensitiveGroup::*)( std::ostream & , Standard_Integer ) const) static_cast<void (Select3D_SensitiveGroup::*)( std::ostream & , Standard_Integer ) const>(&Select3D_SensitiveGroup::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&Select3D_SensitiveGroup::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Select3D_SensitiveGroup::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> & (Select3D_SensitiveGroup::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Select3D_SensitiveGroup::*)() const>(&Select3D_SensitiveGroup::DynamicType),
R"#(None)#"
)
.def("Entities",
(const Select3D_IndexedMapOfEntity & (Select3D_SensitiveGroup::*)() const) static_cast<const Select3D_IndexedMapOfEntity & (Select3D_SensitiveGroup::*)() const>(&Select3D_SensitiveGroup::Entities),
R"#(Gets group content)#"
)
;
// Class Select3D_SensitivePoly from ./opencascade/Select3D_SensitivePoly.hxx
klass = m.attr("Select3D_SensitivePoly");
// nested enums
static_cast<py::class_<Select3D_SensitivePoly ,opencascade::handle<Select3D_SensitivePoly> , Select3D_SensitiveSet >>(klass)
// constructors
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &, const NCollection_Array1<gp_Pnt> &,const Standard_Boolean >() , py::arg("theOwnerId"), py::arg("thePoints"), py::arg("theIsBVHEnabled") )
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &,const opencascade::handle<TColgp_HArray1OfPnt> &,const Standard_Boolean >() , py::arg("theOwnerId"), py::arg("thePoints"), py::arg("theIsBVHEnabled") )
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &,const gp_Circ &,const Standard_Real,const Standard_Real,const Standard_Boolean,const Standard_Integer >() , py::arg("theOwnerId"), py::arg("theCircle"), py::arg("theU1"), py::arg("theU2"), py::arg("theIsFilled")=static_cast<const Standard_Boolean>(Standard_False), py::arg("theNbPnts")=static_cast<const Standard_Integer>(12) )
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &,const Standard_Boolean,const Standard_Integer >() , py::arg("theOwnerId"), py::arg("theIsBVHEnabled"), py::arg("theNbPnts")=static_cast<const Standard_Integer>(6) )
// custom constructors
// methods
.def("Matches",
(Standard_Boolean (Select3D_SensitivePoly::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) ) static_cast<Standard_Boolean (Select3D_SensitivePoly::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) >(&Select3D_SensitivePoly::Matches),
R"#(Checks whether the poly overlaps current selecting volume)#" , py::arg("theMgr"), py::arg("thePickResult")
)
.def("NbSubElements",
(Standard_Integer (Select3D_SensitivePoly::*)() const) static_cast<Standard_Integer (Select3D_SensitivePoly::*)() const>(&Select3D_SensitivePoly::NbSubElements),
R"#(Returns the amount of segments in poly)#"
)
.def("GetPoint3d",
(gp_Pnt (Select3D_SensitivePoly::*)( const Standard_Integer ) const) static_cast<gp_Pnt (Select3D_SensitivePoly::*)( const Standard_Integer ) const>(&Select3D_SensitivePoly::GetPoint3d),
R"#(Return point.)#" , py::arg("thePntIdx")
)
.def("BoundingBox",
(Select3D_BndBox3d (Select3D_SensitivePoly::*)() ) static_cast<Select3D_BndBox3d (Select3D_SensitivePoly::*)() >(&Select3D_SensitivePoly::BoundingBox),
R"#(Returns bounding box of a polygon. If location transformation is set, it will be applied)#"
)
.def("CenterOfGeometry",
(gp_Pnt (Select3D_SensitivePoly::*)() const) static_cast<gp_Pnt (Select3D_SensitivePoly::*)() const>(&Select3D_SensitivePoly::CenterOfGeometry),
R"#(Returns center of the point set. If location transformation is set, it will be applied)#"
)
.def("Size",
(Standard_Integer (Select3D_SensitivePoly::*)() const) static_cast<Standard_Integer (Select3D_SensitivePoly::*)() const>(&Select3D_SensitivePoly::Size),
R"#(Returns the amount of segments of the poly)#"
)
.def("Box",
(Select3D_BndBox3d (Select3D_SensitivePoly::*)( const Standard_Integer ) const) static_cast<Select3D_BndBox3d (Select3D_SensitivePoly::*)( const Standard_Integer ) const>(&Select3D_SensitivePoly::Box),
R"#(Returns bounding box of segment with index theIdx)#" , py::arg("theIdx")
)
.def("Center",
(Standard_Real (Select3D_SensitivePoly::*)( const Standard_Integer , const Standard_Integer ) const) static_cast<Standard_Real (Select3D_SensitivePoly::*)( const Standard_Integer , const Standard_Integer ) const>(&Select3D_SensitivePoly::Center),
R"#(Returns geometry center of sensitive entity index theIdx in the vector along the given axis theAxis)#" , py::arg("theIdx"), py::arg("theAxis")
)
.def("Swap",
(void (Select3D_SensitivePoly::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<void (Select3D_SensitivePoly::*)( const Standard_Integer , const Standard_Integer ) >(&Select3D_SensitivePoly::Swap),
R"#(Swaps items with indexes theIdx1 and theIdx2 in the vector)#" , py::arg("theIdx1"), py::arg("theIdx2")
)
.def("DumpJson",
(void (Select3D_SensitivePoly::*)( std::ostream & , Standard_Integer ) const) static_cast<void (Select3D_SensitivePoly::*)( std::ostream & , Standard_Integer ) const>(&Select3D_SensitivePoly::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
// methods using call by reference i.s.o. return
.def("Points3D",
[]( Select3D_SensitivePoly &self , TColgp_HArray1OfPnt& theHArrayOfPnt ){
opencascade::handle<TColgp_HArray1OfPnt> theHArrayOfPnt_ptr; theHArrayOfPnt_ptr = &theHArrayOfPnt;
self.Points3D(theHArrayOfPnt_ptr);
if ( theHArrayOfPnt_ptr.get() != &theHArrayOfPnt ) copy_if_copy_constructible(theHArrayOfPnt, *theHArrayOfPnt_ptr);
return std::make_tuple(); },
R"#(Returns the 3D points of the array used at construction time.)#" , py::arg("theHArrayOfPnt")
)
.def("ArrayBounds",
[]( Select3D_SensitivePoly &self ){
Standard_Integer theLow;
Standard_Integer theUp;
self.ArrayBounds(theLow,theUp);
return std::make_tuple(theLow,theUp); },
R"#(Return array bounds.)#"
)
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&Select3D_SensitivePoly::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Select3D_SensitivePoly::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> & (Select3D_SensitivePoly::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Select3D_SensitivePoly::*)() const>(&Select3D_SensitivePoly::DynamicType),
R"#(None)#"
)
;
// Class Select3D_SensitivePrimitiveArray from ./opencascade/Select3D_SensitivePrimitiveArray.hxx
klass = m.attr("Select3D_SensitivePrimitiveArray");
// nested enums
static_cast<py::class_<Select3D_SensitivePrimitiveArray ,opencascade::handle<Select3D_SensitivePrimitiveArray> , Select3D_SensitiveSet >>(klass)
// constructors
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> & >() , py::arg("theOwnerId") )
// custom constructors
// methods
.def("PatchSizeMax",
(Standard_Integer (Select3D_SensitivePrimitiveArray::*)() const) static_cast<Standard_Integer (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::PatchSizeMax),
R"#(Return patch size limit (1 by default).)#"
)
.def("SetPatchSizeMax",
(void (Select3D_SensitivePrimitiveArray::*)( const Standard_Integer ) ) static_cast<void (Select3D_SensitivePrimitiveArray::*)( const Standard_Integer ) >(&Select3D_SensitivePrimitiveArray::SetPatchSizeMax),
R"#(Assign patch size limit. Should be set before initialization.)#" , py::arg("thePatchSizeMax")
)
.def("PatchDistance",
(float (Select3D_SensitivePrimitiveArray::*)() const) static_cast<float (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::PatchDistance),
R"#(Maximum allowed distance between consequential elements in patch (ShortRealLast() by default). Has no effect on indexed triangulation.)#"
)
.def("SetPatchDistance",
(void (Select3D_SensitivePrimitiveArray::*)( const float ) ) static_cast<void (Select3D_SensitivePrimitiveArray::*)( const float ) >(&Select3D_SensitivePrimitiveArray::SetPatchDistance),
R"#(Assign patch distance limit. Should be set before initialization.)#" , py::arg("thePatchDistMax")
)
.def("InitTriangulation",
(bool (Select3D_SensitivePrimitiveArray::*)( const opencascade::handle<Graphic3d_Buffer> & , const opencascade::handle<Graphic3d_IndexBuffer> & , const TopLoc_Location & , const Standard_Integer , const Standard_Integer , const bool , const Standard_Integer ) ) static_cast<bool (Select3D_SensitivePrimitiveArray::*)( const opencascade::handle<Graphic3d_Buffer> & , const opencascade::handle<Graphic3d_IndexBuffer> & , const TopLoc_Location & , const Standard_Integer , const Standard_Integer , const bool , const Standard_Integer ) >(&Select3D_SensitivePrimitiveArray::InitTriangulation),
R"#(Initialize the sensitive object from triangualtion. The sub-triangulation can be specified by arguments theIndexLower and theIndexUpper (these are for iterating theIndices, not to restrict the actual index values!).)#" , py::arg("theVerts"), py::arg("theIndices"), py::arg("theInitLoc"), py::arg("theIndexLower"), py::arg("theIndexUpper"), py::arg("theToEvalMinMax")=static_cast<const bool>(true), py::arg("theNbGroups")=static_cast<const Standard_Integer>(1)
)
.def("InitTriangulation",
(bool (Select3D_SensitivePrimitiveArray::*)( const opencascade::handle<Graphic3d_Buffer> & , const opencascade::handle<Graphic3d_IndexBuffer> & , const TopLoc_Location & , const bool , const Standard_Integer ) ) static_cast<bool (Select3D_SensitivePrimitiveArray::*)( const opencascade::handle<Graphic3d_Buffer> & , const opencascade::handle<Graphic3d_IndexBuffer> & , const TopLoc_Location & , const bool , const Standard_Integer ) >(&Select3D_SensitivePrimitiveArray::InitTriangulation),
R"#(Initialize the sensitive object from triangualtion.)#" , py::arg("theVerts"), py::arg("theIndices"), py::arg("theInitLoc"), py::arg("theToEvalMinMax")=static_cast<const bool>(true), py::arg("theNbGroups")=static_cast<const Standard_Integer>(1)
)
.def("InitPoints",
(bool (Select3D_SensitivePrimitiveArray::*)( const opencascade::handle<Graphic3d_Buffer> & , const opencascade::handle<Graphic3d_IndexBuffer> & , const TopLoc_Location & , const Standard_Integer , const Standard_Integer , const bool , const Standard_Integer ) ) static_cast<bool (Select3D_SensitivePrimitiveArray::*)( const opencascade::handle<Graphic3d_Buffer> & , const opencascade::handle<Graphic3d_IndexBuffer> & , const TopLoc_Location & , const Standard_Integer , const Standard_Integer , const bool , const Standard_Integer ) >(&Select3D_SensitivePrimitiveArray::InitPoints),
R"#(Initialize the sensitive object from point set. The sub-set of points can be specified by arguments theIndexLower and theIndexUpper (these are for iterating theIndices, not to restrict the actual index values!).)#" , py::arg("theVerts"), py::arg("theIndices"), py::arg("theInitLoc"), py::arg("theIndexLower"), py::arg("theIndexUpper"), py::arg("theToEvalMinMax")=static_cast<const bool>(true), py::arg("theNbGroups")=static_cast<const Standard_Integer>(1)
)
.def("InitPoints",
(bool (Select3D_SensitivePrimitiveArray::*)( const opencascade::handle<Graphic3d_Buffer> & , const opencascade::handle<Graphic3d_IndexBuffer> & , const TopLoc_Location & , const bool , const Standard_Integer ) ) static_cast<bool (Select3D_SensitivePrimitiveArray::*)( const opencascade::handle<Graphic3d_Buffer> & , const opencascade::handle<Graphic3d_IndexBuffer> & , const TopLoc_Location & , const bool , const Standard_Integer ) >(&Select3D_SensitivePrimitiveArray::InitPoints),
R"#(Initialize the sensitive object from point set.)#" , py::arg("theVerts"), py::arg("theIndices"), py::arg("theInitLoc"), py::arg("theToEvalMinMax")=static_cast<const bool>(true), py::arg("theNbGroups")=static_cast<const Standard_Integer>(1)
)
.def("InitPoints",
(bool (Select3D_SensitivePrimitiveArray::*)( const opencascade::handle<Graphic3d_Buffer> & , const TopLoc_Location & , const bool , const Standard_Integer ) ) static_cast<bool (Select3D_SensitivePrimitiveArray::*)( const opencascade::handle<Graphic3d_Buffer> & , const TopLoc_Location & , const bool , const Standard_Integer ) >(&Select3D_SensitivePrimitiveArray::InitPoints),
R"#(Initialize the sensitive object from point set.)#" , py::arg("theVerts"), py::arg("theInitLoc"), py::arg("theToEvalMinMax")=static_cast<const bool>(true), py::arg("theNbGroups")=static_cast<const Standard_Integer>(1)
)
.def("SetMinMax",
(void (Select3D_SensitivePrimitiveArray::*)( double , double , double , double , double , double ) ) static_cast<void (Select3D_SensitivePrimitiveArray::*)( double , double , double , double , double , double ) >(&Select3D_SensitivePrimitiveArray::SetMinMax),
R"#(Assign new not transformed bounding box.)#" , py::arg("theMinX"), py::arg("theMinY"), py::arg("theMinZ"), py::arg("theMaxX"), py::arg("theMaxY"), py::arg("theMaxZ")
)
.def("ToDetectElements",
(bool (Select3D_SensitivePrimitiveArray::*)() const) static_cast<bool (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::ToDetectElements),
R"#(Return flag to keep index of last topmost detected element, TRUE by default.)#"
)
.def("SetDetectElements",
(void (Select3D_SensitivePrimitiveArray::*)( bool ) ) static_cast<void (Select3D_SensitivePrimitiveArray::*)( bool ) >(&Select3D_SensitivePrimitiveArray::SetDetectElements),
R"#(Setup keeping of the index of last topmost detected element (axis picking).)#" , py::arg("theToDetect")
)
.def("ToDetectElementMap",
(bool (Select3D_SensitivePrimitiveArray::*)() const) static_cast<bool (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::ToDetectElementMap),
R"#(Return flag to keep index map of last detected elements, FALSE by default (rectangle selection).)#"
)
.def("SetDetectElementMap",
(void (Select3D_SensitivePrimitiveArray::*)( bool ) ) static_cast<void (Select3D_SensitivePrimitiveArray::*)( bool ) >(&Select3D_SensitivePrimitiveArray::SetDetectElementMap),
R"#(Setup keeping of the index map of last detected elements (rectangle selection).)#" , py::arg("theToDetect")
)
.def("ToDetectNodes",
(bool (Select3D_SensitivePrimitiveArray::*)() const) static_cast<bool (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::ToDetectNodes),
R"#(Return flag to keep index of last topmost detected node, FALSE by default.)#"
)
.def("SetDetectNodes",
(void (Select3D_SensitivePrimitiveArray::*)( bool ) ) static_cast<void (Select3D_SensitivePrimitiveArray::*)( bool ) >(&Select3D_SensitivePrimitiveArray::SetDetectNodes),
R"#(Setup keeping of the index of last topmost detected node (for axis picking).)#" , py::arg("theToDetect")
)
.def("ToDetectNodeMap",
(bool (Select3D_SensitivePrimitiveArray::*)() const) static_cast<bool (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::ToDetectNodeMap),
R"#(Return flag to keep index map of last detected nodes, FALSE by default (rectangle selection).)#"
)
.def("SetDetectNodeMap",
(void (Select3D_SensitivePrimitiveArray::*)( bool ) ) static_cast<void (Select3D_SensitivePrimitiveArray::*)( bool ) >(&Select3D_SensitivePrimitiveArray::SetDetectNodeMap),
R"#(Setup keeping of the index map of last detected nodes (rectangle selection).)#" , py::arg("theToDetect")
)
.def("ToDetectEdges",
(bool (Select3D_SensitivePrimitiveArray::*)() const) static_cast<bool (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::ToDetectEdges),
R"#(Return flag to keep index of last topmost detected edge, FALSE by default.)#"
)
.def("SetDetectEdges",
(void (Select3D_SensitivePrimitiveArray::*)( bool ) ) static_cast<void (Select3D_SensitivePrimitiveArray::*)( bool ) >(&Select3D_SensitivePrimitiveArray::SetDetectEdges),
R"#(Setup keeping of the index of last topmost detected edge (axis picking).)#" , py::arg("theToDetect")
)
.def("LastDetectedElement",
(Standard_Integer (Select3D_SensitivePrimitiveArray::*)() const) static_cast<Standard_Integer (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::LastDetectedElement),
R"#(Return last topmost detected element or -1 if undefined (axis picking).)#"
)
.def("LastDetectedNode",
(Standard_Integer (Select3D_SensitivePrimitiveArray::*)() const) static_cast<Standard_Integer (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::LastDetectedNode),
R"#(Return last topmost detected node or -1 if undefined (axis picking).)#"
)
.def("LastDetectedEdgeNode1",
(Standard_Integer (Select3D_SensitivePrimitiveArray::*)() const) static_cast<Standard_Integer (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::LastDetectedEdgeNode1),
R"#(Return the first node of last topmost detected edge or -1 if undefined (axis picking).)#"
)
.def("LastDetectedEdgeNode2",
(Standard_Integer (Select3D_SensitivePrimitiveArray::*)() const) static_cast<Standard_Integer (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::LastDetectedEdgeNode2),
R"#(Return the second node of last topmost detected edge or -1 if undefined (axis picking).)#"
)
.def("DumpJson",
(void (Select3D_SensitivePrimitiveArray::*)( std::ostream & , Standard_Integer ) const) static_cast<void (Select3D_SensitivePrimitiveArray::*)( std::ostream & , Standard_Integer ) const>(&Select3D_SensitivePrimitiveArray::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
.def("Matches",
(Standard_Boolean (Select3D_SensitivePrimitiveArray::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) ) static_cast<Standard_Boolean (Select3D_SensitivePrimitiveArray::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) >(&Select3D_SensitivePrimitiveArray::Matches),
R"#(Checks whether the sensitive entity is overlapped by current selecting volume.)#" , py::arg("theMgr"), py::arg("thePickResult")
)
.def("GetConnected",
(opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitivePrimitiveArray::*)() ) static_cast<opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitivePrimitiveArray::*)() >(&Select3D_SensitivePrimitiveArray::GetConnected),
R"#(None)#"
)
.def("Size",
(Standard_Integer (Select3D_SensitivePrimitiveArray::*)() const) static_cast<Standard_Integer (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::Size),
R"#(Returns the length of array of triangles or edges)#"
)
.def("NbSubElements",
(Standard_Integer (Select3D_SensitivePrimitiveArray::*)() const) static_cast<Standard_Integer (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::NbSubElements),
R"#(Returns the amount of nodes in triangulation)#"
)
.def("Box",
(Select3D_BndBox3d (Select3D_SensitivePrimitiveArray::*)( const Standard_Integer ) const) static_cast<Select3D_BndBox3d (Select3D_SensitivePrimitiveArray::*)( const Standard_Integer ) const>(&Select3D_SensitivePrimitiveArray::Box),
R"#(Returns bounding box of triangle/edge with index theIdx)#" , py::arg("theIdx")
)
.def("Center",
(Standard_Real (Select3D_SensitivePrimitiveArray::*)( const Standard_Integer , const Standard_Integer ) const) static_cast<Standard_Real (Select3D_SensitivePrimitiveArray::*)( const Standard_Integer , const Standard_Integer ) const>(&Select3D_SensitivePrimitiveArray::Center),
R"#(Returns geometry center of triangle/edge with index theIdx in array along the given axis theAxis)#" , py::arg("theIdx"), py::arg("theAxis")
)
.def("Swap",
(void (Select3D_SensitivePrimitiveArray::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<void (Select3D_SensitivePrimitiveArray::*)( const Standard_Integer , const Standard_Integer ) >(&Select3D_SensitivePrimitiveArray::Swap),
R"#(Swaps items with indexes theIdx1 and theIdx2 in array)#" , py::arg("theIdx1"), py::arg("theIdx2")
)
.def("BoundingBox",
(Select3D_BndBox3d (Select3D_SensitivePrimitiveArray::*)() ) static_cast<Select3D_BndBox3d (Select3D_SensitivePrimitiveArray::*)() >(&Select3D_SensitivePrimitiveArray::BoundingBox),
R"#(Returns bounding box of the triangulation. If location transformation is set, it will be applied)#"
)
.def("CenterOfGeometry",
(gp_Pnt (Select3D_SensitivePrimitiveArray::*)() const) static_cast<gp_Pnt (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::CenterOfGeometry),
R"#(Returns center of triangulation. If location transformation is set, it will be applied)#"
)
.def("HasInitLocation",
(Standard_Boolean (Select3D_SensitivePrimitiveArray::*)() const) static_cast<Standard_Boolean (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::HasInitLocation),
R"#(Returns true if the shape corresponding to the entity has init location)#"
)
.def("InvInitLocation",
(gp_GTrsf (Select3D_SensitivePrimitiveArray::*)() const) static_cast<gp_GTrsf (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::InvInitLocation),
R"#(Returns inversed location transformation matrix if the shape corresponding to this entity has init location set. Otherwise, returns identity matrix.)#"
)
.def("Set",
(void (Select3D_SensitivePrimitiveArray::*)( const opencascade::handle<SelectMgr_EntityOwner> & ) ) static_cast<void (Select3D_SensitivePrimitiveArray::*)( const opencascade::handle<SelectMgr_EntityOwner> & ) >(&Select3D_SensitivePrimitiveArray::Set),
R"#(Sets the owner for all entities in group)#" , py::arg("theOwnerId")
)
.def("BVH",
(void (Select3D_SensitivePrimitiveArray::*)() ) static_cast<void (Select3D_SensitivePrimitiveArray::*)() >(&Select3D_SensitivePrimitiveArray::BVH),
R"#(Builds BVH tree for sensitive set.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&Select3D_SensitivePrimitiveArray::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Select3D_SensitivePrimitiveArray::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("LastDetectedElementMap",
(const opencascade::handle<TColStd_HPackedMapOfInteger> & (Select3D_SensitivePrimitiveArray::*)() const) static_cast<const opencascade::handle<TColStd_HPackedMapOfInteger> & (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::LastDetectedElementMap),
R"#(Return the index map of last detected elements (rectangle selection).)#"
, py::return_value_policy::reference_internal
)
.def("LastDetectedNodeMap",
(const opencascade::handle<TColStd_HPackedMapOfInteger> & (Select3D_SensitivePrimitiveArray::*)() const) static_cast<const opencascade::handle<TColStd_HPackedMapOfInteger> & (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::LastDetectedNodeMap),
R"#(Return the index map of last detected nodes (rectangle selection).)#"
, py::return_value_policy::reference_internal
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (Select3D_SensitivePrimitiveArray::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Select3D_SensitivePrimitiveArray::*)() const>(&Select3D_SensitivePrimitiveArray::DynamicType),
R"#(None)#"
)
;
// Class Select3D_SensitiveTriangulation from ./opencascade/Select3D_SensitiveTriangulation.hxx
klass = m.attr("Select3D_SensitiveTriangulation");
// nested enums
static_cast<py::class_<Select3D_SensitiveTriangulation ,opencascade::handle<Select3D_SensitiveTriangulation> , Select3D_SensitiveSet >>(klass)
// constructors
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &,const opencascade::handle<Poly_Triangulation> &,const TopLoc_Location &,const Standard_Boolean >() , py::arg("theOwnerId"), py::arg("theTrg"), py::arg("theInitLoc"), py::arg("theIsInterior")=static_cast<const Standard_Boolean>(Standard_True) )
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &,const opencascade::handle<Poly_Triangulation> &,const TopLoc_Location &,const opencascade::handle<TColStd_HArray1OfInteger> &,const gp_Pnt &,const Standard_Boolean >() , py::arg("theOwnerId"), py::arg("theTrg"), py::arg("theInitLoc"), py::arg("theFreeEdges"), py::arg("theCOG"), py::arg("theIsInterior") )
// custom constructors
// methods
.def("LastDetectedTriangle",
(bool (Select3D_SensitiveTriangulation::*)( Poly_Triangle & ) const) static_cast<bool (Select3D_SensitiveTriangulation::*)( Poly_Triangle & ) const>(&Select3D_SensitiveTriangulation::LastDetectedTriangle),
R"#(Get last detected triangle.)#" , py::arg("theTriangle")
)
.def("LastDetectedTriangle",
(bool (Select3D_SensitiveTriangulation::*)( Poly_Triangle & , gp_Pnt[3] ) const) static_cast<bool (Select3D_SensitiveTriangulation::*)( Poly_Triangle & , gp_Pnt[3] ) const>(&Select3D_SensitiveTriangulation::LastDetectedTriangle),
R"#(Get last detected triangle.)#" , py::arg("theTriangle"), py::arg("theTriNodes")
)
.def("LastDetectedTriangleIndex",
(Standard_Integer (Select3D_SensitiveTriangulation::*)() const) static_cast<Standard_Integer (Select3D_SensitiveTriangulation::*)() const>(&Select3D_SensitiveTriangulation::LastDetectedTriangleIndex),
R"#(Return index of last detected triangle within [1..NbTris] range, or -1 if undefined.)#"
)
.def("NbSubElements",
(Standard_Integer (Select3D_SensitiveTriangulation::*)() const) static_cast<Standard_Integer (Select3D_SensitiveTriangulation::*)() const>(&Select3D_SensitiveTriangulation::NbSubElements),
R"#(Returns the amount of nodes in triangulation)#"
)
.def("GetConnected",
(opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveTriangulation::*)() ) static_cast<opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveTriangulation::*)() >(&Select3D_SensitiveTriangulation::GetConnected),
R"#(None)#"
)
.def("Size",
(Standard_Integer (Select3D_SensitiveTriangulation::*)() const) static_cast<Standard_Integer (Select3D_SensitiveTriangulation::*)() const>(&Select3D_SensitiveTriangulation::Size),
R"#(Returns the length of array of triangles or edges)#"
)
.def("Box",
(Select3D_BndBox3d (Select3D_SensitiveTriangulation::*)( const Standard_Integer ) const) static_cast<Select3D_BndBox3d (Select3D_SensitiveTriangulation::*)( const Standard_Integer ) const>(&Select3D_SensitiveTriangulation::Box),
R"#(Returns bounding box of triangle/edge with index theIdx)#" , py::arg("theIdx")
)
.def("Center",
(Standard_Real (Select3D_SensitiveTriangulation::*)( const Standard_Integer , const Standard_Integer ) const) static_cast<Standard_Real (Select3D_SensitiveTriangulation::*)( const Standard_Integer , const Standard_Integer ) const>(&Select3D_SensitiveTriangulation::Center),
R"#(Returns geometry center of triangle/edge with index theIdx in array along the given axis theAxis)#" , py::arg("theIdx"), py::arg("theAxis")
)
.def("Swap",
(void (Select3D_SensitiveTriangulation::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<void (Select3D_SensitiveTriangulation::*)( const Standard_Integer , const Standard_Integer ) >(&Select3D_SensitiveTriangulation::Swap),
R"#(Swaps items with indexes theIdx1 and theIdx2 in array)#" , py::arg("theIdx1"), py::arg("theIdx2")
)
.def("BoundingBox",
(Select3D_BndBox3d (Select3D_SensitiveTriangulation::*)() ) static_cast<Select3D_BndBox3d (Select3D_SensitiveTriangulation::*)() >(&Select3D_SensitiveTriangulation::BoundingBox),
R"#(Returns bounding box of the triangulation. If location transformation is set, it will be applied)#"
)
.def("CenterOfGeometry",
(gp_Pnt (Select3D_SensitiveTriangulation::*)() const) static_cast<gp_Pnt (Select3D_SensitiveTriangulation::*)() const>(&Select3D_SensitiveTriangulation::CenterOfGeometry),
R"#(Returns center of triangulation. If location transformation is set, it will be applied)#"
)
.def("HasInitLocation",
(Standard_Boolean (Select3D_SensitiveTriangulation::*)() const) static_cast<Standard_Boolean (Select3D_SensitiveTriangulation::*)() const>(&Select3D_SensitiveTriangulation::HasInitLocation),
R"#(Returns true if the shape corresponding to the entity has init location)#"
)
.def("InvInitLocation",
(gp_GTrsf (Select3D_SensitiveTriangulation::*)() const) static_cast<gp_GTrsf (Select3D_SensitiveTriangulation::*)() const>(&Select3D_SensitiveTriangulation::InvInitLocation),
R"#(Returns inversed location transformation matrix if the shape corresponding to this entity has init location set. Otherwise, returns identity matrix.)#"
)
.def("DumpJson",
(void (Select3D_SensitiveTriangulation::*)( std::ostream & , Standard_Integer ) const) static_cast<void (Select3D_SensitiveTriangulation::*)( std::ostream & , Standard_Integer ) const>(&Select3D_SensitiveTriangulation::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
.def("Matches",
(Standard_Boolean (Select3D_SensitiveTriangulation::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) ) static_cast<Standard_Boolean (Select3D_SensitiveTriangulation::*)( SelectBasics_SelectingVolumeManager & , SelectBasics_PickResult & ) >(&Select3D_SensitiveTriangulation::Matches),
R"#(Checks whether one or more entities of the set overlap current selecting volume.)#" , py::arg("theMgr"), py::arg("thePickResult")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&Select3D_SensitiveTriangulation::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Select3D_SensitiveTriangulation::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> & (Select3D_SensitiveTriangulation::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Select3D_SensitiveTriangulation::*)() const>(&Select3D_SensitiveTriangulation::DynamicType),
R"#(None)#"
)
.def("Triangulation",
(const opencascade::handle<Poly_Triangulation> & (Select3D_SensitiveTriangulation::*)() const) static_cast<const opencascade::handle<Poly_Triangulation> & (Select3D_SensitiveTriangulation::*)() const>(&Select3D_SensitiveTriangulation::Triangulation),
R"#(None)#"
)
.def("GetInitLocation",
(const TopLoc_Location & (Select3D_SensitiveTriangulation::*)() const) static_cast<const TopLoc_Location & (Select3D_SensitiveTriangulation::*)() const>(&Select3D_SensitiveTriangulation::GetInitLocation),
R"#(None)#"
)
;
// Class Select3D_SensitiveWire from ./opencascade/Select3D_SensitiveWire.hxx
klass = m.attr("Select3D_SensitiveWire");
// nested enums
static_cast<py::class_<Select3D_SensitiveWire ,opencascade::handle<Select3D_SensitiveWire> , Select3D_SensitiveSet >>(klass)
// constructors
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> & >() , py::arg("theOwnerId") )
// custom constructors
// methods
.def("Add",
(void (Select3D_SensitiveWire::*)( const opencascade::handle<Select3D_SensitiveEntity> & ) ) static_cast<void (Select3D_SensitiveWire::*)( const opencascade::handle<Select3D_SensitiveEntity> & ) >(&Select3D_SensitiveWire::Add),
R"#(Adds the sensitive entity theSensitive to this framework.)#" , py::arg("theSensitive")
)
.def("NbSubElements",
(Standard_Integer (Select3D_SensitiveWire::*)() const) static_cast<Standard_Integer (Select3D_SensitiveWire::*)() const>(&Select3D_SensitiveWire::NbSubElements),
R"#(Returns the amount of sub-entities)#"
)
.def("GetConnected",
(opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveWire::*)() ) static_cast<opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveWire::*)() >(&Select3D_SensitiveWire::GetConnected),
R"#(None)#"
)
.def("Set",
(void (Select3D_SensitiveWire::*)( const opencascade::handle<SelectMgr_EntityOwner> & ) ) static_cast<void (Select3D_SensitiveWire::*)( const opencascade::handle<SelectMgr_EntityOwner> & ) >(&Select3D_SensitiveWire::Set),
R"#(Sets the owner for all entities in wire)#" , py::arg("theOwnerId")
)
.def("GetLastDetected",
(opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveWire::*)() const) static_cast<opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveWire::*)() const>(&Select3D_SensitiveWire::GetLastDetected),
R"#(None)#"
)
.def("BoundingBox",
(Select3D_BndBox3d (Select3D_SensitiveWire::*)() ) static_cast<Select3D_BndBox3d (Select3D_SensitiveWire::*)() >(&Select3D_SensitiveWire::BoundingBox),
R"#(Returns bounding box of the wire. If location transformation is set, it will be applied)#"
)
.def("CenterOfGeometry",
(gp_Pnt (Select3D_SensitiveWire::*)() const) static_cast<gp_Pnt (Select3D_SensitiveWire::*)() const>(&Select3D_SensitiveWire::CenterOfGeometry),
R"#(Returns center of the wire. If location transformation is set, it will be applied)#"
)
.def("Size",
(Standard_Integer (Select3D_SensitiveWire::*)() const) static_cast<Standard_Integer (Select3D_SensitiveWire::*)() const>(&Select3D_SensitiveWire::Size),
R"#(Returns the length of vector of sensitive entities)#"
)
.def("Box",
(Select3D_BndBox3d (Select3D_SensitiveWire::*)( const Standard_Integer ) const) static_cast<Select3D_BndBox3d (Select3D_SensitiveWire::*)( const Standard_Integer ) const>(&Select3D_SensitiveWire::Box),
R"#(Returns bounding box of sensitive entity with index theIdx)#" , py::arg("theIdx")
)
.def("Center",
(Standard_Real (Select3D_SensitiveWire::*)( const Standard_Integer , const Standard_Integer ) const) static_cast<Standard_Real (Select3D_SensitiveWire::*)( const Standard_Integer , const Standard_Integer ) const>(&Select3D_SensitiveWire::Center),
R"#(Returns geometry center of sensitive entity index theIdx in the vector along the given axis theAxis)#" , py::arg("theIdx"), py::arg("theAxis")
)
.def("Swap",
(void (Select3D_SensitiveWire::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<void (Select3D_SensitiveWire::*)( const Standard_Integer , const Standard_Integer ) >(&Select3D_SensitiveWire::Swap),
R"#(Swaps items with indexes theIdx1 and theIdx2 in the vector)#" , py::arg("theIdx1"), py::arg("theIdx2")
)
.def("DumpJson",
(void (Select3D_SensitiveWire::*)( std::ostream & , Standard_Integer ) const) static_cast<void (Select3D_SensitiveWire::*)( std::ostream & , Standard_Integer ) const>(&Select3D_SensitiveWire::DumpJson),
R"#(Dumps the content of me into the stream)#" , py::arg("theOStream"), py::arg("theDepth")=static_cast<Standard_Integer>(- 1)
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&Select3D_SensitiveWire::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Select3D_SensitiveWire::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("GetEdges",
(const NCollection_Vector<opencascade::handle<Select3D_SensitiveEntity>> & (Select3D_SensitiveWire::*)() ) static_cast<const NCollection_Vector<opencascade::handle<Select3D_SensitiveEntity>> & (Select3D_SensitiveWire::*)() >(&Select3D_SensitiveWire::GetEdges),
R"#(returns the sensitive edges stored in this wire)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (Select3D_SensitiveWire::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Select3D_SensitiveWire::*)() const>(&Select3D_SensitiveWire::DynamicType),
R"#(None)#"
)
;
// Class Select3D_SensitiveCurve from ./opencascade/Select3D_SensitiveCurve.hxx
klass = m.attr("Select3D_SensitiveCurve");
// nested enums
static_cast<py::class_<Select3D_SensitiveCurve ,opencascade::handle<Select3D_SensitiveCurve> , Select3D_SensitivePoly >>(klass)
// constructors
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &,const opencascade::handle<Geom_Curve> &,const Standard_Integer >() , py::arg("theOwnerId"), py::arg("theCurve"), py::arg("theNbPnts")=static_cast<const Standard_Integer>(17) )
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &,const opencascade::handle<TColgp_HArray1OfPnt> & >() , py::arg("theOwnerId"), py::arg("thePoints") )
.def(py::init< const opencascade::handle<SelectMgr_EntityOwner> &, const NCollection_Array1<gp_Pnt> & >() , py::arg("theOwnerId"), py::arg("thePoints") )
// custom constructors
// methods
.def("GetConnected",
(opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveCurve::*)() ) static_cast<opencascade::handle<Select3D_SensitiveEntity> (Select3D_SensitiveCurve::*)() >(&Select3D_SensitiveCurve::GetConnected),
R"#(Returns the copy of this)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&Select3D_SensitiveCurve::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&Select3D_SensitiveCurve::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> & (Select3D_SensitiveCurve::*)() const) static_cast<const opencascade::handle<Standard_Type> & (Select3D_SensitiveCurve::*)() const>(&Select3D_SensitiveCurve::DynamicType),
R"#(None)#"
)
;
// functions
// ./opencascade/Select3D_BVHBuilder3d.hxx
// ./opencascade/Select3D_BVHIndexBuffer.hxx
// ./opencascade/Select3D_BndBox3d.hxx
// ./opencascade/Select3D_EntitySequence.hxx
// ./opencascade/Select3D_IndexedMapOfEntity.hxx
// ./opencascade/Select3D_InteriorSensitivePointSet.hxx
// ./opencascade/Select3D_Pnt.hxx
// ./opencascade/Select3D_PointData.hxx
// ./opencascade/Select3D_SensitiveBox.hxx
// ./opencascade/Select3D_SensitiveCircle.hxx
// ./opencascade/Select3D_SensitiveCurve.hxx
// ./opencascade/Select3D_SensitiveCylinder.hxx
// ./opencascade/Select3D_SensitiveEntity.hxx
// ./opencascade/Select3D_SensitiveFace.hxx
// ./opencascade/Select3D_SensitiveGroup.hxx
// ./opencascade/Select3D_SensitivePoint.hxx
// ./opencascade/Select3D_SensitivePoly.hxx
// ./opencascade/Select3D_SensitivePrimitiveArray.hxx
// ./opencascade/Select3D_SensitiveSegment.hxx
// ./opencascade/Select3D_SensitiveSet.hxx
// ./opencascade/Select3D_SensitiveSphere.hxx
// ./opencascade/Select3D_SensitiveTriangle.hxx
// ./opencascade/Select3D_SensitiveTriangulation.hxx
// ./opencascade/Select3D_SensitiveWire.hxx
// ./opencascade/Select3D_TypeOfSensitivity.hxx
// Additional functions
// operators
// register typdefs
register_template_BVH_Builder<Standard_Real, 3>(m,"Select3D_BVHBuilder3d");
register_template_NCollection_Sequence<opencascade::handle<Select3D_SensitiveEntity>>(m,"Select3D_EntitySequence");
register_template_NCollection_Vector<opencascade::handle<Select3D_SensitivePoly>>(m,"Select3D_VectorOfHPoly");
// exceptions
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|