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 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509
|
// std lib related includes
#include <tuple>
// pybind 11 related includes
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
// Standard Handle
#include <Standard_Handle.hxx>
// includes to resolve forward declarations
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Wire.hxx>
#include <TopoDS_Face.hxx>
#include <ShapeExtend_WireData.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Vertex.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <gp_Pln.hxx>
#include <gp_Cone.hxx>
#include <gp_Cylinder.hxx>
#include <gp_Sphere.hxx>
#include <gp_Lin.hxx>
#include <gp_Circ.hxx>
#include <gp_Elips.hxx>
#include <Geom_Curve.hxx>
#include <Geom_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Compound.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Geom_Curve.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Geom2d_Curve.hxx>
#include <Bnd_Box2d.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Edge.hxx>
#include <Geom_Curve.hxx>
#include <TopoDS_Face.hxx>
#include <Geom_Surface.hxx>
#include <TopLoc_Location.hxx>
#include <Geom2d_Curve.hxx>
#include <gp_Pnt2d.hxx>
#include <TopoDS_Vertex.hxx>
#include <gp_Vec2d.hxx>
#include <gp_Pnt.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 <gp_Pln.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 <TopoDS_Compound.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Geom_Curve.hxx>
#include <Geom2d_Curve.hxx>
#include <TopoDS_Vertex.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <ShapeAnalysis_Surface.hxx>
#include <TopoDS_Wire.hxx>
#include <Geom_Surface.hxx>
#include <ShapeAnalysis_WireOrder.hxx>
#include <Geom2d_Curve.hxx>
#include <TopoDS_Edge.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 <ShapeExtend_WireData.hxx>
#include <TopoDS_Wire.hxx>
// module includes
#include <ShapeAnalysis.hxx>
#include <ShapeAnalysis_BoxBndTree.hxx>
#include <ShapeAnalysis_CanonicalRecognition.hxx>
#include <ShapeAnalysis_CheckSmallFace.hxx>
#include <ShapeAnalysis_Curve.hxx>
#include <ShapeAnalysis_DataMapIteratorOfDataMapOfShapeListOfReal.hxx>
#include <ShapeAnalysis_DataMapOfShapeListOfReal.hxx>
#include <ShapeAnalysis_Edge.hxx>
#include <ShapeAnalysis_FreeBoundData.hxx>
#include <ShapeAnalysis_FreeBounds.hxx>
#include <ShapeAnalysis_FreeBoundsProperties.hxx>
#include <ShapeAnalysis_Geom.hxx>
#include <ShapeAnalysis_HSequenceOfFreeBounds.hxx>
#include <ShapeAnalysis_SequenceOfFreeBounds.hxx>
#include <ShapeAnalysis_ShapeContents.hxx>
#include <ShapeAnalysis_ShapeTolerance.hxx>
#include <ShapeAnalysis_Shell.hxx>
#include <ShapeAnalysis_Surface.hxx>
#include <ShapeAnalysis_TransferParameters.hxx>
#include <ShapeAnalysis_TransferParametersProj.hxx>
#include <ShapeAnalysis_Wire.hxx>
#include <ShapeAnalysis_WireOrder.hxx>
#include <ShapeAnalysis_WireVertex.hxx>
// template related includes
// ./opencascade/ShapeAnalysis_BoxBndTree.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/ShapeAnalysis_DataMapOfShapeListOfReal.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/ShapeAnalysis_DataMapOfShapeListOfReal.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/ShapeAnalysis_SequenceOfFreeBounds.hxx
#include "NCollection_tmpl.hxx"
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_ShapeAnalysis(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("ShapeAnalysis"));
py::object klass;
//Python trampoline classes
// classes
// Class ShapeAnalysis from ./opencascade/ShapeAnalysis.hxx
klass = m.attr("ShapeAnalysis");
// default constructor
register_default_constructor<ShapeAnalysis , shared_ptr<ShapeAnalysis>>(m,"ShapeAnalysis");
// nested enums
static_cast<py::class_<ShapeAnalysis , shared_ptr<ShapeAnalysis> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("OuterWire_s",
(TopoDS_Wire (*)( const TopoDS_Face & ) ) static_cast<TopoDS_Wire (*)( const TopoDS_Face & ) >(&ShapeAnalysis::OuterWire),
R"#(Returns positively oriented wire in the face. If there is no such wire - returns the last wire of the face.)#" , py::arg("theFace")
)
.def_static("TotCross2D_s",
(Standard_Real (*)( const handle<ShapeExtend_WireData> & , const TopoDS_Face & ) ) static_cast<Standard_Real (*)( const handle<ShapeExtend_WireData> & , const TopoDS_Face & ) >(&ShapeAnalysis::TotCross2D),
R"#(Returns a total area of 2d wire)#" , py::arg("sewd"), py::arg("aFace")
)
.def_static("ContourArea_s",
(Standard_Real (*)( const TopoDS_Wire & ) ) static_cast<Standard_Real (*)( const TopoDS_Wire & ) >(&ShapeAnalysis::ContourArea),
R"#(Returns a total area of 3d wire)#" , py::arg("theWire")
)
.def_static("IsOuterBound_s",
(Standard_Boolean (*)( const TopoDS_Face & ) ) static_cast<Standard_Boolean (*)( const TopoDS_Face & ) >(&ShapeAnalysis::IsOuterBound),
R"#(Returns True if <F> has outer bound.)#" , py::arg("face")
)
.def_static("AdjustByPeriod_s",
(Standard_Real (*)( const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<Standard_Real (*)( const Standard_Real , const Standard_Real , const Standard_Real ) >(&ShapeAnalysis::AdjustByPeriod),
R"#(Returns a shift required to move point <Val> to the range [ToVal-Period/2,ToVal+Period/2]. This shift will be the divisible by Period. Intended for adjusting parameters on periodic surfaces.)#" , py::arg("Val"), py::arg("ToVal"), py::arg("Period")
)
.def_static("AdjustToPeriod_s",
(Standard_Real (*)( const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<Standard_Real (*)( const Standard_Real , const Standard_Real , const Standard_Real ) >(&ShapeAnalysis::AdjustToPeriod),
R"#(Returns a shift required to move point <Val> to the range [ValMin,ValMax]. This shift will be the divisible by Period with Period = ValMax - ValMin. Intended for adjusting parameters on periodic surfaces.)#" , py::arg("Val"), py::arg("ValMin"), py::arg("ValMax")
)
.def_static("FindBounds_s",
(void (*)( const TopoDS_Shape & , TopoDS_Vertex & , TopoDS_Vertex & ) ) static_cast<void (*)( const TopoDS_Shape & , TopoDS_Vertex & , TopoDS_Vertex & ) >(&ShapeAnalysis::FindBounds),
R"#(Finds the start and end vertices of the shape Shape can be of the following type: vertex: V1 and V2 are the same and equal to <shape>, edge : V1 is start and V2 is end vertex (see ShapeAnalysis_Edge methods FirstVertex and LastVertex), wire : V1 is start vertex of the first edge, V2 is end vertex of the last edge (also see ShapeAnalysis_Edge). If wire contains no edges V1 and V2 are nullified If none of the above V1 and V2 are nullified)#" , py::arg("shape"), py::arg("V1"), py::arg("V2")
)
// static methods using call by reference i.s.o. return
.def_static("GetFaceUVBounds_s",
[]( const TopoDS_Face & F ){
Standard_Real Umin;
Standard_Real Umax;
Standard_Real Vmin;
Standard_Real Vmax;
ShapeAnalysis::GetFaceUVBounds(F,Umin,Umax,Vmin,Vmax);
return std::make_tuple(Umin,Umax,Vmin,Vmax); },
R"#(Computes exact UV bounds of all wires on the face)#" , py::arg("F")
)
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class ShapeAnalysis_CanonicalRecognition from ./opencascade/ShapeAnalysis_CanonicalRecognition.hxx
klass = m.attr("ShapeAnalysis_CanonicalRecognition");
// nested enums
static_cast<py::class_<ShapeAnalysis_CanonicalRecognition , shared_ptr<ShapeAnalysis_CanonicalRecognition> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Shape & >() , py::arg("theShape") )
// custom constructors
// methods
.def("SetShape",
(void (ShapeAnalysis_CanonicalRecognition::*)( const TopoDS_Shape & ) ) static_cast<void (ShapeAnalysis_CanonicalRecognition::*)( const TopoDS_Shape & ) >(&ShapeAnalysis_CanonicalRecognition::SetShape),
R"#(Sets shape)#" , py::arg("theShape")
)
.def("GetGap",
(Standard_Real (ShapeAnalysis_CanonicalRecognition::*)() const) static_cast<Standard_Real (ShapeAnalysis_CanonicalRecognition::*)() const>(&ShapeAnalysis_CanonicalRecognition::GetGap),
R"#(Returns deviation between input geometry entity and analytical entity)#"
)
.def("GetStatus",
(Standard_Integer (ShapeAnalysis_CanonicalRecognition::*)() const) static_cast<Standard_Integer (ShapeAnalysis_CanonicalRecognition::*)() const>(&ShapeAnalysis_CanonicalRecognition::GetStatus),
R"#(Returns status of operation. Current meaning of possible values of status: -1 - algorithm is not initalazed by shape 0 - no errors 1 - error during any operation (usually - because of wrong input data) Any operation (calling any methods like IsPlane(...), ...) can be performed when current staue is equal 0. If after any operation status != 0, it is necessary to set it 0 by method ClearStatus() before calling other operation.)#"
)
.def("ClearStatus",
(void (ShapeAnalysis_CanonicalRecognition::*)() ) static_cast<void (ShapeAnalysis_CanonicalRecognition::*)() >(&ShapeAnalysis_CanonicalRecognition::ClearStatus),
R"#(Returns status to be equal 0.)#"
)
.def("IsPlane",
(Standard_Boolean (ShapeAnalysis_CanonicalRecognition::*)( const Standard_Real , gp_Pln & ) ) static_cast<Standard_Boolean (ShapeAnalysis_CanonicalRecognition::*)( const Standard_Real , gp_Pln & ) >(&ShapeAnalysis_CanonicalRecognition::IsPlane),
R"#(Returns true if the underlined surface can be represent by plane with tolerance theTol and sets in thePln the result plane.)#" , py::arg("theTol"), py::arg("thePln")
)
.def("IsCylinder",
(Standard_Boolean (ShapeAnalysis_CanonicalRecognition::*)( const Standard_Real , gp_Cylinder & ) ) static_cast<Standard_Boolean (ShapeAnalysis_CanonicalRecognition::*)( const Standard_Real , gp_Cylinder & ) >(&ShapeAnalysis_CanonicalRecognition::IsCylinder),
R"#(Returns true if the underlined surface can be represent by cylindrical one with tolerance theTol and sets in theCyl the result cylinrical surface.)#" , py::arg("theTol"), py::arg("theCyl")
)
.def("IsCone",
(Standard_Boolean (ShapeAnalysis_CanonicalRecognition::*)( const Standard_Real , gp_Cone & ) ) static_cast<Standard_Boolean (ShapeAnalysis_CanonicalRecognition::*)( const Standard_Real , gp_Cone & ) >(&ShapeAnalysis_CanonicalRecognition::IsCone),
R"#(Returns true if the underlined surface can be represent by conical one with tolerance theTol and sets in theCone the result conical surface.)#" , py::arg("theTol"), py::arg("theCone")
)
.def("IsSphere",
(Standard_Boolean (ShapeAnalysis_CanonicalRecognition::*)( const Standard_Real , gp_Sphere & ) ) static_cast<Standard_Boolean (ShapeAnalysis_CanonicalRecognition::*)( const Standard_Real , gp_Sphere & ) >(&ShapeAnalysis_CanonicalRecognition::IsSphere),
R"#(Returns true if the underlined surface can be represent by spherical one with tolerance theTol and sets in theSphere the result spherical surface.)#" , py::arg("theTol"), py::arg("theSphere")
)
.def("IsLine",
(Standard_Boolean (ShapeAnalysis_CanonicalRecognition::*)( const Standard_Real , gp_Lin & ) ) static_cast<Standard_Boolean (ShapeAnalysis_CanonicalRecognition::*)( const Standard_Real , gp_Lin & ) >(&ShapeAnalysis_CanonicalRecognition::IsLine),
R"#(Returns true if the underlined curve can be represent by line with tolerance theTol and sets in theLin the result line.)#" , py::arg("theTol"), py::arg("theLin")
)
.def("IsCircle",
(Standard_Boolean (ShapeAnalysis_CanonicalRecognition::*)( const Standard_Real , gp_Circ & ) ) static_cast<Standard_Boolean (ShapeAnalysis_CanonicalRecognition::*)( const Standard_Real , gp_Circ & ) >(&ShapeAnalysis_CanonicalRecognition::IsCircle),
R"#(Returns true if the underlined curve can be represent by circle with tolerance theTol and sets in theCirc the result circle.)#" , py::arg("theTol"), py::arg("theCirc")
)
.def("IsEllipse",
(Standard_Boolean (ShapeAnalysis_CanonicalRecognition::*)( const Standard_Real , gp_Elips & ) ) static_cast<Standard_Boolean (ShapeAnalysis_CanonicalRecognition::*)( const Standard_Real , gp_Elips & ) >(&ShapeAnalysis_CanonicalRecognition::IsEllipse),
R"#(Returns true if the underlined curve can be represent by ellipse with tolerance theTol and sets in theCirc the result ellipse.)#" , py::arg("theTol"), py::arg("theElips")
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("GetShape",
( const TopoDS_Shape & (ShapeAnalysis_CanonicalRecognition::*)() const) static_cast< const TopoDS_Shape & (ShapeAnalysis_CanonicalRecognition::*)() const>(&ShapeAnalysis_CanonicalRecognition::GetShape),
R"#(Returns input shape)#"
)
;
// Class ShapeAnalysis_CheckSmallFace from ./opencascade/ShapeAnalysis_CheckSmallFace.hxx
klass = m.attr("ShapeAnalysis_CheckSmallFace");
// nested enums
static_cast<py::class_<ShapeAnalysis_CheckSmallFace , shared_ptr<ShapeAnalysis_CheckSmallFace> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("IsSpotFace",
(Standard_Integer (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , gp_Pnt & , Standard_Real & , const Standard_Real ) const) static_cast<Standard_Integer (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , gp_Pnt & , Standard_Real & , const Standard_Real ) const>(&ShapeAnalysis_CheckSmallFace::IsSpotFace),
R"#(Checks if a Face is as a Spot Returns 0 if not, 1 if yes, 2 if yes and all vertices are the same By default, considers the tolerance zone of its vertices A given value <tol> may be given to check a spot of this size If a Face is a Spot, its location is returned in <spot>, and <spotol> returns an equivalent tolerance, which is computed as half of max dimension of min-max box of the face)#" , py::arg("F"), py::arg("spot"), py::arg("spotol"), py::arg("tol")=static_cast< const Standard_Real>(- 1.0)
)
.def("CheckSpotFace",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , const Standard_Real ) >(&ShapeAnalysis_CheckSmallFace::CheckSpotFace),
R"#(Acts as IsSpotFace, but records in <infos> a diagnostic "SpotFace" with the Pnt as value (data "Location"))#" , py::arg("F"), py::arg("tol")=static_cast< const Standard_Real>(- 1.0)
)
.def("IsStripSupport",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , const Standard_Real ) >(&ShapeAnalysis_CheckSmallFace::IsStripSupport),
R"#(Checks if a Face lies on a Surface which is a strip So the Face is a strip. But a Face may be a strip elsewhere ..)#" , py::arg("F"), py::arg("tol")=static_cast< const Standard_Real>(- 1.0)
)
.def("CheckStripEdges",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Edge & , const TopoDS_Edge & , const Standard_Real , Standard_Real & ) const) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Edge & , const TopoDS_Edge & , const Standard_Real , Standard_Real & ) const>(&ShapeAnalysis_CheckSmallFace::CheckStripEdges),
R"#(Checks if two edges define a strip, i.e. distance maxi below tolerance, given or some of those of E1 and E2)#" , py::arg("E1"), py::arg("E2"), py::arg("tol"), py::arg("dmax")
)
.def("FindStripEdges",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , TopoDS_Edge & , TopoDS_Edge & , const Standard_Real , Standard_Real & ) ) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , TopoDS_Edge & , TopoDS_Edge & , const Standard_Real , Standard_Real & ) >(&ShapeAnalysis_CheckSmallFace::FindStripEdges),
R"#(Searches for two and only two edges up tolerance Returns True if OK, false if not 2 edges If True, returns the two edges and their maximum distance)#" , py::arg("F"), py::arg("E1"), py::arg("E2"), py::arg("tol"), py::arg("dmax")
)
.def("CheckSingleStrip",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , TopoDS_Edge & , TopoDS_Edge & , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , TopoDS_Edge & , TopoDS_Edge & , const Standard_Real ) >(&ShapeAnalysis_CheckSmallFace::CheckSingleStrip),
R"#(Checks if a Face is a single strip, i.e. brings two great edges which are confused on their whole length, possible other edges are small or null length)#" , py::arg("F"), py::arg("E1"), py::arg("E2"), py::arg("tol")=static_cast< const Standard_Real>(- 1.0)
)
.def("CheckStripFace",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , TopoDS_Edge & , TopoDS_Edge & , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , TopoDS_Edge & , TopoDS_Edge & , const Standard_Real ) >(&ShapeAnalysis_CheckSmallFace::CheckStripFace),
R"#(Checks if a Face is as a Strip Returns 0 if not or non determined, 1 if in U, 2 if in V By default, considers the tolerance zone of its edges A given value <tol> may be given to check a strip of max this width)#" , py::arg("F"), py::arg("E1"), py::arg("E2"), py::arg("tol")=static_cast< const Standard_Real>(- 1.0)
)
.def("CheckSplittingVertices",
(Standard_Integer (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , TopTools_DataMapOfShapeListOfShape & , ShapeAnalysis_DataMapOfShapeListOfReal & , TopoDS_Compound & ) ) static_cast<Standard_Integer (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , TopTools_DataMapOfShapeListOfShape & , ShapeAnalysis_DataMapOfShapeListOfReal & , TopoDS_Compound & ) >(&ShapeAnalysis_CheckSmallFace::CheckSplittingVertices),
R"#(Checks if a Face brings vertices which split it, either confused with non adjacent vertices, or confused with their projection on non adjacent edges Returns the count of found splitting vertices Each vertex then brings a diagnostic "SplittingVertex", with data : "Face" for the face, "Edge" for the split edge)#" , py::arg("F"), py::arg("MapEdges"), py::arg("MapParam"), py::arg("theAllVert")
)
.def("CheckPin",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , Standard_Integer & , Standard_Integer & ) ) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , Standard_Integer & , Standard_Integer & ) >(&ShapeAnalysis_CheckSmallFace::CheckPin),
R"#(Checks if a Face has a pin, which can be edited No singularity : no pin, returns 0 If there is a pin, checked topics, with returned value : - 0 : nothing to do more - 1 : "smooth", i.e. not a really sharp pin -> diagnostic "SmoothPin" - 2 : stretched pin, i.e. is possible to relimit the face by another vertex, so that this vertex still gives a pin -> diagnostic "StretchedPin" with location of vertex (Pnt))#" , py::arg("F"), py::arg("whatrow"), py::arg("sence")
)
.def("CheckTwisted",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , Standard_Real & , Standard_Real & ) ) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , Standard_Real & , Standard_Real & ) >(&ShapeAnalysis_CheckSmallFace::CheckTwisted),
R"#(Checks if a Face is twisted (apart from checking Pin, i.e. it does not give information on pin, only "it is twisted"))#" , py::arg("F"), py::arg("paramu"), py::arg("paramv")
)
.def("CheckPinFace",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , TopTools_DataMapOfShapeShape & , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Face & , TopTools_DataMapOfShapeShape & , const Standard_Real ) >(&ShapeAnalysis_CheckSmallFace::CheckPinFace),
R"#()#" , py::arg("F"), py::arg("mapEdges"), py::arg("toler")=static_cast< const Standard_Real>(- 1.0)
)
.def("CheckPinEdges",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Edge & , const TopoDS_Edge & , const Standard_Real , const Standard_Real , const Standard_Real ) const) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const TopoDS_Edge & , const TopoDS_Edge & , const Standard_Real , const Standard_Real , const Standard_Real ) const>(&ShapeAnalysis_CheckSmallFace::CheckPinEdges),
R"#()#" , py::arg("theFirstEdge"), py::arg("theSecondEdge"), py::arg("coef1"), py::arg("coef2"), py::arg("toler")
)
.def("Status",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_CheckSmallFace::Status),
R"#(Returns the status of last call to Perform() ShapeExtend_OK : face was OK, nothing done ShapeExtend_DONE1: some wires are fixed ShapeExtend_DONE2: orientation of wires fixed ShapeExtend_DONE3: missing seam added ShapeExtend_DONE4: small area wire removed ShapeExtend_DONE5: natural bounds added ShapeExtend_FAIL1: some fails during fixing wires ShapeExtend_FAIL2: cannot fix orientation of wires ShapeExtend_FAIL3: cannot add missing seam ShapeExtend_FAIL4: cannot remove small area wire)#" , py::arg("status")
)
.def("SetTolerance",
(void (ShapeAnalysis_CheckSmallFace::*)( const Standard_Real ) ) static_cast<void (ShapeAnalysis_CheckSmallFace::*)( const Standard_Real ) >(&ShapeAnalysis_CheckSmallFace::SetTolerance),
R"#(Sets a fixed Tolerance to check small face By default, local tolerance zone is considered Sets a fixed MaxTolerance to check small face Sets a fixed Tolerance to check small face By default, local tolerance zone is considered Unset fixed tolerance, comes back to local tolerance zones Unset fixed tolerance, comes back to local tolerance zones)#" , py::arg("tol")
)
.def("Tolerance",
(Standard_Real (ShapeAnalysis_CheckSmallFace::*)() const) static_cast<Standard_Real (ShapeAnalysis_CheckSmallFace::*)() const>(&ShapeAnalysis_CheckSmallFace::Tolerance),
R"#(Returns the tolerance to check small faces, negative value if local tolerances zones are to be considered)#"
)
.def("StatusSpot",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_CheckSmallFace::StatusSpot),
R"#()#" , py::arg("status")
)
.def("StatusStrip",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_CheckSmallFace::StatusStrip),
R"#()#" , py::arg("status")
)
.def("StatusPin",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_CheckSmallFace::StatusPin),
R"#()#" , py::arg("status")
)
.def("StatusTwisted",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_CheckSmallFace::StatusTwisted),
R"#()#" , py::arg("status")
)
.def("StatusSplitVert",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_CheckSmallFace::StatusSplitVert),
R"#()#" , py::arg("status")
)
.def("StatusPinFace",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_CheckSmallFace::StatusPinFace),
R"#()#" , py::arg("status")
)
.def("StatusPinEdges",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_CheckSmallFace::StatusPinEdges),
R"#()#" , py::arg("status")
)
.def("Status",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_CheckSmallFace::Status),
R"#(Returns the status of last call to Perform() ShapeExtend_OK : face was OK, nothing done ShapeExtend_DONE1: some wires are fixed ShapeExtend_DONE2: orientation of wires fixed ShapeExtend_DONE3: missing seam added ShapeExtend_DONE4: small area wire removed ShapeExtend_DONE5: natural bounds added ShapeExtend_FAIL1: some fails during fixing wires ShapeExtend_FAIL2: cannot fix orientation of wires ShapeExtend_FAIL3: cannot add missing seam ShapeExtend_FAIL4: cannot remove small area wire)#" , py::arg("status")
)
.def("SetTolerance",
(void (ShapeAnalysis_CheckSmallFace::*)( const Standard_Real ) ) static_cast<void (ShapeAnalysis_CheckSmallFace::*)( const Standard_Real ) >(&ShapeAnalysis_CheckSmallFace::SetTolerance),
R"#(Sets a fixed Tolerance to check small face By default, local tolerance zone is considered Sets a fixed MaxTolerance to check small face Sets a fixed Tolerance to check small face By default, local tolerance zone is considered Unset fixed tolerance, comes back to local tolerance zones Unset fixed tolerance, comes back to local tolerance zones)#" , py::arg("tol")
)
.def("Tolerance",
(Standard_Real (ShapeAnalysis_CheckSmallFace::*)() const) static_cast<Standard_Real (ShapeAnalysis_CheckSmallFace::*)() const>(&ShapeAnalysis_CheckSmallFace::Tolerance),
R"#(Returns the tolerance to check small faces, negative value if local tolerances zones are to be considered)#"
)
.def("StatusSpot",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_CheckSmallFace::StatusSpot),
R"#()#" , py::arg("status")
)
.def("StatusStrip",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_CheckSmallFace::StatusStrip),
R"#()#" , py::arg("status")
)
.def("StatusPin",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_CheckSmallFace::StatusPin),
R"#()#" , py::arg("status")
)
.def("StatusTwisted",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_CheckSmallFace::StatusTwisted),
R"#()#" , py::arg("status")
)
.def("StatusPinFace",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_CheckSmallFace::StatusPinFace),
R"#()#" , py::arg("status")
)
.def("StatusPinEdges",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_CheckSmallFace::StatusPinEdges),
R"#()#" , py::arg("status")
)
.def("StatusSplitVert",
(Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_CheckSmallFace::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_CheckSmallFace::StatusSplitVert),
R"#()#" , py::arg("status")
)
// 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 ShapeAnalysis_Curve from ./opencascade/ShapeAnalysis_Curve.hxx
klass = m.attr("ShapeAnalysis_Curve");
// default constructor
register_default_constructor<ShapeAnalysis_Curve , shared_ptr<ShapeAnalysis_Curve>>(m,"ShapeAnalysis_Curve");
// nested enums
static_cast<py::class_<ShapeAnalysis_Curve , shared_ptr<ShapeAnalysis_Curve> >>(klass)
// constructors
// custom constructors
// methods
.def("Project",
(Standard_Real (ShapeAnalysis_Curve::*)( const handle<Geom_Curve> & , const gp_Pnt & , const Standard_Real , gp_Pnt & , Standard_Real & , const Standard_Boolean ) const) static_cast<Standard_Real (ShapeAnalysis_Curve::*)( const handle<Geom_Curve> & , const gp_Pnt & , const Standard_Real , gp_Pnt & , Standard_Real & , const Standard_Boolean ) const>(&ShapeAnalysis_Curve::Project),
R"#(Projects a Point on a Curve. Computes the projected point and its parameter on the curve. <preci> is used as 3d precision (hence, 0 will produce reject unless exact confusion). The number of iterations is limited. If AdjustToEnds is True, point will be adjusted to the end of the curve if distance is less than <preci>)#" , py::arg("C3D"), py::arg("P3D"), py::arg("preci"), py::arg("proj"), py::arg("param"), py::arg("AdjustToEnds")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Project",
(Standard_Real (ShapeAnalysis_Curve::*)( const Adaptor3d_Curve & , const gp_Pnt & , const Standard_Real , gp_Pnt & , Standard_Real & , const Standard_Boolean ) const) static_cast<Standard_Real (ShapeAnalysis_Curve::*)( const Adaptor3d_Curve & , const gp_Pnt & , const Standard_Real , gp_Pnt & , Standard_Real & , const Standard_Boolean ) const>(&ShapeAnalysis_Curve::Project),
R"#(Projects a Point on a Curve. Computes the projected point and its parameter on the curve. <preci> is used as 3d precision (hence, 0 will produce reject unless exact confusion). The number of iterations is limited.)#" , py::arg("C3D"), py::arg("P3D"), py::arg("preci"), py::arg("proj"), py::arg("param"), py::arg("AdjustToEnds")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("Project",
(Standard_Real (ShapeAnalysis_Curve::*)( const handle<Geom_Curve> & , const gp_Pnt & , const Standard_Real , gp_Pnt & , Standard_Real & , const Standard_Real , const Standard_Real , const Standard_Boolean ) const) static_cast<Standard_Real (ShapeAnalysis_Curve::*)( const handle<Geom_Curve> & , const gp_Pnt & , const Standard_Real , gp_Pnt & , Standard_Real & , const Standard_Real , const Standard_Real , const Standard_Boolean ) const>(&ShapeAnalysis_Curve::Project),
R"#(Projects a Point on a Curve, but parameters are limited between <cf> and <cl>. The range [cf, cl] is extended with help of Adaptor3d on the basis of 3d precision <preci>. If AdjustToEnds is True, point will be adjusted to the end of the curve if distance is less than <preci>)#" , py::arg("C3D"), py::arg("P3D"), py::arg("preci"), py::arg("proj"), py::arg("param"), py::arg("cf"), py::arg("cl"), py::arg("AdjustToEnds")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("ProjectAct",
(Standard_Real (ShapeAnalysis_Curve::*)( const Adaptor3d_Curve & , const gp_Pnt & , const Standard_Real , gp_Pnt & , Standard_Real & ) const) static_cast<Standard_Real (ShapeAnalysis_Curve::*)( const Adaptor3d_Curve & , const gp_Pnt & , const Standard_Real , gp_Pnt & , Standard_Real & ) const>(&ShapeAnalysis_Curve::ProjectAct),
R"#()#" , py::arg("C3D"), py::arg("P3D"), py::arg("preci"), py::arg("proj"), py::arg("param")
)
.def("NextProject",
(Standard_Real (ShapeAnalysis_Curve::*)( const Standard_Real , const handle<Geom_Curve> & , const gp_Pnt & , const Standard_Real , gp_Pnt & , Standard_Real & , const Standard_Real , const Standard_Real , const Standard_Boolean ) const) static_cast<Standard_Real (ShapeAnalysis_Curve::*)( const Standard_Real , const handle<Geom_Curve> & , const gp_Pnt & , const Standard_Real , gp_Pnt & , Standard_Real & , const Standard_Real , const Standard_Real , const Standard_Boolean ) const>(&ShapeAnalysis_Curve::NextProject),
R"#(Projects a Point on a Curve using Newton method. <paramPrev> is taken as the first approximation of solution. If Newton algorithm fails the method Project() is used. If AdjustToEnds is True, point will be adjusted to the end of the curve if distance is less than <preci>)#" , py::arg("paramPrev"), py::arg("C3D"), py::arg("P3D"), py::arg("preci"), py::arg("proj"), py::arg("param"), py::arg("cf"), py::arg("cl"), py::arg("AdjustToEnds")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("NextProject",
(Standard_Real (ShapeAnalysis_Curve::*)( const Standard_Real , const Adaptor3d_Curve & , const gp_Pnt & , const Standard_Real , gp_Pnt & , Standard_Real & ) const) static_cast<Standard_Real (ShapeAnalysis_Curve::*)( const Standard_Real , const Adaptor3d_Curve & , const gp_Pnt & , const Standard_Real , gp_Pnt & , Standard_Real & ) const>(&ShapeAnalysis_Curve::NextProject),
R"#(Projects a Point on a Curve using Newton method. <paramPrev> is taken as the first approximation of solution. If Newton algorithm fails the method Project() is used.)#" , py::arg("paramPrev"), py::arg("C3D"), py::arg("P3D"), py::arg("preci"), py::arg("proj"), py::arg("param")
)
.def("ValidateRange",
(Standard_Boolean (ShapeAnalysis_Curve::*)( const handle<Geom_Curve> & , Standard_Real & , Standard_Real & , const Standard_Real ) const) static_cast<Standard_Boolean (ShapeAnalysis_Curve::*)( const handle<Geom_Curve> & , Standard_Real & , Standard_Real & , const Standard_Real ) const>(&ShapeAnalysis_Curve::ValidateRange),
R"#(Validate parameters First and Last for the given curve in order to make them valid for creation of edge. This includes: - limiting range [First,Last] by range of curve - adjusting range [First,Last] for periodic (or closed) curve if Last < First Returns True if parameters are OK or are successfully corrected, or False if parameters cannot be corrected. In the latter case, parameters are reset to range of curve.)#" , py::arg("Crv"), py::arg("First"), py::arg("Last"), py::arg("prec")
)
.def("FillBndBox",
(void (ShapeAnalysis_Curve::*)( const handle<Geom2d_Curve> & , const Standard_Real , const Standard_Real , const Standard_Integer , const Standard_Boolean , Bnd_Box2d & ) const) static_cast<void (ShapeAnalysis_Curve::*)( const handle<Geom2d_Curve> & , const Standard_Real , const Standard_Real , const Standard_Integer , const Standard_Boolean , Bnd_Box2d & ) const>(&ShapeAnalysis_Curve::FillBndBox),
R"#(Computes a boundary box on segment of curve C2d from First to Last. This is done by taking NPoints points from the curve and, if Exact is True, by searching for exact extrema. All these points are added to Box.)#" , py::arg("C2d"), py::arg("First"), py::arg("Last"), py::arg("NPoints"), py::arg("Exact"), py::arg("Box")
)
.def("SelectForwardSeam",
(Standard_Integer (ShapeAnalysis_Curve::*)( const handle<Geom2d_Curve> & , const handle<Geom2d_Curve> & ) const) static_cast<Standard_Integer (ShapeAnalysis_Curve::*)( const handle<Geom2d_Curve> & , const handle<Geom2d_Curve> & ) const>(&ShapeAnalysis_Curve::SelectForwardSeam),
R"#(Defines which pcurve (C1 or C2) should be chosen for FORWARD seam edge.)#" , py::arg("C1"), py::arg("C2")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("IsPlanar_s",
(Standard_Boolean (*)( const TColgp_Array1OfPnt & , gp_XYZ & , const Standard_Real ) ) static_cast<Standard_Boolean (*)( const TColgp_Array1OfPnt & , gp_XYZ & , const Standard_Real ) >(&ShapeAnalysis_Curve::IsPlanar),
R"#(Checks if points are planar with given preci. If Normal has not zero modulus, checks with given normal)#" , py::arg("pnts"), py::arg("Normal"), py::arg("preci")=static_cast< const Standard_Real>(0)
)
.def_static("IsPlanar_s",
(Standard_Boolean (*)( const handle<Geom_Curve> & , gp_XYZ & , const Standard_Real ) ) static_cast<Standard_Boolean (*)( const handle<Geom_Curve> & , gp_XYZ & , const Standard_Real ) >(&ShapeAnalysis_Curve::IsPlanar),
R"#(Checks if curve is planar with given preci. If Normal has not zero modulus, checks with given normal)#" , py::arg("curve"), py::arg("Normal"), py::arg("preci")=static_cast< const Standard_Real>(0)
)
.def_static("GetSamplePoints_s",
(Standard_Boolean (*)( const handle<Geom2d_Curve> & , const Standard_Real , const Standard_Real , TColgp_SequenceOfPnt2d & ) ) static_cast<Standard_Boolean (*)( const handle<Geom2d_Curve> & , const Standard_Real , const Standard_Real , TColgp_SequenceOfPnt2d & ) >(&ShapeAnalysis_Curve::GetSamplePoints),
R"#(Returns sample points which will serve as linearisation of the2d curve in range (first, last) The distribution of sample points is consystent with what is used by BRepTopAdaptor_FClass2d)#" , py::arg("curve"), py::arg("first"), py::arg("last"), py::arg("seq")
)
.def_static("GetSamplePoints_s",
(Standard_Boolean (*)( const handle<Geom_Curve> & , const Standard_Real , const Standard_Real , TColgp_SequenceOfPnt & ) ) static_cast<Standard_Boolean (*)( const handle<Geom_Curve> & , const Standard_Real , const Standard_Real , TColgp_SequenceOfPnt & ) >(&ShapeAnalysis_Curve::GetSamplePoints),
R"#(Returns sample points which will serve as linearisation of the curve in range (first, last))#" , py::arg("curve"), py::arg("first"), py::arg("last"), py::arg("seq")
)
.def_static("IsClosed_s",
(Standard_Boolean (*)( const handle<Geom_Curve> & , const Standard_Real ) ) static_cast<Standard_Boolean (*)( const handle<Geom_Curve> & , const Standard_Real ) >(&ShapeAnalysis_Curve::IsClosed),
R"#(Tells if the Curve is closed with given precision. If <preci> < 0 then Precision::Confusion is used.)#" , py::arg("curve"), py::arg("preci")=static_cast< const Standard_Real>(- 1)
)
.def_static("IsPeriodic_s",
(Standard_Boolean (*)( const handle<Geom_Curve> & ) ) static_cast<Standard_Boolean (*)( const handle<Geom_Curve> & ) >(&ShapeAnalysis_Curve::IsPeriodic),
R"#(This method was implemented as fix for changes in trimmed curve behaviour. For the moment trimmed curve returns false anyway. So it is necessary to adapt all Data exchange tools for this behaviour. Current implementation takes into account that curve may be offset.)#" , py::arg("curve")
)
.def_static("IsPeriodic_s",
(Standard_Boolean (*)( const handle<Geom2d_Curve> & ) ) static_cast<Standard_Boolean (*)( const handle<Geom2d_Curve> & ) >(&ShapeAnalysis_Curve::IsPeriodic),
R"#(The same as for Curve3d.)#" , py::arg("curve")
)
// 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 ShapeAnalysis_Edge from ./opencascade/ShapeAnalysis_Edge.hxx
klass = m.attr("ShapeAnalysis_Edge");
// nested enums
static_cast<py::class_<ShapeAnalysis_Edge , shared_ptr<ShapeAnalysis_Edge> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("HasCurve3d",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & ) const) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & ) const>(&ShapeAnalysis_Edge::HasCurve3d),
R"#(Tells if the edge has a 3d curve)#" , py::arg("edge")
)
.def("Curve3d",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , handle<Geom_Curve> & , Standard_Real & , Standard_Real & , const Standard_Boolean ) const) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , handle<Geom_Curve> & , Standard_Real & , Standard_Real & , const Standard_Boolean ) const>(&ShapeAnalysis_Edge::Curve3d),
R"#(Returns the 3d curve and bounding parameters for the edge Returns False if no 3d curve. If <orient> is True (default), takes orientation into account: if the edge is reversed, cf and cl are toggled)#" , py::arg("edge"), py::arg("C3d"), py::arg("cf"), py::arg("cl"), py::arg("orient")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("IsClosed3d",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & ) const) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & ) const>(&ShapeAnalysis_Edge::IsClosed3d),
R"#(Gives True if the edge has a 3d curve, this curve is closed, and the edge has the same vertex at start and end)#" , py::arg("edge")
)
.def("HasPCurve",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & ) const) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & ) const>(&ShapeAnalysis_Edge::HasPCurve),
R"#(Tells if the Edge has a pcurve on the face.)#" , py::arg("edge"), py::arg("face")
)
.def("HasPCurve",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const handle<Geom_Surface> & , const TopLoc_Location & ) const) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const handle<Geom_Surface> & , const TopLoc_Location & ) const>(&ShapeAnalysis_Edge::HasPCurve),
R"#(Tells if the edge has a pcurve on the surface (with location).)#" , py::arg("edge"), py::arg("surface"), py::arg("location")
)
.def("PCurve",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & , handle<Geom2d_Curve> & , Standard_Real & , Standard_Real & , const Standard_Boolean ) const) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & , handle<Geom2d_Curve> & , Standard_Real & , Standard_Real & , const Standard_Boolean ) const>(&ShapeAnalysis_Edge::PCurve),
R"#()#" , py::arg("edge"), py::arg("face"), py::arg("C2d"), py::arg("cf"), py::arg("cl"), py::arg("orient")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("PCurve",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const handle<Geom_Surface> & , const TopLoc_Location & , handle<Geom2d_Curve> & , Standard_Real & , Standard_Real & , const Standard_Boolean ) const) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const handle<Geom_Surface> & , const TopLoc_Location & , handle<Geom2d_Curve> & , Standard_Real & , Standard_Real & , const Standard_Boolean ) const>(&ShapeAnalysis_Edge::PCurve),
R"#(Returns the pcurve and bounding parameters for the edge lying on the surface. Returns False if the edge has no pcurve on this surface. If <orient> is True (default), takes orientation into account: if the edge is reversed, cf and cl are toggled)#" , py::arg("edge"), py::arg("surface"), py::arg("location"), py::arg("C2d"), py::arg("cf"), py::arg("cl"), py::arg("orient")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("BoundUV",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & , gp_Pnt2d & , gp_Pnt2d & ) const) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & , gp_Pnt2d & , gp_Pnt2d & ) const>(&ShapeAnalysis_Edge::BoundUV),
R"#()#" , py::arg("edge"), py::arg("face"), py::arg("first"), py::arg("last")
)
.def("BoundUV",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const handle<Geom_Surface> & , const TopLoc_Location & , gp_Pnt2d & , gp_Pnt2d & ) const) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const handle<Geom_Surface> & , const TopLoc_Location & , gp_Pnt2d & , gp_Pnt2d & ) const>(&ShapeAnalysis_Edge::BoundUV),
R"#(Returns the ends of pcurve Calls method PCurve with <orient> equal to True)#" , py::arg("edge"), py::arg("surface"), py::arg("location"), py::arg("first"), py::arg("last")
)
.def("IsSeam",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & ) const) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & ) const>(&ShapeAnalysis_Edge::IsSeam),
R"#()#" , py::arg("edge"), py::arg("face")
)
.def("IsSeam",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const handle<Geom_Surface> & , const TopLoc_Location & ) const) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const handle<Geom_Surface> & , const TopLoc_Location & ) const>(&ShapeAnalysis_Edge::IsSeam),
R"#(Returns True if the edge has two pcurves on one surface)#" , py::arg("edge"), py::arg("surface"), py::arg("location")
)
.def("FirstVertex",
(TopoDS_Vertex (ShapeAnalysis_Edge::*)( const TopoDS_Edge & ) const) static_cast<TopoDS_Vertex (ShapeAnalysis_Edge::*)( const TopoDS_Edge & ) const>(&ShapeAnalysis_Edge::FirstVertex),
R"#(Returns start vertex of the edge (taking edge orientation into account).)#" , py::arg("edge")
)
.def("LastVertex",
(TopoDS_Vertex (ShapeAnalysis_Edge::*)( const TopoDS_Edge & ) const) static_cast<TopoDS_Vertex (ShapeAnalysis_Edge::*)( const TopoDS_Edge & ) const>(&ShapeAnalysis_Edge::LastVertex),
R"#(Returns end vertex of the edge (taking edge orientation into account).)#" , py::arg("edge")
)
.def("GetEndTangent2d",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & , const Standard_Boolean , gp_Pnt2d & , gp_Vec2d & , const Standard_Real ) const) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & , const Standard_Boolean , gp_Pnt2d & , gp_Vec2d & , const Standard_Real ) const>(&ShapeAnalysis_Edge::GetEndTangent2d),
R"#()#" , py::arg("edge"), py::arg("face"), py::arg("atEnd"), py::arg("pos"), py::arg("tang"), py::arg("dparam")=static_cast< const Standard_Real>(0.0)
)
.def("GetEndTangent2d",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const handle<Geom_Surface> & , const TopLoc_Location & , const Standard_Boolean , gp_Pnt2d & , gp_Vec2d & , const Standard_Real ) const) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const handle<Geom_Surface> & , const TopLoc_Location & , const Standard_Boolean , gp_Pnt2d & , gp_Vec2d & , const Standard_Real ) const>(&ShapeAnalysis_Edge::GetEndTangent2d),
R"#(Returns tangent of the edge pcurve at its start (if atEnd is False) or end (if True), regarding the orientation of edge. If edge is REVERSED, tangent is reversed before return. Returns True if pcurve is available and tangent is computed and is not null, else False.)#" , py::arg("edge"), py::arg("surface"), py::arg("location"), py::arg("atEnd"), py::arg("pos"), py::arg("tang"), py::arg("dparam")=static_cast< const Standard_Real>(0.0)
)
.def("CheckVerticesWithCurve3d",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const Standard_Real , const Standard_Integer ) ) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const Standard_Real , const Standard_Integer ) >(&ShapeAnalysis_Edge::CheckVerticesWithCurve3d),
R"#(Checks the start and/or end vertex of the edge for matching with 3d curve with the given precision. <vtx> = 1 : start vertex only <vtx> = 2 : end vertex only <vtx> = 0 : both (default) If preci < 0 the vertices are considered with their own tolerances, else with the given <preci>.)#" , py::arg("edge"), py::arg("preci")=static_cast< const Standard_Real>(- 1), py::arg("vtx")=static_cast< const Standard_Integer>(0)
)
.def("CheckVerticesWithPCurve",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & , const Standard_Real , const Standard_Integer ) ) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & , const Standard_Real , const Standard_Integer ) >(&ShapeAnalysis_Edge::CheckVerticesWithPCurve),
R"#()#" , py::arg("edge"), py::arg("face"), py::arg("preci")=static_cast< const Standard_Real>(- 1), py::arg("vtx")=static_cast< const Standard_Integer>(0)
)
.def("CheckVerticesWithPCurve",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const handle<Geom_Surface> & , const TopLoc_Location & , const Standard_Real , const Standard_Integer ) ) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const handle<Geom_Surface> & , const TopLoc_Location & , const Standard_Real , const Standard_Integer ) >(&ShapeAnalysis_Edge::CheckVerticesWithPCurve),
R"#(Checks the start and/or end vertex of the edge for matching with pcurve with the given precision. <vtx> = 1 : start vertex <vtx> = 2 : end vertex <vtx> = 0 : both If preci < 0 the vertices are considered with their own tolerances, else with the given <preci>.)#" , py::arg("edge"), py::arg("surface"), py::arg("location"), py::arg("preci")=static_cast< const Standard_Real>(- 1), py::arg("vtx")=static_cast< const Standard_Integer>(0)
)
.def("CheckVertexTolerance",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & , Standard_Real & , Standard_Real & ) ) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & , Standard_Real & , Standard_Real & ) >(&ShapeAnalysis_Edge::CheckVertexTolerance),
R"#()#" , py::arg("edge"), py::arg("face"), py::arg("toler1"), py::arg("toler2")
)
.def("CheckVertexTolerance",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , Standard_Real & , Standard_Real & ) ) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , Standard_Real & , Standard_Real & ) >(&ShapeAnalysis_Edge::CheckVertexTolerance),
R"#(Checks if it is necessary to increase tolerances of the edge vertices to comprise the ends of 3d curve and pcurve on the given face (first method) or all pcurves stored in an edge (second one) toler1 returns necessary tolerance for first vertex, toler2 returns necessary tolerance for last vertex.)#" , py::arg("edge"), py::arg("toler1"), py::arg("toler2")
)
.def("CheckCurve3dWithPCurve",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & ) ) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & ) >(&ShapeAnalysis_Edge::CheckCurve3dWithPCurve),
R"#()#" , py::arg("edge"), py::arg("face")
)
.def("CheckCurve3dWithPCurve",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const handle<Geom_Surface> & , const TopLoc_Location & ) ) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const handle<Geom_Surface> & , const TopLoc_Location & ) >(&ShapeAnalysis_Edge::CheckCurve3dWithPCurve),
R"#(Checks mutual orientation of 3d curve and pcurve on the analysis of curves bounding points)#" , py::arg("edge"), py::arg("surface"), py::arg("location")
)
.def("Status",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Edge::Status),
R"#(Returns the status (in the form of True/False) of last Check)#" , py::arg("status")
)
.def("CheckSameParameter",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , Standard_Real & , const Standard_Integer ) ) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , Standard_Real & , const Standard_Integer ) >(&ShapeAnalysis_Edge::CheckSameParameter),
R"#(Checks the edge to be SameParameter. Calculates the maximal deviation between 3d curve and each pcurve of the edge on <NbControl> equidistant points (the same algorithm as in BRepCheck; default value is 23 as in BRepCheck). This deviation is returned in <maxdev> parameter. If deviation is greater than tolerance of the edge (i.e. incorrect flag) returns False, else returns True.)#" , py::arg("edge"), py::arg("maxdev"), py::arg("NbControl")=static_cast< const Standard_Integer>(23)
)
.def("CheckSameParameter",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & , Standard_Real & , const Standard_Integer ) ) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & , Standard_Real & , const Standard_Integer ) >(&ShapeAnalysis_Edge::CheckSameParameter),
R"#(Checks the edge to be SameParameter. Calculates the maximal deviation between 3d curve and each pcurve of the edge on <NbControl> equidistant points (the same algorithm as in BRepCheck; default value is 23 as in BRepCheck). This deviation is returned in <maxdev> parameter. If deviation is greater than tolerance of the edge (i.e. incorrect flag) returns False, else returns True.)#" , py::arg("theEdge"), py::arg("theFace"), py::arg("theMaxdev"), py::arg("theNbControl")=static_cast< const Standard_Integer>(23)
)
.def("CheckPCurveRange",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const Standard_Real , const Standard_Real , const handle<Geom2d_Curve> & ) ) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const Standard_Real , const Standard_Real , const handle<Geom2d_Curve> & ) >(&ShapeAnalysis_Edge::CheckPCurveRange),
R"#(Checks possibility for pcurve thePC to have range [theFirst, theLast] (edge range) having respect to real first, last parameters of thePC)#" , py::arg("theFirst"), py::arg("theLast"), py::arg("thePC")
)
.def("CheckOverlapping",
(Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Edge & , Standard_Real & , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_Edge::*)( const TopoDS_Edge & , const TopoDS_Edge & , Standard_Real & , const Standard_Real ) >(&ShapeAnalysis_Edge::CheckOverlapping),
R"#(Checks the first edge is overlapped with second edge. If distance between two edges is less then theTolOverlap edges are overlapped. theDomainDis - length of part of edges on which edges are overlapped.)#" , py::arg("theEdge1"), py::arg("theEdge2"), py::arg("theTolOverlap"), py::arg("theDomainDist")=static_cast< const Standard_Real>(0.0)
)
// 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 ShapeAnalysis_FreeBoundData from ./opencascade/ShapeAnalysis_FreeBoundData.hxx
klass = m.attr("ShapeAnalysis_FreeBoundData");
// nested enums
static_cast<py::class_<ShapeAnalysis_FreeBoundData ,opencascade::handle<ShapeAnalysis_FreeBoundData> , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Wire & >() , py::arg("freebound") )
// custom constructors
// methods
.def("Clear",
(void (ShapeAnalysis_FreeBoundData::*)() ) static_cast<void (ShapeAnalysis_FreeBoundData::*)() >(&ShapeAnalysis_FreeBoundData::Clear),
R"#(Clears all properties of the contour. Contour bound itself is not cleared.)#"
)
.def("SetFreeBound",
(void (ShapeAnalysis_FreeBoundData::*)( const TopoDS_Wire & ) ) static_cast<void (ShapeAnalysis_FreeBoundData::*)( const TopoDS_Wire & ) >(&ShapeAnalysis_FreeBoundData::SetFreeBound),
R"#(Sets contour)#" , py::arg("freebound")
)
.def("SetArea",
(void (ShapeAnalysis_FreeBoundData::*)( const Standard_Real ) ) static_cast<void (ShapeAnalysis_FreeBoundData::*)( const Standard_Real ) >(&ShapeAnalysis_FreeBoundData::SetArea),
R"#(Sets area of the contour)#" , py::arg("area")
)
.def("SetPerimeter",
(void (ShapeAnalysis_FreeBoundData::*)( const Standard_Real ) ) static_cast<void (ShapeAnalysis_FreeBoundData::*)( const Standard_Real ) >(&ShapeAnalysis_FreeBoundData::SetPerimeter),
R"#(Sets perimeter of the contour)#" , py::arg("perimeter")
)
.def("SetRatio",
(void (ShapeAnalysis_FreeBoundData::*)( const Standard_Real ) ) static_cast<void (ShapeAnalysis_FreeBoundData::*)( const Standard_Real ) >(&ShapeAnalysis_FreeBoundData::SetRatio),
R"#(Sets ratio of average length to average width of the contour)#" , py::arg("ratio")
)
.def("SetWidth",
(void (ShapeAnalysis_FreeBoundData::*)( const Standard_Real ) ) static_cast<void (ShapeAnalysis_FreeBoundData::*)( const Standard_Real ) >(&ShapeAnalysis_FreeBoundData::SetWidth),
R"#(Sets average width of the contour)#" , py::arg("width")
)
.def("AddNotch",
(void (ShapeAnalysis_FreeBoundData::*)( const TopoDS_Wire & , const Standard_Real ) ) static_cast<void (ShapeAnalysis_FreeBoundData::*)( const TopoDS_Wire & , const Standard_Real ) >(&ShapeAnalysis_FreeBoundData::AddNotch),
R"#(Adds notch on the contour with its maximum width)#" , py::arg("notch"), py::arg("width")
)
.def("FreeBound",
(TopoDS_Wire (ShapeAnalysis_FreeBoundData::*)() const) static_cast<TopoDS_Wire (ShapeAnalysis_FreeBoundData::*)() const>(&ShapeAnalysis_FreeBoundData::FreeBound),
R"#(Returns contour)#"
)
.def("Area",
(Standard_Real (ShapeAnalysis_FreeBoundData::*)() const) static_cast<Standard_Real (ShapeAnalysis_FreeBoundData::*)() const>(&ShapeAnalysis_FreeBoundData::Area),
R"#(Returns area of the contour)#"
)
.def("Perimeter",
(Standard_Real (ShapeAnalysis_FreeBoundData::*)() const) static_cast<Standard_Real (ShapeAnalysis_FreeBoundData::*)() const>(&ShapeAnalysis_FreeBoundData::Perimeter),
R"#(Returns perimeter of the contour)#"
)
.def("Ratio",
(Standard_Real (ShapeAnalysis_FreeBoundData::*)() const) static_cast<Standard_Real (ShapeAnalysis_FreeBoundData::*)() const>(&ShapeAnalysis_FreeBoundData::Ratio),
R"#(Returns ratio of average length to average width of the contour)#"
)
.def("Width",
(Standard_Real (ShapeAnalysis_FreeBoundData::*)() const) static_cast<Standard_Real (ShapeAnalysis_FreeBoundData::*)() const>(&ShapeAnalysis_FreeBoundData::Width),
R"#(Returns average width of the contour)#"
)
.def("NbNotches",
(Standard_Integer (ShapeAnalysis_FreeBoundData::*)() const) static_cast<Standard_Integer (ShapeAnalysis_FreeBoundData::*)() const>(&ShapeAnalysis_FreeBoundData::NbNotches),
R"#(Returns number of notches on the contour)#"
)
.def("Notches",
(handle<TopTools_HSequenceOfShape> (ShapeAnalysis_FreeBoundData::*)() const) static_cast<handle<TopTools_HSequenceOfShape> (ShapeAnalysis_FreeBoundData::*)() const>(&ShapeAnalysis_FreeBoundData::Notches),
R"#(Returns sequence of notches on the contour)#"
)
.def("Notch",
(TopoDS_Wire (ShapeAnalysis_FreeBoundData::*)( const Standard_Integer ) const) static_cast<TopoDS_Wire (ShapeAnalysis_FreeBoundData::*)( const Standard_Integer ) const>(&ShapeAnalysis_FreeBoundData::Notch),
R"#(Returns notch on the contour)#" , py::arg("index")
)
.def("NotchWidth",
(Standard_Real (ShapeAnalysis_FreeBoundData::*)( const Standard_Integer ) const) static_cast<Standard_Real (ShapeAnalysis_FreeBoundData::*)( const Standard_Integer ) const>(&ShapeAnalysis_FreeBoundData::NotchWidth),
R"#(Returns maximum width of notch specified by its rank number on the contour)#" , py::arg("index")
)
.def("NotchWidth",
(Standard_Real (ShapeAnalysis_FreeBoundData::*)( const TopoDS_Wire & ) const) static_cast<Standard_Real (ShapeAnalysis_FreeBoundData::*)( const TopoDS_Wire & ) const>(&ShapeAnalysis_FreeBoundData::NotchWidth),
R"#(Returns maximum width of notch specified as TopoDS_Wire on the contour)#" , py::arg("notch")
)
.def("SetFreeBound",
(void (ShapeAnalysis_FreeBoundData::*)( const TopoDS_Wire & ) ) static_cast<void (ShapeAnalysis_FreeBoundData::*)( const TopoDS_Wire & ) >(&ShapeAnalysis_FreeBoundData::SetFreeBound),
R"#(Sets contour)#" , py::arg("freebound")
)
.def("SetArea",
(void (ShapeAnalysis_FreeBoundData::*)( const Standard_Real ) ) static_cast<void (ShapeAnalysis_FreeBoundData::*)( const Standard_Real ) >(&ShapeAnalysis_FreeBoundData::SetArea),
R"#(Sets area of the contour)#" , py::arg("area")
)
.def("SetPerimeter",
(void (ShapeAnalysis_FreeBoundData::*)( const Standard_Real ) ) static_cast<void (ShapeAnalysis_FreeBoundData::*)( const Standard_Real ) >(&ShapeAnalysis_FreeBoundData::SetPerimeter),
R"#(Sets perimeter of the contour)#" , py::arg("perimeter")
)
.def("SetRatio",
(void (ShapeAnalysis_FreeBoundData::*)( const Standard_Real ) ) static_cast<void (ShapeAnalysis_FreeBoundData::*)( const Standard_Real ) >(&ShapeAnalysis_FreeBoundData::SetRatio),
R"#(Sets ratio of average length to average width of the contour)#" , py::arg("ratio")
)
.def("SetWidth",
(void (ShapeAnalysis_FreeBoundData::*)( const Standard_Real ) ) static_cast<void (ShapeAnalysis_FreeBoundData::*)( const Standard_Real ) >(&ShapeAnalysis_FreeBoundData::SetWidth),
R"#(Sets average width of the contour)#" , py::arg("width")
)
.def("FreeBound",
(TopoDS_Wire (ShapeAnalysis_FreeBoundData::*)() const) static_cast<TopoDS_Wire (ShapeAnalysis_FreeBoundData::*)() const>(&ShapeAnalysis_FreeBoundData::FreeBound),
R"#(Returns contour)#"
)
.def("Area",
(Standard_Real (ShapeAnalysis_FreeBoundData::*)() const) static_cast<Standard_Real (ShapeAnalysis_FreeBoundData::*)() const>(&ShapeAnalysis_FreeBoundData::Area),
R"#(Returns area of the contour)#"
)
.def("Perimeter",
(Standard_Real (ShapeAnalysis_FreeBoundData::*)() const) static_cast<Standard_Real (ShapeAnalysis_FreeBoundData::*)() const>(&ShapeAnalysis_FreeBoundData::Perimeter),
R"#(Returns perimeter of the contour)#"
)
.def("Ratio",
(Standard_Real (ShapeAnalysis_FreeBoundData::*)() const) static_cast<Standard_Real (ShapeAnalysis_FreeBoundData::*)() const>(&ShapeAnalysis_FreeBoundData::Ratio),
R"#(Returns ratio of average length to average width of the contour)#"
)
.def("Width",
(Standard_Real (ShapeAnalysis_FreeBoundData::*)() const) static_cast<Standard_Real (ShapeAnalysis_FreeBoundData::*)() const>(&ShapeAnalysis_FreeBoundData::Width),
R"#(Returns average width of the contour)#"
)
.def("NbNotches",
(Standard_Integer (ShapeAnalysis_FreeBoundData::*)() const) static_cast<Standard_Integer (ShapeAnalysis_FreeBoundData::*)() const>(&ShapeAnalysis_FreeBoundData::NbNotches),
R"#(Returns number of notches on the contour)#"
)
.def("Notches",
(handle<TopTools_HSequenceOfShape> (ShapeAnalysis_FreeBoundData::*)() const) static_cast<handle<TopTools_HSequenceOfShape> (ShapeAnalysis_FreeBoundData::*)() const>(&ShapeAnalysis_FreeBoundData::Notches),
R"#(Returns sequence of notches on the contour)#"
)
.def("Notch",
(TopoDS_Wire (ShapeAnalysis_FreeBoundData::*)( const Standard_Integer ) const) static_cast<TopoDS_Wire (ShapeAnalysis_FreeBoundData::*)( const Standard_Integer ) const>(&ShapeAnalysis_FreeBoundData::Notch),
R"#(Returns notch on the contour)#" , py::arg("index")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&ShapeAnalysis_FreeBoundData::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&ShapeAnalysis_FreeBoundData::get_type_descriptor),
R"#()#"
)
// 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 handle<Standard_Type> & (ShapeAnalysis_FreeBoundData::*)() const) static_cast< const handle<Standard_Type> & (ShapeAnalysis_FreeBoundData::*)() const>(&ShapeAnalysis_FreeBoundData::DynamicType),
R"#()#"
)
;
// Class ShapeAnalysis_FreeBounds from ./opencascade/ShapeAnalysis_FreeBounds.hxx
klass = m.attr("ShapeAnalysis_FreeBounds");
// nested enums
static_cast<py::class_<ShapeAnalysis_FreeBounds , shared_ptr<ShapeAnalysis_FreeBounds> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Shape &, const Standard_Real, const Standard_Boolean, const Standard_Boolean >() , py::arg("shape"), py::arg("toler"), py::arg("splitclosed")=static_cast< const Standard_Boolean>(Standard_False), py::arg("splitopen")=static_cast< const Standard_Boolean>(Standard_True) )
.def(py::init< const TopoDS_Shape &, const Standard_Boolean, const Standard_Boolean, const Standard_Boolean >() , py::arg("shape"), py::arg("splitclosed")=static_cast< const Standard_Boolean>(Standard_False), py::arg("splitopen")=static_cast< const Standard_Boolean>(Standard_True), py::arg("checkinternaledges")=static_cast< const Standard_Boolean>(Standard_False) )
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("DispatchWires_s",
(void (*)( const handle<TopTools_HSequenceOfShape> & , TopoDS_Compound & , TopoDS_Compound & ) ) static_cast<void (*)( const handle<TopTools_HSequenceOfShape> & , TopoDS_Compound & , TopoDS_Compound & ) >(&ShapeAnalysis_FreeBounds::DispatchWires),
R"#(Dispatches sequence of <wires> into two compounds <closed> for closed wires and <open> for open wires. If a compound is not empty wires are added into it.)#" , py::arg("wires"), py::arg("closed"), py::arg("open")
)
// static methods using call by reference i.s.o. return
.def_static("ConnectEdgesToWires_s",
[](TopTools_HSequenceOfShape& edges, const Standard_Real toler, const Standard_Boolean shared,TopTools_HSequenceOfShape& wires ){
handle<TopTools_HSequenceOfShape> edges_ptr; edges_ptr = &edges;
handle<TopTools_HSequenceOfShape> wires_ptr; wires_ptr = &wires;
ShapeAnalysis_FreeBounds::ConnectEdgesToWires(edges_ptr,toler,shared,wires_ptr);
if ( edges_ptr.get() != &edges ) copy_if_copy_constructible(edges, *edges_ptr);
if ( wires_ptr.get() != &wires ) copy_if_copy_constructible(wires, *wires_ptr);
},
R"#(Builds sequence of <wires> out of sequence of not sorted <edges>. Tries to build wires of maximum length. Building a wire is stopped when no edges can be connected to it at its head or at its tail.)#" , py::arg("edges"), py::arg("toler"), py::arg("shared"), py::arg("wires")
)
.def_static("ConnectWiresToWires_s",
[](TopTools_HSequenceOfShape& iwires, const Standard_Real toler, const Standard_Boolean shared,TopTools_HSequenceOfShape& owires ){
handle<TopTools_HSequenceOfShape> iwires_ptr; iwires_ptr = &iwires;
handle<TopTools_HSequenceOfShape> owires_ptr; owires_ptr = &owires;
ShapeAnalysis_FreeBounds::ConnectWiresToWires(iwires_ptr,toler,shared,owires_ptr);
if ( iwires_ptr.get() != &iwires ) copy_if_copy_constructible(iwires, *iwires_ptr);
if ( owires_ptr.get() != &owires ) copy_if_copy_constructible(owires, *owires_ptr);
},
R"#()#" , py::arg("iwires"), py::arg("toler"), py::arg("shared"), py::arg("owires")
)
.def_static("ConnectWiresToWires_s",
[](TopTools_HSequenceOfShape& iwires, const Standard_Real toler, const Standard_Boolean shared,TopTools_HSequenceOfShape& owires,TopTools_DataMapOfShapeShape & vertices ){
handle<TopTools_HSequenceOfShape> iwires_ptr; iwires_ptr = &iwires;
handle<TopTools_HSequenceOfShape> owires_ptr; owires_ptr = &owires;
ShapeAnalysis_FreeBounds::ConnectWiresToWires(iwires_ptr,toler,shared,owires_ptr,vertices);
if ( iwires_ptr.get() != &iwires ) copy_if_copy_constructible(iwires, *iwires_ptr);
if ( owires_ptr.get() != &owires ) copy_if_copy_constructible(owires, *owires_ptr);
},
R"#(Builds sequence of <owires> out of sequence of not sorted <iwires>. Tries to build wires of maximum length. Building a wire is stopped when no wires can be connected to it at its head or at its tail.)#" , py::arg("iwires"), py::arg("toler"), py::arg("shared"), py::arg("owires"), py::arg("vertices")
)
.def_static("SplitWires_s",
[]( const handle<TopTools_HSequenceOfShape> & wires, const Standard_Real toler, const Standard_Boolean shared,TopTools_HSequenceOfShape& closed,TopTools_HSequenceOfShape& open ){
handle<TopTools_HSequenceOfShape> closed_ptr; closed_ptr = &closed;
handle<TopTools_HSequenceOfShape> open_ptr; open_ptr = &open;
ShapeAnalysis_FreeBounds::SplitWires(wires,toler,shared,closed_ptr,open_ptr);
if ( closed_ptr.get() != &closed ) copy_if_copy_constructible(closed, *closed_ptr);
if ( open_ptr.get() != &open ) copy_if_copy_constructible(open, *open_ptr);
},
R"#(Extracts closed sub-wires out of <wires> and adds them to <closed>, open wires remained after extraction are put into <open>. If <shared> is True extraction is performed only when edges share the same vertex. If <shared> is False connection is performed only when ends of the edges are at distance less than <toler>.)#" , py::arg("wires"), py::arg("toler"), py::arg("shared"), py::arg("closed"), py::arg("open")
)
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("GetClosedWires",
( const TopoDS_Compound & (ShapeAnalysis_FreeBounds::*)() const) static_cast< const TopoDS_Compound & (ShapeAnalysis_FreeBounds::*)() const>(&ShapeAnalysis_FreeBounds::GetClosedWires),
R"#(Returns compound of closed wires out of free edges.)#"
)
.def("GetOpenWires",
( const TopoDS_Compound & (ShapeAnalysis_FreeBounds::*)() const) static_cast< const TopoDS_Compound & (ShapeAnalysis_FreeBounds::*)() const>(&ShapeAnalysis_FreeBounds::GetOpenWires),
R"#(Returns compound of open wires out of free edges.)#"
)
.def("GetClosedWires",
( const TopoDS_Compound & (ShapeAnalysis_FreeBounds::*)() const) static_cast< const TopoDS_Compound & (ShapeAnalysis_FreeBounds::*)() const>(&ShapeAnalysis_FreeBounds::GetClosedWires),
R"#(Returns compound of closed wires out of free edges.)#"
)
.def("GetOpenWires",
( const TopoDS_Compound & (ShapeAnalysis_FreeBounds::*)() const) static_cast< const TopoDS_Compound & (ShapeAnalysis_FreeBounds::*)() const>(&ShapeAnalysis_FreeBounds::GetOpenWires),
R"#(Returns compound of open wires out of free edges.)#"
)
;
// Class ShapeAnalysis_FreeBoundsProperties from ./opencascade/ShapeAnalysis_FreeBoundsProperties.hxx
klass = m.attr("ShapeAnalysis_FreeBoundsProperties");
// nested enums
static_cast<py::class_<ShapeAnalysis_FreeBoundsProperties , shared_ptr<ShapeAnalysis_FreeBoundsProperties> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Shape &, const Standard_Real, const Standard_Boolean, const Standard_Boolean >() , py::arg("shape"), py::arg("tolerance"), py::arg("splitclosed")=static_cast< const Standard_Boolean>(Standard_False), py::arg("splitopen")=static_cast< const Standard_Boolean>(Standard_False) )
.def(py::init< const TopoDS_Shape &, const Standard_Boolean, const Standard_Boolean >() , py::arg("shape"), py::arg("splitclosed")=static_cast< const Standard_Boolean>(Standard_False), py::arg("splitopen")=static_cast< const Standard_Boolean>(Standard_False) )
// custom constructors
// methods
.def("Init",
(void (ShapeAnalysis_FreeBoundsProperties::*)( const TopoDS_Shape & , const Standard_Real , const Standard_Boolean , const Standard_Boolean ) ) static_cast<void (ShapeAnalysis_FreeBoundsProperties::*)( const TopoDS_Shape & , const Standard_Real , const Standard_Boolean , const Standard_Boolean ) >(&ShapeAnalysis_FreeBoundsProperties::Init),
R"#(Initializes the object with given parameters. <shape> should be a compound of faces.)#" , py::arg("shape"), py::arg("tolerance"), py::arg("splitclosed")=static_cast< const Standard_Boolean>(Standard_False), py::arg("splitopen")=static_cast< const Standard_Boolean>(Standard_False)
)
.def("Init",
(void (ShapeAnalysis_FreeBoundsProperties::*)( const TopoDS_Shape & , const Standard_Boolean , const Standard_Boolean ) ) static_cast<void (ShapeAnalysis_FreeBoundsProperties::*)( const TopoDS_Shape & , const Standard_Boolean , const Standard_Boolean ) >(&ShapeAnalysis_FreeBoundsProperties::Init),
R"#(Initializes the object with given parameters. <shape> should be a compound of shells.)#" , py::arg("shape"), py::arg("splitclosed")=static_cast< const Standard_Boolean>(Standard_False), py::arg("splitopen")=static_cast< const Standard_Boolean>(Standard_False)
)
.def("Perform",
(Standard_Boolean (ShapeAnalysis_FreeBoundsProperties::*)() ) static_cast<Standard_Boolean (ShapeAnalysis_FreeBoundsProperties::*)() >(&ShapeAnalysis_FreeBoundsProperties::Perform),
R"#(Builds and analyzes free bounds of the shape. First calls ShapeAnalysis_FreeBounds for building free bounds. Then on each free bound computes its properties: - area of the contour, - perimeter of the contour, - ratio of average length to average width of the contour, - average width of contour, - notches on the contour and for each notch - maximum width of the notch.)#"
)
.def("IsLoaded",
(Standard_Boolean (ShapeAnalysis_FreeBoundsProperties::*)() const) static_cast<Standard_Boolean (ShapeAnalysis_FreeBoundsProperties::*)() const>(&ShapeAnalysis_FreeBoundsProperties::IsLoaded),
R"#(Returns True if shape is loaded)#"
)
.def("Shape",
(TopoDS_Shape (ShapeAnalysis_FreeBoundsProperties::*)() const) static_cast<TopoDS_Shape (ShapeAnalysis_FreeBoundsProperties::*)() const>(&ShapeAnalysis_FreeBoundsProperties::Shape),
R"#(Returns shape)#"
)
.def("Tolerance",
(Standard_Real (ShapeAnalysis_FreeBoundsProperties::*)() const) static_cast<Standard_Real (ShapeAnalysis_FreeBoundsProperties::*)() const>(&ShapeAnalysis_FreeBoundsProperties::Tolerance),
R"#(Returns tolerance)#"
)
.def("NbFreeBounds",
(Standard_Integer (ShapeAnalysis_FreeBoundsProperties::*)() const) static_cast<Standard_Integer (ShapeAnalysis_FreeBoundsProperties::*)() const>(&ShapeAnalysis_FreeBoundsProperties::NbFreeBounds),
R"#(Returns number of free bounds)#"
)
.def("NbClosedFreeBounds",
(Standard_Integer (ShapeAnalysis_FreeBoundsProperties::*)() const) static_cast<Standard_Integer (ShapeAnalysis_FreeBoundsProperties::*)() const>(&ShapeAnalysis_FreeBoundsProperties::NbClosedFreeBounds),
R"#(Returns number of closed free bounds)#"
)
.def("NbOpenFreeBounds",
(Standard_Integer (ShapeAnalysis_FreeBoundsProperties::*)() const) static_cast<Standard_Integer (ShapeAnalysis_FreeBoundsProperties::*)() const>(&ShapeAnalysis_FreeBoundsProperties::NbOpenFreeBounds),
R"#(Returns number of open free bounds)#"
)
.def("ClosedFreeBounds",
(handle<ShapeAnalysis_HSequenceOfFreeBounds> (ShapeAnalysis_FreeBoundsProperties::*)() const) static_cast<handle<ShapeAnalysis_HSequenceOfFreeBounds> (ShapeAnalysis_FreeBoundsProperties::*)() const>(&ShapeAnalysis_FreeBoundsProperties::ClosedFreeBounds),
R"#(Returns all closed free bounds)#"
)
.def("OpenFreeBounds",
(handle<ShapeAnalysis_HSequenceOfFreeBounds> (ShapeAnalysis_FreeBoundsProperties::*)() const) static_cast<handle<ShapeAnalysis_HSequenceOfFreeBounds> (ShapeAnalysis_FreeBoundsProperties::*)() const>(&ShapeAnalysis_FreeBoundsProperties::OpenFreeBounds),
R"#(Returns all open free bounds)#"
)
.def("ClosedFreeBound",
(handle<ShapeAnalysis_FreeBoundData> (ShapeAnalysis_FreeBoundsProperties::*)( const Standard_Integer ) const) static_cast<handle<ShapeAnalysis_FreeBoundData> (ShapeAnalysis_FreeBoundsProperties::*)( const Standard_Integer ) const>(&ShapeAnalysis_FreeBoundsProperties::ClosedFreeBound),
R"#(Returns properties of closed free bound specified by its rank number)#" , py::arg("index")
)
.def("OpenFreeBound",
(handle<ShapeAnalysis_FreeBoundData> (ShapeAnalysis_FreeBoundsProperties::*)( const Standard_Integer ) const) static_cast<handle<ShapeAnalysis_FreeBoundData> (ShapeAnalysis_FreeBoundsProperties::*)( const Standard_Integer ) const>(&ShapeAnalysis_FreeBoundsProperties::OpenFreeBound),
R"#(Returns properties of open free bound specified by its rank number)#" , py::arg("index")
)
.def("DispatchBounds",
(Standard_Boolean (ShapeAnalysis_FreeBoundsProperties::*)() ) static_cast<Standard_Boolean (ShapeAnalysis_FreeBoundsProperties::*)() >(&ShapeAnalysis_FreeBoundsProperties::DispatchBounds),
R"#()#"
)
.def("CheckContours",
(Standard_Boolean (ShapeAnalysis_FreeBoundsProperties::*)( const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_FreeBoundsProperties::*)( const Standard_Real ) >(&ShapeAnalysis_FreeBoundsProperties::CheckContours),
R"#()#" , py::arg("prec")=static_cast< const Standard_Real>(0.0)
)
.def("CheckNotches",
(Standard_Boolean (ShapeAnalysis_FreeBoundsProperties::*)( const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_FreeBoundsProperties::*)( const Standard_Real ) >(&ShapeAnalysis_FreeBoundsProperties::CheckNotches),
R"#()#" , py::arg("prec")=static_cast< const Standard_Real>(0.0)
)
.def("CheckNotches",
(Standard_Boolean (ShapeAnalysis_FreeBoundsProperties::*)( handle<ShapeAnalysis_FreeBoundData> & , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_FreeBoundsProperties::*)( handle<ShapeAnalysis_FreeBoundData> & , const Standard_Real ) >(&ShapeAnalysis_FreeBoundsProperties::CheckNotches),
R"#()#" , py::arg("fbData"), py::arg("prec")=static_cast< const Standard_Real>(0.0)
)
.def("CheckNotches",
(Standard_Boolean (ShapeAnalysis_FreeBoundsProperties::*)( const TopoDS_Wire & , const Standard_Integer , TopoDS_Wire & , Standard_Real & , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_FreeBoundsProperties::*)( const TopoDS_Wire & , const Standard_Integer , TopoDS_Wire & , Standard_Real & , const Standard_Real ) >(&ShapeAnalysis_FreeBoundsProperties::CheckNotches),
R"#()#" , py::arg("freebound"), py::arg("num"), py::arg("notch"), py::arg("distMax"), py::arg("prec")=static_cast< const Standard_Real>(0.0)
)
.def("FillProperties",
(Standard_Boolean (ShapeAnalysis_FreeBoundsProperties::*)( handle<ShapeAnalysis_FreeBoundData> & , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_FreeBoundsProperties::*)( handle<ShapeAnalysis_FreeBoundData> & , const Standard_Real ) >(&ShapeAnalysis_FreeBoundsProperties::FillProperties),
R"#()#" , py::arg("fbData"), py::arg("prec")=static_cast< const Standard_Real>(0.0)
)
.def("Shape",
(TopoDS_Shape (ShapeAnalysis_FreeBoundsProperties::*)() const) static_cast<TopoDS_Shape (ShapeAnalysis_FreeBoundsProperties::*)() const>(&ShapeAnalysis_FreeBoundsProperties::Shape),
R"#(Returns shape)#"
)
.def("IsLoaded",
(Standard_Boolean (ShapeAnalysis_FreeBoundsProperties::*)() const) static_cast<Standard_Boolean (ShapeAnalysis_FreeBoundsProperties::*)() const>(&ShapeAnalysis_FreeBoundsProperties::IsLoaded),
R"#(Returns True if shape is loaded)#"
)
.def("Tolerance",
(Standard_Real (ShapeAnalysis_FreeBoundsProperties::*)() const) static_cast<Standard_Real (ShapeAnalysis_FreeBoundsProperties::*)() const>(&ShapeAnalysis_FreeBoundsProperties::Tolerance),
R"#(Returns tolerance)#"
)
.def("NbFreeBounds",
(Standard_Integer (ShapeAnalysis_FreeBoundsProperties::*)() const) static_cast<Standard_Integer (ShapeAnalysis_FreeBoundsProperties::*)() const>(&ShapeAnalysis_FreeBoundsProperties::NbFreeBounds),
R"#(Returns number of free bounds)#"
)
.def("NbClosedFreeBounds",
(Standard_Integer (ShapeAnalysis_FreeBoundsProperties::*)() const) static_cast<Standard_Integer (ShapeAnalysis_FreeBoundsProperties::*)() const>(&ShapeAnalysis_FreeBoundsProperties::NbClosedFreeBounds),
R"#(Returns number of closed free bounds)#"
)
.def("NbOpenFreeBounds",
(Standard_Integer (ShapeAnalysis_FreeBoundsProperties::*)() const) static_cast<Standard_Integer (ShapeAnalysis_FreeBoundsProperties::*)() const>(&ShapeAnalysis_FreeBoundsProperties::NbOpenFreeBounds),
R"#(Returns number of open free bounds)#"
)
.def("ClosedFreeBounds",
(handle<ShapeAnalysis_HSequenceOfFreeBounds> (ShapeAnalysis_FreeBoundsProperties::*)() const) static_cast<handle<ShapeAnalysis_HSequenceOfFreeBounds> (ShapeAnalysis_FreeBoundsProperties::*)() const>(&ShapeAnalysis_FreeBoundsProperties::ClosedFreeBounds),
R"#(Returns all closed free bounds)#"
)
.def("OpenFreeBounds",
(handle<ShapeAnalysis_HSequenceOfFreeBounds> (ShapeAnalysis_FreeBoundsProperties::*)() const) static_cast<handle<ShapeAnalysis_HSequenceOfFreeBounds> (ShapeAnalysis_FreeBoundsProperties::*)() const>(&ShapeAnalysis_FreeBoundsProperties::OpenFreeBounds),
R"#(Returns all open free bounds)#"
)
.def("ClosedFreeBound",
(handle<ShapeAnalysis_FreeBoundData> (ShapeAnalysis_FreeBoundsProperties::*)( const Standard_Integer ) const) static_cast<handle<ShapeAnalysis_FreeBoundData> (ShapeAnalysis_FreeBoundsProperties::*)( const Standard_Integer ) const>(&ShapeAnalysis_FreeBoundsProperties::ClosedFreeBound),
R"#(Returns properties of closed free bound specified by its rank number)#" , py::arg("index")
)
.def("OpenFreeBound",
(handle<ShapeAnalysis_FreeBoundData> (ShapeAnalysis_FreeBoundsProperties::*)( const Standard_Integer ) const) static_cast<handle<ShapeAnalysis_FreeBoundData> (ShapeAnalysis_FreeBoundsProperties::*)( const Standard_Integer ) const>(&ShapeAnalysis_FreeBoundsProperties::OpenFreeBound),
R"#(Returns properties of open free bound specified by its rank number)#" , py::arg("index")
)
// 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 ShapeAnalysis_Geom from ./opencascade/ShapeAnalysis_Geom.hxx
klass = m.attr("ShapeAnalysis_Geom");
// default constructor
register_default_constructor<ShapeAnalysis_Geom , shared_ptr<ShapeAnalysis_Geom>>(m,"ShapeAnalysis_Geom");
// nested enums
static_cast<py::class_<ShapeAnalysis_Geom , shared_ptr<ShapeAnalysis_Geom> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("NearestPlane_s",
(Standard_Boolean (*)( const TColgp_Array1OfPnt & , gp_Pln & , Standard_Real & ) ) static_cast<Standard_Boolean (*)( const TColgp_Array1OfPnt & , gp_Pln & , Standard_Real & ) >(&ShapeAnalysis_Geom::NearestPlane),
R"#(Builds a plane out of a set of points in array Returns in <dmax> the maximal distance between the produced plane and given points)#" , py::arg("Pnts"), py::arg("aPln"), py::arg("Dmax")
)
.def_static("PositionTrsf_s",
(Standard_Boolean (*)( const handle<TColStd_HArray2OfReal> & , gp_Trsf & , const Standard_Real , const Standard_Real ) ) static_cast<Standard_Boolean (*)( const handle<TColStd_HArray2OfReal> & , gp_Trsf & , const Standard_Real , const Standard_Real ) >(&ShapeAnalysis_Geom::PositionTrsf),
R"#(Builds transformation object out of matrix. Matrix must be 3 x 4. Unit is used as multiplier.)#" , py::arg("coefs"), py::arg("trsf"), py::arg("unit"), py::arg("prec")
)
// 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 ShapeAnalysis_HSequenceOfFreeBounds from ./opencascade/ShapeAnalysis_HSequenceOfFreeBounds.hxx
klass = m.attr("ShapeAnalysis_HSequenceOfFreeBounds");
// nested enums
static_cast<py::class_<ShapeAnalysis_HSequenceOfFreeBounds ,opencascade::handle<ShapeAnalysis_HSequenceOfFreeBounds> , ShapeAnalysis_SequenceOfFreeBounds , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const ShapeAnalysis_SequenceOfFreeBounds & >() , py::arg("theOther") )
// custom constructors
// methods
.def("Append",
(void (ShapeAnalysis_HSequenceOfFreeBounds::*)( const typename NCollection_Sequence<opencascade::handle<ShapeAnalysis_FreeBoundData>>::value_type & ) ) static_cast<void (ShapeAnalysis_HSequenceOfFreeBounds::*)( const typename NCollection_Sequence<opencascade::handle<ShapeAnalysis_FreeBoundData>>::value_type & ) >(&ShapeAnalysis_HSequenceOfFreeBounds::Append),
R"#()#" , py::arg("theItem")
)
.def("Append",
(void (ShapeAnalysis_HSequenceOfFreeBounds::*)( ShapeAnalysis_SequenceOfFreeBounds & ) ) static_cast<void (ShapeAnalysis_HSequenceOfFreeBounds::*)( ShapeAnalysis_SequenceOfFreeBounds & ) >(&ShapeAnalysis_HSequenceOfFreeBounds::Append),
R"#()#" , py::arg("theSequence")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&ShapeAnalysis_HSequenceOfFreeBounds::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&ShapeAnalysis_HSequenceOfFreeBounds::get_type_descriptor),
R"#()#"
)
// 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("Sequence",
( const ShapeAnalysis_SequenceOfFreeBounds & (ShapeAnalysis_HSequenceOfFreeBounds::*)() const) static_cast< const ShapeAnalysis_SequenceOfFreeBounds & (ShapeAnalysis_HSequenceOfFreeBounds::*)() const>(&ShapeAnalysis_HSequenceOfFreeBounds::Sequence),
R"#()#"
)
.def("ChangeSequence",
(ShapeAnalysis_SequenceOfFreeBounds & (ShapeAnalysis_HSequenceOfFreeBounds::*)() ) static_cast<ShapeAnalysis_SequenceOfFreeBounds & (ShapeAnalysis_HSequenceOfFreeBounds::*)() >(&ShapeAnalysis_HSequenceOfFreeBounds::ChangeSequence),
R"#()#"
, py::return_value_policy::reference_internal
)
.def("DynamicType",
( const handle<Standard_Type> & (ShapeAnalysis_HSequenceOfFreeBounds::*)() const) static_cast< const handle<Standard_Type> & (ShapeAnalysis_HSequenceOfFreeBounds::*)() const>(&ShapeAnalysis_HSequenceOfFreeBounds::DynamicType),
R"#()#"
)
;
// Class ShapeAnalysis_ShapeContents from ./opencascade/ShapeAnalysis_ShapeContents.hxx
klass = m.attr("ShapeAnalysis_ShapeContents");
// nested enums
static_cast<py::class_<ShapeAnalysis_ShapeContents , shared_ptr<ShapeAnalysis_ShapeContents> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Clear",
(void (ShapeAnalysis_ShapeContents::*)() ) static_cast<void (ShapeAnalysis_ShapeContents::*)() >(&ShapeAnalysis_ShapeContents::Clear),
R"#(Clears all accumulated statistics)#"
)
.def("ClearFlags",
(void (ShapeAnalysis_ShapeContents::*)() ) static_cast<void (ShapeAnalysis_ShapeContents::*)() >(&ShapeAnalysis_ShapeContents::ClearFlags),
R"#(Clears all flags)#"
)
.def("Perform",
(void (ShapeAnalysis_ShapeContents::*)( const TopoDS_Shape & ) ) static_cast<void (ShapeAnalysis_ShapeContents::*)( const TopoDS_Shape & ) >(&ShapeAnalysis_ShapeContents::Perform),
R"#(Counts quantities of sun-shapes in shape and stores sub-shapes according to flags)#" , py::arg("shape")
)
.def("NbSolids",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbSolids),
R"#()#"
)
.def("NbShells",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbShells),
R"#()#"
)
.def("NbFaces",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbFaces),
R"#()#"
)
.def("NbWires",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbWires),
R"#()#"
)
.def("NbEdges",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbEdges),
R"#()#"
)
.def("NbVertices",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbVertices),
R"#()#"
)
.def("NbSolidsWithVoids",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbSolidsWithVoids),
R"#()#"
)
.def("NbBigSplines",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbBigSplines),
R"#()#"
)
.def("NbC0Surfaces",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbC0Surfaces),
R"#()#"
)
.def("NbC0Curves",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbC0Curves),
R"#()#"
)
.def("NbOffsetSurf",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbOffsetSurf),
R"#()#"
)
.def("NbIndirectSurf",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbIndirectSurf),
R"#()#"
)
.def("NbOffsetCurves",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbOffsetCurves),
R"#()#"
)
.def("NbTrimmedCurve2d",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbTrimmedCurve2d),
R"#()#"
)
.def("NbTrimmedCurve3d",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbTrimmedCurve3d),
R"#()#"
)
.def("NbBSplibeSurf",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbBSplibeSurf),
R"#()#"
)
.def("NbBezierSurf",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbBezierSurf),
R"#()#"
)
.def("NbTrimSurf",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbTrimSurf),
R"#()#"
)
.def("NbWireWitnSeam",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbWireWitnSeam),
R"#()#"
)
.def("NbWireWithSevSeams",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbWireWithSevSeams),
R"#()#"
)
.def("NbFaceWithSevWires",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbFaceWithSevWires),
R"#()#"
)
.def("NbNoPCurve",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbNoPCurve),
R"#()#"
)
.def("NbFreeFaces",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbFreeFaces),
R"#()#"
)
.def("NbFreeWires",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbFreeWires),
R"#()#"
)
.def("NbFreeEdges",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbFreeEdges),
R"#()#"
)
.def("NbSharedSolids",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbSharedSolids),
R"#()#"
)
.def("NbSharedShells",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbSharedShells),
R"#()#"
)
.def("NbSharedFaces",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbSharedFaces),
R"#()#"
)
.def("NbSharedWires",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbSharedWires),
R"#()#"
)
.def("NbSharedFreeWires",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbSharedFreeWires),
R"#()#"
)
.def("NbSharedFreeEdges",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbSharedFreeEdges),
R"#()#"
)
.def("NbSharedEdges",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbSharedEdges),
R"#()#"
)
.def("NbSharedVertices",
(Standard_Integer (ShapeAnalysis_ShapeContents::*)() const) static_cast<Standard_Integer (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::NbSharedVertices),
R"#()#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def_property("ModifyBigSplineMode",
[](ShapeAnalysis_ShapeContents& self){return self.ModifyBigSplineMode();} ,
[](ShapeAnalysis_ShapeContents& self, Standard_Boolean val){self.ModifyBigSplineMode() = val;}, R"#(Returns (modifiable) the flag which defines whether to store faces with edges if its 3D curves has more than 8192 poles.)#"
)
.def_property("ModifyIndirectMode",
[](ShapeAnalysis_ShapeContents& self){return self.ModifyIndirectMode();} ,
[](ShapeAnalysis_ShapeContents& self, Standard_Boolean val){self.ModifyIndirectMode() = val;}, R"#(Returns (modifiable) the flag which defines whether to store faces on indirect surfaces.)#"
)
.def_property("ModifyOffsetSurfaceMode",
[](ShapeAnalysis_ShapeContents& self){return self.ModifyOffsetSurfaceMode();} ,
[](ShapeAnalysis_ShapeContents& self, Standard_Boolean val){self.ModifyOffsetSurfaceMode() = val;}, R"#(Returns (modifiable) the flag which defines whether to store faces on offset surfaces.)#"
)
.def_property("ModifyTrimmed3dMode",
[](ShapeAnalysis_ShapeContents& self){return self.ModifyTrimmed3dMode();} ,
[](ShapeAnalysis_ShapeContents& self, Standard_Boolean val){self.ModifyTrimmed3dMode() = val;}, R"#(Returns (modifiable) the flag which defines whether to store faces with edges if its 3D curves are trimmed curves)#"
)
.def_property("ModifyOffsetCurveMode",
[](ShapeAnalysis_ShapeContents& self){return self.ModifyOffsetCurveMode();} ,
[](ShapeAnalysis_ShapeContents& self, Standard_Boolean val){self.ModifyOffsetCurveMode() = val;}, R"#(Returns (modifiable) the flag which defines whether to store faces with edges if its 3D curves and pcurves are offset curves)#"
)
.def_property("ModifyTrimmed2dMode",
[](ShapeAnalysis_ShapeContents& self){return self.ModifyTrimmed2dMode();} ,
[](ShapeAnalysis_ShapeContents& self, Standard_Boolean val){self.ModifyTrimmed2dMode() = val;}, R"#(Returns (modifiable) the flag which defines whether to store faces with edges if its pcurves are trimmed curves)#"
)
.def("BigSplineSec",
( const handle<TopTools_HSequenceOfShape> & (ShapeAnalysis_ShapeContents::*)() const) static_cast< const handle<TopTools_HSequenceOfShape> & (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::BigSplineSec),
R"#()#"
)
.def("IndirectSec",
( const handle<TopTools_HSequenceOfShape> & (ShapeAnalysis_ShapeContents::*)() const) static_cast< const handle<TopTools_HSequenceOfShape> & (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::IndirectSec),
R"#()#"
)
.def("OffsetSurfaceSec",
( const handle<TopTools_HSequenceOfShape> & (ShapeAnalysis_ShapeContents::*)() const) static_cast< const handle<TopTools_HSequenceOfShape> & (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::OffsetSurfaceSec),
R"#()#"
)
.def("Trimmed3dSec",
( const handle<TopTools_HSequenceOfShape> & (ShapeAnalysis_ShapeContents::*)() const) static_cast< const handle<TopTools_HSequenceOfShape> & (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::Trimmed3dSec),
R"#()#"
)
.def("OffsetCurveSec",
( const handle<TopTools_HSequenceOfShape> & (ShapeAnalysis_ShapeContents::*)() const) static_cast< const handle<TopTools_HSequenceOfShape> & (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::OffsetCurveSec),
R"#()#"
)
.def("Trimmed2dSec",
( const handle<TopTools_HSequenceOfShape> & (ShapeAnalysis_ShapeContents::*)() const) static_cast< const handle<TopTools_HSequenceOfShape> & (ShapeAnalysis_ShapeContents::*)() const>(&ShapeAnalysis_ShapeContents::Trimmed2dSec),
R"#()#"
)
.def_property("ModifyOffestSurfaceMode",
[](ShapeAnalysis_ShapeContents& self){return self.ModifyOffestSurfaceMode();} ,
[](ShapeAnalysis_ShapeContents& self, Standard_Boolean val){self.ModifyOffestSurfaceMode() = val;}, R"#()#"
)
;
// Class ShapeAnalysis_ShapeTolerance from ./opencascade/ShapeAnalysis_ShapeTolerance.hxx
klass = m.attr("ShapeAnalysis_ShapeTolerance");
// nested enums
static_cast<py::class_<ShapeAnalysis_ShapeTolerance , shared_ptr<ShapeAnalysis_ShapeTolerance> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Tolerance",
(Standard_Real (ShapeAnalysis_ShapeTolerance::*)( const TopoDS_Shape & , const Standard_Integer , const TopAbs_ShapeEnum ) ) static_cast<Standard_Real (ShapeAnalysis_ShapeTolerance::*)( const TopoDS_Shape & , const Standard_Integer , const TopAbs_ShapeEnum ) >(&ShapeAnalysis_ShapeTolerance::Tolerance),
R"#(Determines a tolerance from the ones stored in a shape Remark : calls InitTolerance and AddTolerance, hence, can be used to start a series for cumulating tolerance <mode> = 0 : returns the average value between sub-shapes, <mode> > 0 : returns the maximal found, <mode> < 0 : returns the minimal found. <type> defines what kinds of sub-shapes to consider: SHAPE (default) : all : VERTEX, EDGE, FACE, VERTEX : only vertices, EDGE : only edges, FACE : only faces, SHELL : combined SHELL + FACE, for each face (and containing shell), also checks EDGE and VERTEX)#" , py::arg("shape"), py::arg("mode"), py::arg("type")=static_cast< const TopAbs_ShapeEnum>(TopAbs_SHAPE)
)
.def("OverTolerance",
(handle<TopTools_HSequenceOfShape> (ShapeAnalysis_ShapeTolerance::*)( const TopoDS_Shape & , const Standard_Real , const TopAbs_ShapeEnum ) const) static_cast<handle<TopTools_HSequenceOfShape> (ShapeAnalysis_ShapeTolerance::*)( const TopoDS_Shape & , const Standard_Real , const TopAbs_ShapeEnum ) const>(&ShapeAnalysis_ShapeTolerance::OverTolerance),
R"#(Determines which shapes have a tolerance over the given value <type> is interpreted as in the method Tolerance)#" , py::arg("shape"), py::arg("value"), py::arg("type")=static_cast< const TopAbs_ShapeEnum>(TopAbs_SHAPE)
)
.def("InTolerance",
(handle<TopTools_HSequenceOfShape> (ShapeAnalysis_ShapeTolerance::*)( const TopoDS_Shape & , const Standard_Real , const Standard_Real , const TopAbs_ShapeEnum ) const) static_cast<handle<TopTools_HSequenceOfShape> (ShapeAnalysis_ShapeTolerance::*)( const TopoDS_Shape & , const Standard_Real , const Standard_Real , const TopAbs_ShapeEnum ) const>(&ShapeAnalysis_ShapeTolerance::InTolerance),
R"#(Determines which shapes have a tolerance within a given interval <type> is interpreted as in the method Tolerance)#" , py::arg("shape"), py::arg("valmin"), py::arg("valmax"), py::arg("type")=static_cast< const TopAbs_ShapeEnum>(TopAbs_SHAPE)
)
.def("InitTolerance",
(void (ShapeAnalysis_ShapeTolerance::*)() ) static_cast<void (ShapeAnalysis_ShapeTolerance::*)() >(&ShapeAnalysis_ShapeTolerance::InitTolerance),
R"#(Initializes computation of cumulated tolerance)#"
)
.def("AddTolerance",
(void (ShapeAnalysis_ShapeTolerance::*)( const TopoDS_Shape & , const TopAbs_ShapeEnum ) ) static_cast<void (ShapeAnalysis_ShapeTolerance::*)( const TopoDS_Shape & , const TopAbs_ShapeEnum ) >(&ShapeAnalysis_ShapeTolerance::AddTolerance),
R"#(Adds data on new Shape to compute Cumulated Tolerance (prepares three computations : maximal, average, minimal))#" , py::arg("shape"), py::arg("type")=static_cast< const TopAbs_ShapeEnum>(TopAbs_SHAPE)
)
.def("GlobalTolerance",
(Standard_Real (ShapeAnalysis_ShapeTolerance::*)( const Standard_Integer ) const) static_cast<Standard_Real (ShapeAnalysis_ShapeTolerance::*)( const Standard_Integer ) const>(&ShapeAnalysis_ShapeTolerance::GlobalTolerance),
R"#(Returns the computed tolerance according to the <mode> <mode> = 0 : average <mode> > 0 : maximal <mode> < 0 : minimal)#" , py::arg("mode")
)
// 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 ShapeAnalysis_Shell from ./opencascade/ShapeAnalysis_Shell.hxx
klass = m.attr("ShapeAnalysis_Shell");
// nested enums
static_cast<py::class_<ShapeAnalysis_Shell , shared_ptr<ShapeAnalysis_Shell> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Clear",
(void (ShapeAnalysis_Shell::*)() ) static_cast<void (ShapeAnalysis_Shell::*)() >(&ShapeAnalysis_Shell::Clear),
R"#(Clears data about loaded shells and performed checks)#"
)
.def("LoadShells",
(void (ShapeAnalysis_Shell::*)( const TopoDS_Shape & ) ) static_cast<void (ShapeAnalysis_Shell::*)( const TopoDS_Shape & ) >(&ShapeAnalysis_Shell::LoadShells),
R"#(Adds shells contained in the <shape> to the list of loaded shells)#" , py::arg("shape")
)
.def("CheckOrientedShells",
(Standard_Boolean (ShapeAnalysis_Shell::*)( const TopoDS_Shape & , const Standard_Boolean , const Standard_Boolean ) ) static_cast<Standard_Boolean (ShapeAnalysis_Shell::*)( const TopoDS_Shape & , const Standard_Boolean , const Standard_Boolean ) >(&ShapeAnalysis_Shell::CheckOrientedShells),
R"#(Checks if shells fulfill orientation condition, i.e. if each edge is, either present once (free edge) or twice (connected edge) but with different orientations (FORWARD/REVERSED) Edges which do not fulfill these conditions are bad)#" , py::arg("shape"), py::arg("alsofree")=static_cast< const Standard_Boolean>(Standard_False), py::arg("checkinternaledges")=static_cast< const Standard_Boolean>(Standard_False)
)
.def("IsLoaded",
(Standard_Boolean (ShapeAnalysis_Shell::*)( const TopoDS_Shape & ) const) static_cast<Standard_Boolean (ShapeAnalysis_Shell::*)( const TopoDS_Shape & ) const>(&ShapeAnalysis_Shell::IsLoaded),
R"#(Tells if a shape is loaded (only shells are checked))#" , py::arg("shape")
)
.def("NbLoaded",
(Standard_Integer (ShapeAnalysis_Shell::*)() const) static_cast<Standard_Integer (ShapeAnalysis_Shell::*)() const>(&ShapeAnalysis_Shell::NbLoaded),
R"#(Returns the actual number of loaded shapes (i.e. shells))#"
)
.def("Loaded",
(TopoDS_Shape (ShapeAnalysis_Shell::*)( const Standard_Integer ) const) static_cast<TopoDS_Shape (ShapeAnalysis_Shell::*)( const Standard_Integer ) const>(&ShapeAnalysis_Shell::Loaded),
R"#(Returns a loaded shape specified by its rank number. Returns null shape if <num> is out of range)#" , py::arg("num")
)
.def("HasBadEdges",
(Standard_Boolean (ShapeAnalysis_Shell::*)() const) static_cast<Standard_Boolean (ShapeAnalysis_Shell::*)() const>(&ShapeAnalysis_Shell::HasBadEdges),
R"#(Tells if at least one edge is recorded as bad)#"
)
.def("BadEdges",
(TopoDS_Compound (ShapeAnalysis_Shell::*)() const) static_cast<TopoDS_Compound (ShapeAnalysis_Shell::*)() const>(&ShapeAnalysis_Shell::BadEdges),
R"#(Returns the list of bad edges as a Compound It is empty (not null) if no edge are recorded as bad)#"
)
.def("HasFreeEdges",
(Standard_Boolean (ShapeAnalysis_Shell::*)() const) static_cast<Standard_Boolean (ShapeAnalysis_Shell::*)() const>(&ShapeAnalysis_Shell::HasFreeEdges),
R"#(Tells if at least one edge is recorded as free (not connected))#"
)
.def("FreeEdges",
(TopoDS_Compound (ShapeAnalysis_Shell::*)() const) static_cast<TopoDS_Compound (ShapeAnalysis_Shell::*)() const>(&ShapeAnalysis_Shell::FreeEdges),
R"#(Returns the list of free (not connected) edges as a Compound It is empty (not null) if no edge are recorded as free)#"
)
.def("HasConnectedEdges",
(Standard_Boolean (ShapeAnalysis_Shell::*)() const) static_cast<Standard_Boolean (ShapeAnalysis_Shell::*)() const>(&ShapeAnalysis_Shell::HasConnectedEdges),
R"#(Tells if at least one edge is connected (shared twice or more))#"
)
// 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 ShapeAnalysis_Surface from ./opencascade/ShapeAnalysis_Surface.hxx
klass = m.attr("ShapeAnalysis_Surface");
// nested enums
static_cast<py::class_<ShapeAnalysis_Surface ,opencascade::handle<ShapeAnalysis_Surface> , Standard_Transient >>(klass)
// constructors
.def(py::init< const handle<Geom_Surface> & >() , py::arg("S") )
// custom constructors
// methods
.def("Init",
(void (ShapeAnalysis_Surface::*)( const handle<Geom_Surface> & ) ) static_cast<void (ShapeAnalysis_Surface::*)( const handle<Geom_Surface> & ) >(&ShapeAnalysis_Surface::Init),
R"#(Loads existing surface)#" , py::arg("S")
)
.def("Init",
(void (ShapeAnalysis_Surface::*)( const handle<ShapeAnalysis_Surface> & ) ) static_cast<void (ShapeAnalysis_Surface::*)( const handle<ShapeAnalysis_Surface> & ) >(&ShapeAnalysis_Surface::Init),
R"#(Reads all the data from another Surface, without recomputing)#" , py::arg("other")
)
.def("SetDomain",
(void (ShapeAnalysis_Surface::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) ) static_cast<void (ShapeAnalysis_Surface::*)( const Standard_Real , const Standard_Real , const Standard_Real , const Standard_Real ) >(&ShapeAnalysis_Surface::SetDomain),
R"#()#" , py::arg("U1"), py::arg("U2"), py::arg("V1"), py::arg("V2")
)
.def("Gap",
(Standard_Real (ShapeAnalysis_Surface::*)() const) static_cast<Standard_Real (ShapeAnalysis_Surface::*)() const>(&ShapeAnalysis_Surface::Gap),
R"#(Returns 3D distance found by one of the following methods. IsDegenerated, DegeneratedValues, ProjectDegenerated (distance between 3D point and found or last (if not found) singularity), IsUClosed, IsVClosed (minimum value of precision to consider the surface to be closed), ValueOfUV (distance between 3D point and found solution).)#"
)
.def("Value",
(gp_Pnt (ShapeAnalysis_Surface::*)( const Standard_Real , const Standard_Real ) ) static_cast<gp_Pnt (ShapeAnalysis_Surface::*)( const Standard_Real , const Standard_Real ) >(&ShapeAnalysis_Surface::Value),
R"#(Returns a 3D point specified by parameters in surface parametrical space)#" , py::arg("u"), py::arg("v")
)
.def("Value",
(gp_Pnt (ShapeAnalysis_Surface::*)( const gp_Pnt2d & ) ) static_cast<gp_Pnt (ShapeAnalysis_Surface::*)( const gp_Pnt2d & ) >(&ShapeAnalysis_Surface::Value),
R"#(Returns a 3d point specified by a point in surface parametrical space)#" , py::arg("p2d")
)
.def("HasSingularities",
(Standard_Boolean (ShapeAnalysis_Surface::*)( const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_Surface::*)( const Standard_Real ) >(&ShapeAnalysis_Surface::HasSingularities),
R"#(Returns True if the surface has singularities for the given precision (i.e. if there are surface singularities with sizes not greater than precision).)#" , py::arg("preci")
)
.def("NbSingularities",
(Standard_Integer (ShapeAnalysis_Surface::*)( const Standard_Real ) ) static_cast<Standard_Integer (ShapeAnalysis_Surface::*)( const Standard_Real ) >(&ShapeAnalysis_Surface::NbSingularities),
R"#(Returns the number of singularities for the given precision (i.e. number of surface singularities with sizes not greater than precision).)#" , py::arg("preci")
)
.def("Singularity",
(Standard_Boolean (ShapeAnalysis_Surface::*)( const Standard_Integer , Standard_Real & , gp_Pnt & , gp_Pnt2d & , gp_Pnt2d & , Standard_Real & , Standard_Real & , Standard_Boolean & ) ) static_cast<Standard_Boolean (ShapeAnalysis_Surface::*)( const Standard_Integer , Standard_Real & , gp_Pnt & , gp_Pnt2d & , gp_Pnt2d & , Standard_Real & , Standard_Real & , Standard_Boolean & ) >(&ShapeAnalysis_Surface::Singularity),
R"#(Returns the characteristics of the singularity specified by its rank number <num>. That means, that it is not necessary for <num> to be in the range [1, NbSingularities] but must be not greater than possible (see ComputeSingularities). The returned characteristics are: preci: the smallest precision with which the iso-line is considered as degenerated, P3d: 3D point of singularity (middle point of the surface iso-line), firstP2d and lastP2d: first and last 2D points of the iso-line in parametrical surface, firstpar and lastpar: first and last parameters of the iso-line in parametrical surface, uisodeg: if the degenerated iso-line is U-iso (True) or V-iso (False). Returns False if <num> is out of range, else returns True.)#" , py::arg("num"), py::arg("preci"), py::arg("P3d"), py::arg("firstP2d"), py::arg("lastP2d"), py::arg("firstpar"), py::arg("lastpar"), py::arg("uisodeg")
)
.def("IsDegenerated",
(Standard_Boolean (ShapeAnalysis_Surface::*)( const gp_Pnt & , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_Surface::*)( const gp_Pnt & , const Standard_Real ) >(&ShapeAnalysis_Surface::IsDegenerated),
R"#(Returns True if there is at least one surface boundary which is considered as degenerated with <preci> and distance between P3d and corresponding singular point is less than <preci>)#" , py::arg("P3d"), py::arg("preci")
)
.def("DegeneratedValues",
(Standard_Boolean (ShapeAnalysis_Surface::*)( const gp_Pnt & , const Standard_Real , gp_Pnt2d & , gp_Pnt2d & , Standard_Real & , Standard_Real & , const Standard_Boolean ) ) static_cast<Standard_Boolean (ShapeAnalysis_Surface::*)( const gp_Pnt & , const Standard_Real , gp_Pnt2d & , gp_Pnt2d & , Standard_Real & , Standard_Real & , const Standard_Boolean ) >(&ShapeAnalysis_Surface::DegeneratedValues),
R"#(Returns True if there is at least one surface iso-line which is considered as degenerated with <preci> and distance between P3d and corresponding singular point is less than <preci> (like IsDegenerated). Returns characteristics of the first found boundary matching those criteria.)#" , py::arg("P3d"), py::arg("preci"), py::arg("firstP2d"), py::arg("lastP2d"), py::arg("firstpar"), py::arg("lastpar"), py::arg("forward")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("ProjectDegenerated",
(Standard_Boolean (ShapeAnalysis_Surface::*)( const gp_Pnt & , const Standard_Real , const gp_Pnt2d & , gp_Pnt2d & ) ) static_cast<Standard_Boolean (ShapeAnalysis_Surface::*)( const gp_Pnt & , const Standard_Real , const gp_Pnt2d & , gp_Pnt2d & ) >(&ShapeAnalysis_Surface::ProjectDegenerated),
R"#(Projects a point <P3d> on a singularity by computing one of the coordinates of preliminary computed <result>.)#" , py::arg("P3d"), py::arg("preci"), py::arg("neighbour"), py::arg("result")
)
.def("ProjectDegenerated",
(Standard_Boolean (ShapeAnalysis_Surface::*)( const Standard_Integer , const TColgp_SequenceOfPnt & , TColgp_SequenceOfPnt2d & , const Standard_Real , const Standard_Boolean ) ) static_cast<Standard_Boolean (ShapeAnalysis_Surface::*)( const Standard_Integer , const TColgp_SequenceOfPnt & , TColgp_SequenceOfPnt2d & , const Standard_Real , const Standard_Boolean ) >(&ShapeAnalysis_Surface::ProjectDegenerated),
R"#(Checks points at the beginning (direct is True) or end (direct is False) of array <points> to lie in singularity of surface, and if yes, adjusts the indeterminate 2d coordinate of these points by nearest point which is not in singularity. Returns True if some points were adjusted.)#" , py::arg("nbrPnt"), py::arg("points"), py::arg("pnt2d"), py::arg("preci"), py::arg("direct")
)
.def("IsDegenerated",
(Standard_Boolean (ShapeAnalysis_Surface::*)( const gp_Pnt2d & , const gp_Pnt2d & , const Standard_Real , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_Surface::*)( const gp_Pnt2d & , const gp_Pnt2d & , const Standard_Real , const Standard_Real ) >(&ShapeAnalysis_Surface::IsDegenerated),
R"#(Returns True if straight pcurve going from point p2d1 to p2d2 is degenerate, i.e. lies in the singularity of the surface. NOTE: it uses another method of detecting singularity than used by ComputeSingularities() et al.! For that, maximums of distances between points p2d1, p2d2 and 0.5*(p2d1+p2d2) and between corresponding 3d points are computed. The pcurve (p2d1, p2d2) is considered as degenerate if: - max distance in 3d is less than <tol> - max distance in 2d is at least <ratio> times greater than the Resolution computed from max distance in 3d (max3d < tol && max2d > ratio * Resolution(max3d)) NOTE: <ratio> should be >1 (e.g. 10))#" , py::arg("p2d1"), py::arg("p2d2"), py::arg("tol"), py::arg("ratio")
)
.def("ComputeBoundIsos",
(void (ShapeAnalysis_Surface::*)() ) static_cast<void (ShapeAnalysis_Surface::*)() >(&ShapeAnalysis_Surface::ComputeBoundIsos),
R"#(Computes bound isos (protected against exceptions))#"
)
.def("UIso",
(handle<Geom_Curve> (ShapeAnalysis_Surface::*)( const Standard_Real ) ) static_cast<handle<Geom_Curve> (ShapeAnalysis_Surface::*)( const Standard_Real ) >(&ShapeAnalysis_Surface::UIso),
R"#(Returns a U-Iso. Null if not possible or failed Remark : bound isos are buffered)#" , py::arg("U")
)
.def("VIso",
(handle<Geom_Curve> (ShapeAnalysis_Surface::*)( const Standard_Real ) ) static_cast<handle<Geom_Curve> (ShapeAnalysis_Surface::*)( const Standard_Real ) >(&ShapeAnalysis_Surface::VIso),
R"#(Returns a V-Iso. Null if not possible or failed Remark : bound isos are buffered)#" , py::arg("V")
)
.def("IsUClosed",
(Standard_Boolean (ShapeAnalysis_Surface::*)( const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_Surface::*)( const Standard_Real ) >(&ShapeAnalysis_Surface::IsUClosed),
R"#(Tells if the Surface is spatially closed in U with given precision. If <preci> < 0 then Precision::Confusion is used. If Geom_Surface says that the surface is U-closed, this method also says this. Otherwise additional analysis is performed, comparing given precision with the following distances: - periodic B-Splines are closed, - polynomial B-Spline with boundary multiplicities degree+1 and Bezier - maximum distance between poles, - rational B-Spline or one with boundary multiplicities not degree+1 - maximum distance computed at knots and their middles, - surface of extrusion - distance between ends of basis curve, - other (RectangularTrimmed and Offset) - maximum distance computed at 100 equi-distanted points.)#" , py::arg("preci")=static_cast< const Standard_Real>(- 1)
)
.def("IsVClosed",
(Standard_Boolean (ShapeAnalysis_Surface::*)( const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_Surface::*)( const Standard_Real ) >(&ShapeAnalysis_Surface::IsVClosed),
R"#(Tells if the Surface is spatially closed in V with given precision. If <preci> < 0 then Precision::Confusion is used. If Geom_Surface says that the surface is V-closed, this method also says this. Otherwise additional analysis is performed, comparing given precision with the following distances: - periodic B-Splines are closed, - polynomial B-Spline with boundary multiplicities degree+1 and Bezier - maximum distance between poles, - rational B-Spline or one with boundary multiplicities not degree+1 - maximum distance computed at knots and their middles, - surface of revolution - distance between ends of basis curve, - other (RectangularTrimmed and Offset) - maximum distance computed at 100 equi-distanted points.)#" , py::arg("preci")=static_cast< const Standard_Real>(- 1)
)
.def("ValueOfUV",
(gp_Pnt2d (ShapeAnalysis_Surface::*)( const gp_Pnt & , const Standard_Real ) ) static_cast<gp_Pnt2d (ShapeAnalysis_Surface::*)( const gp_Pnt & , const Standard_Real ) >(&ShapeAnalysis_Surface::ValueOfUV),
R"#(Computes the parameters in the surface parametrical space of 3D point. The result is parameters of the point projected onto the surface. This method enhances functionality provided by the standard tool GeomAPI_ProjectPointOnSurface by treatment of cases when the projected point is near to the surface boundaries and when this standard tool fails.)#" , py::arg("P3D"), py::arg("preci")
)
.def("NextValueOfUV",
(gp_Pnt2d (ShapeAnalysis_Surface::*)( const gp_Pnt2d & , const gp_Pnt & , const Standard_Real , const Standard_Real ) ) static_cast<gp_Pnt2d (ShapeAnalysis_Surface::*)( const gp_Pnt2d & , const gp_Pnt & , const Standard_Real , const Standard_Real ) >(&ShapeAnalysis_Surface::NextValueOfUV),
R"#(Projects a point P3D on the surface. Does the same thing as ValueOfUV but tries to optimize computations by taking into account previous point <p2dPrev>: makes a step by UV and tries Newton algorithm. If <maxpreci> >0. and distance between solution and P3D is greater than <maxpreci>, that solution is considered as bad, and ValueOfUV() is used. If not succeeded, calls ValueOfUV())#" , py::arg("p2dPrev"), py::arg("P3D"), py::arg("preci"), py::arg("maxpreci")=static_cast< const Standard_Real>(- 1.0)
)
.def("UVFromIso",
(Standard_Real (ShapeAnalysis_Surface::*)( const gp_Pnt & , const Standard_Real , Standard_Real & , Standard_Real & ) ) static_cast<Standard_Real (ShapeAnalysis_Surface::*)( const gp_Pnt & , const Standard_Real , Standard_Real & , Standard_Real & ) >(&ShapeAnalysis_Surface::UVFromIso),
R"#(Tries a refinement of an already computed couple (U,V) by using projecting 3D point on iso-lines: 1. boundaries of the surface, 2. iso-lines passing through (U,V) 3. iteratively received iso-lines passing through new U and new V (number of iterations is limited by 5 in each direction) Returns the best resulting distance between P3D and Value(U,V) in the case of success. Else, returns a very great value)#" , py::arg("P3D"), py::arg("preci"), py::arg("U"), py::arg("V")
)
.def("UCloseVal",
(Standard_Real (ShapeAnalysis_Surface::*)() const) static_cast<Standard_Real (ShapeAnalysis_Surface::*)() const>(&ShapeAnalysis_Surface::UCloseVal),
R"#(Returns minimum value to consider the surface as U-closed)#"
)
.def("VCloseVal",
(Standard_Real (ShapeAnalysis_Surface::*)() const) static_cast<Standard_Real (ShapeAnalysis_Surface::*)() const>(&ShapeAnalysis_Surface::VCloseVal),
R"#(Returns minimum value to consider the surface as V-closed)#"
)
.def("Gap",
(Standard_Real (ShapeAnalysis_Surface::*)() const) static_cast<Standard_Real (ShapeAnalysis_Surface::*)() const>(&ShapeAnalysis_Surface::Gap),
R"#(Returns 3D distance found by one of the following methods. IsDegenerated, DegeneratedValues, ProjectDegenerated (distance between 3D point and found or last (if not found) singularity), IsUClosed, IsVClosed (minimum value of precision to consider the surface to be closed), ValueOfUV (distance between 3D point and found solution).)#"
)
.def("Value",
(gp_Pnt (ShapeAnalysis_Surface::*)( const Standard_Real , const Standard_Real ) ) static_cast<gp_Pnt (ShapeAnalysis_Surface::*)( const Standard_Real , const Standard_Real ) >(&ShapeAnalysis_Surface::Value),
R"#(Returns a 3D point specified by parameters in surface parametrical space)#" , py::arg("u"), py::arg("v")
)
.def("Value",
(gp_Pnt (ShapeAnalysis_Surface::*)( const gp_Pnt2d & ) ) static_cast<gp_Pnt (ShapeAnalysis_Surface::*)( const gp_Pnt2d & ) >(&ShapeAnalysis_Surface::Value),
R"#(Returns a 3d point specified by a point in surface parametrical space)#" , py::arg("p2d")
)
.def("UCloseVal",
(Standard_Real (ShapeAnalysis_Surface::*)() const) static_cast<Standard_Real (ShapeAnalysis_Surface::*)() const>(&ShapeAnalysis_Surface::UCloseVal),
R"#(Returns minimum value to consider the surface as U-closed)#"
)
.def("VCloseVal",
(Standard_Real (ShapeAnalysis_Surface::*)() const) static_cast<Standard_Real (ShapeAnalysis_Surface::*)() const>(&ShapeAnalysis_Surface::VCloseVal),
R"#(Returns minimum value to consider the surface as V-closed)#"
)
// methods using call by reference i.s.o. return
.def("Bounds",
[]( ShapeAnalysis_Surface &self ){
Standard_Real ufirst;
Standard_Real ulast;
Standard_Real vfirst;
Standard_Real vlast;
self.Bounds(ufirst,ulast,vfirst,vlast);
return std::make_tuple(ufirst,ulast,vfirst,vlast); },
R"#(Returns the bounds of the surface (from Bounds from Surface, but buffered))#"
)
.def("Bounds",
[]( ShapeAnalysis_Surface &self ){
Standard_Real ufirst;
Standard_Real ulast;
Standard_Real vfirst;
Standard_Real vlast;
self.Bounds(ufirst,ulast,vfirst,vlast);
return std::make_tuple(ufirst,ulast,vfirst,vlast); },
R"#(Returns the bounds of the surface (from Bounds from Surface, but buffered))#"
)
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&ShapeAnalysis_Surface::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&ShapeAnalysis_Surface::get_type_descriptor),
R"#()#"
)
// 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("Surface",
( const handle<Geom_Surface> & (ShapeAnalysis_Surface::*)() const) static_cast< const handle<Geom_Surface> & (ShapeAnalysis_Surface::*)() const>(&ShapeAnalysis_Surface::Surface),
R"#(Returns a surface being analyzed)#"
)
.def("Adaptor3d",
( const handle<GeomAdaptor_Surface> & (ShapeAnalysis_Surface::*)() ) static_cast< const handle<GeomAdaptor_Surface> & (ShapeAnalysis_Surface::*)() >(&ShapeAnalysis_Surface::Adaptor3d),
R"#(Returns the Adaptor. Creates it if not yet done.)#"
)
.def("TrueAdaptor3d",
( const handle<GeomAdaptor_Surface> & (ShapeAnalysis_Surface::*)() const) static_cast< const handle<GeomAdaptor_Surface> & (ShapeAnalysis_Surface::*)() const>(&ShapeAnalysis_Surface::TrueAdaptor3d),
R"#(Returns the Adaptor (may be Null if method Adaptor() was not called))#"
)
.def("GetBoxUF",
( const Bnd_Box & (ShapeAnalysis_Surface::*)() ) static_cast< const Bnd_Box & (ShapeAnalysis_Surface::*)() >(&ShapeAnalysis_Surface::GetBoxUF),
R"#()#"
)
.def("GetBoxUL",
( const Bnd_Box & (ShapeAnalysis_Surface::*)() ) static_cast< const Bnd_Box & (ShapeAnalysis_Surface::*)() >(&ShapeAnalysis_Surface::GetBoxUL),
R"#()#"
)
.def("GetBoxVF",
( const Bnd_Box & (ShapeAnalysis_Surface::*)() ) static_cast< const Bnd_Box & (ShapeAnalysis_Surface::*)() >(&ShapeAnalysis_Surface::GetBoxVF),
R"#()#"
)
.def("GetBoxVL",
( const Bnd_Box & (ShapeAnalysis_Surface::*)() ) static_cast< const Bnd_Box & (ShapeAnalysis_Surface::*)() >(&ShapeAnalysis_Surface::GetBoxVL),
R"#()#"
)
.def("DynamicType",
( const handle<Standard_Type> & (ShapeAnalysis_Surface::*)() const) static_cast< const handle<Standard_Type> & (ShapeAnalysis_Surface::*)() const>(&ShapeAnalysis_Surface::DynamicType),
R"#()#"
)
.def("Surface",
( const handle<Geom_Surface> & (ShapeAnalysis_Surface::*)() const) static_cast< const handle<Geom_Surface> & (ShapeAnalysis_Surface::*)() const>(&ShapeAnalysis_Surface::Surface),
R"#(Returns a surface being analyzed)#"
)
.def("TrueAdaptor3d",
( const handle<GeomAdaptor_Surface> & (ShapeAnalysis_Surface::*)() const) static_cast< const handle<GeomAdaptor_Surface> & (ShapeAnalysis_Surface::*)() const>(&ShapeAnalysis_Surface::TrueAdaptor3d),
R"#(Returns the Adaptor (may be Null if method Adaptor() was not called))#"
)
;
// Class ShapeAnalysis_TransferParameters from ./opencascade/ShapeAnalysis_TransferParameters.hxx
klass = m.attr("ShapeAnalysis_TransferParameters");
// nested enums
static_cast<py::class_<ShapeAnalysis_TransferParameters ,opencascade::handle<ShapeAnalysis_TransferParameters> , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Edge &, const TopoDS_Face & >() , py::arg("E"), py::arg("F") )
// custom constructors
// methods
.def("Init",
(void (ShapeAnalysis_TransferParameters::*)( const TopoDS_Edge & , const TopoDS_Face & ) ) static_cast<void (ShapeAnalysis_TransferParameters::*)( const TopoDS_Edge & , const TopoDS_Face & ) >(&ShapeAnalysis_TransferParameters::Init),
R"#(Initialize a tool with edge and face)#" , py::arg("E"), py::arg("F")
)
.def("SetMaxTolerance",
(void (ShapeAnalysis_TransferParameters::*)( const Standard_Real ) ) static_cast<void (ShapeAnalysis_TransferParameters::*)( const Standard_Real ) >(&ShapeAnalysis_TransferParameters::SetMaxTolerance),
R"#(Sets maximal tolerance to use linear recomputation of parameters.)#" , py::arg("maxtol")
)
.def("Perform",
(handle<TColStd_HSequenceOfReal> (ShapeAnalysis_TransferParameters::*)( const handle<TColStd_HSequenceOfReal> & , const Standard_Boolean ) ) static_cast<handle<TColStd_HSequenceOfReal> (ShapeAnalysis_TransferParameters::*)( const handle<TColStd_HSequenceOfReal> & , const Standard_Boolean ) >(&ShapeAnalysis_TransferParameters::Perform),
R"#(Transfers parameters given by sequence Params from 3d curve to pcurve (if To2d is True) or back (if To2d is False))#" , py::arg("Params"), py::arg("To2d")
)
.def("Perform",
(Standard_Real (ShapeAnalysis_TransferParameters::*)( const Standard_Real , const Standard_Boolean ) ) static_cast<Standard_Real (ShapeAnalysis_TransferParameters::*)( const Standard_Real , const Standard_Boolean ) >(&ShapeAnalysis_TransferParameters::Perform),
R"#(Transfers parameter given by sequence Params from 3d curve to pcurve (if To2d is True) or back (if To2d is False))#" , py::arg("Param"), py::arg("To2d")
)
.def("TransferRange",
(void (ShapeAnalysis_TransferParameters::*)( TopoDS_Edge & , const Standard_Real , const Standard_Real , const Standard_Boolean ) ) static_cast<void (ShapeAnalysis_TransferParameters::*)( TopoDS_Edge & , const Standard_Real , const Standard_Real , const Standard_Boolean ) >(&ShapeAnalysis_TransferParameters::TransferRange),
R"#(Recomputes range of curves from NewEdge. If Is2d equals True parameters are recomputed by curve2d else by curve3d.)#" , py::arg("newEdge"), py::arg("prevPar"), py::arg("currPar"), py::arg("To2d")
)
.def("IsSameRange",
(Standard_Boolean (ShapeAnalysis_TransferParameters::*)() const) static_cast<Standard_Boolean (ShapeAnalysis_TransferParameters::*)() const>(&ShapeAnalysis_TransferParameters::IsSameRange),
R"#(Returns True if 3d curve of edge and pcurve are SameRange (in default implementation, if myScale == 1 and myShift == 0))#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&ShapeAnalysis_TransferParameters::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&ShapeAnalysis_TransferParameters::get_type_descriptor),
R"#()#"
)
// 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 handle<Standard_Type> & (ShapeAnalysis_TransferParameters::*)() const) static_cast< const handle<Standard_Type> & (ShapeAnalysis_TransferParameters::*)() const>(&ShapeAnalysis_TransferParameters::DynamicType),
R"#()#"
)
;
// Class ShapeAnalysis_Wire from ./opencascade/ShapeAnalysis_Wire.hxx
klass = m.attr("ShapeAnalysis_Wire");
// nested enums
static_cast<py::class_<ShapeAnalysis_Wire ,opencascade::handle<ShapeAnalysis_Wire> , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Wire &, const TopoDS_Face &, const Standard_Real >() , py::arg("wire"), py::arg("face"), py::arg("precision") )
.def(py::init< const handle<ShapeExtend_WireData> &, const TopoDS_Face &, const Standard_Real >() , py::arg("sbwd"), py::arg("face"), py::arg("precision") )
// custom constructors
// methods
.def("Init",
(void (ShapeAnalysis_Wire::*)( const TopoDS_Wire & , const TopoDS_Face & , const Standard_Real ) ) static_cast<void (ShapeAnalysis_Wire::*)( const TopoDS_Wire & , const TopoDS_Face & , const Standard_Real ) >(&ShapeAnalysis_Wire::Init),
R"#(Initializes the object with standard TopoDS_Wire, face and precision)#" , py::arg("wire"), py::arg("face"), py::arg("precision")
)
.def("Init",
(void (ShapeAnalysis_Wire::*)( const handle<ShapeExtend_WireData> & , const TopoDS_Face & , const Standard_Real ) ) static_cast<void (ShapeAnalysis_Wire::*)( const handle<ShapeExtend_WireData> & , const TopoDS_Face & , const Standard_Real ) >(&ShapeAnalysis_Wire::Init),
R"#(Initializes the object with WireData object, face and precision)#" , py::arg("sbwd"), py::arg("face"), py::arg("precision")
)
.def("Load",
(void (ShapeAnalysis_Wire::*)( const TopoDS_Wire & ) ) static_cast<void (ShapeAnalysis_Wire::*)( const TopoDS_Wire & ) >(&ShapeAnalysis_Wire::Load),
R"#(Loads the object with standard TopoDS_Wire)#" , py::arg("wire")
)
.def("Load",
(void (ShapeAnalysis_Wire::*)( const handle<ShapeExtend_WireData> & ) ) static_cast<void (ShapeAnalysis_Wire::*)( const handle<ShapeExtend_WireData> & ) >(&ShapeAnalysis_Wire::Load),
R"#(Loads the object with WireData object)#" , py::arg("sbwd")
)
.def("SetFace",
(void (ShapeAnalysis_Wire::*)( const TopoDS_Face & ) ) static_cast<void (ShapeAnalysis_Wire::*)( const TopoDS_Face & ) >(&ShapeAnalysis_Wire::SetFace),
R"#(Loads the face the wire lies on)#" , py::arg("face")
)
.def("SetSurface",
(void (ShapeAnalysis_Wire::*)( const handle<Geom_Surface> & ) ) static_cast<void (ShapeAnalysis_Wire::*)( const handle<Geom_Surface> & ) >(&ShapeAnalysis_Wire::SetSurface),
R"#(Loads the surface the wire lies on)#" , py::arg("surface")
)
.def("SetSurface",
(void (ShapeAnalysis_Wire::*)( const handle<Geom_Surface> & , const TopLoc_Location & ) ) static_cast<void (ShapeAnalysis_Wire::*)( const handle<Geom_Surface> & , const TopLoc_Location & ) >(&ShapeAnalysis_Wire::SetSurface),
R"#(Loads the surface the wire lies on)#" , py::arg("surface"), py::arg("location")
)
.def("SetPrecision",
(void (ShapeAnalysis_Wire::*)( const Standard_Real ) ) static_cast<void (ShapeAnalysis_Wire::*)( const Standard_Real ) >(&ShapeAnalysis_Wire::SetPrecision),
R"#()#" , py::arg("precision")
)
.def("ClearStatuses",
(void (ShapeAnalysis_Wire::*)() ) static_cast<void (ShapeAnalysis_Wire::*)() >(&ShapeAnalysis_Wire::ClearStatuses),
R"#(Unsets all the status and distance fields wire, face and precision are not cleared)#"
)
.def("IsLoaded",
(Standard_Boolean (ShapeAnalysis_Wire::*)() const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::IsLoaded),
R"#(Returns True if wire is loaded and has number of edges >0)#"
)
.def("IsReady",
(Standard_Boolean (ShapeAnalysis_Wire::*)() const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::IsReady),
R"#(Returns True if IsLoaded and underlying face is not null)#"
)
.def("Precision",
(Standard_Real (ShapeAnalysis_Wire::*)() const) static_cast<Standard_Real (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::Precision),
R"#(Returns the value of precision)#"
)
.def("NbEdges",
(Standard_Integer (ShapeAnalysis_Wire::*)() const) static_cast<Standard_Integer (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::NbEdges),
R"#(Returns the number of edges in the wire, or 0 if it is not loaded)#"
)
.def("Perform",
(Standard_Boolean (ShapeAnalysis_Wire::*)() ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)() >(&ShapeAnalysis_Wire::Perform),
R"#(Performs all the checks in the following order : CheckOrder, CheckSmall, CheckConnected, CheckEdgeCurves, CheckDegenerated, CheckSelfIntersection, CheckLacking, CheckClosed Returns: True if at least one method returned True; For deeper analysis use Status...(status) methods)#"
)
.def("CheckOrder",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Boolean , const Standard_Boolean ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Boolean , const Standard_Boolean ) >(&ShapeAnalysis_Wire::CheckOrder),
R"#(Calls CheckOrder and returns False if wire is already ordered (tail-to-head), True otherwise Flag <isClosed> defines if the wire is closed or not Flag <mode3d> defines which mode is used (3d or 2d))#" , py::arg("isClosed")=static_cast< const Standard_Boolean>(Standard_True), py::arg("mode3d")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("CheckConnected",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Real ) >(&ShapeAnalysis_Wire::CheckConnected),
R"#(Calls to CheckConnected for each edge Returns: True if at least one pair of disconnected edges (not sharing the same vertex) was detected)#" , py::arg("prec")=static_cast< const Standard_Real>(0.0)
)
.def("CheckSmall",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Real ) >(&ShapeAnalysis_Wire::CheckSmall),
R"#(Calls to CheckSmall for each edge Returns: True if at least one small edge was detected)#" , py::arg("precsmall")=static_cast< const Standard_Real>(0.0)
)
.def("CheckEdgeCurves",
(Standard_Boolean (ShapeAnalysis_Wire::*)() ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)() >(&ShapeAnalysis_Wire::CheckEdgeCurves),
R"#(Checks edges geometry (consistency of 2d and 3d senses, adjasment of curves to the vertices, etc.). The order of the checks : Call ShapeAnalysis_Wire to check: ShapeAnalysis_Edge::CheckCurve3dWithPCurve (1), ShapeAnalysis_Edge::CheckVertcesWithPCurve (2), ShapeAnalysis_Edge::CheckVertcesWithCurve3d (3), CheckSeam (4) Additional: CheckGap3d (5), CheckGap2d (6), ShapeAnalysis_Edge::CheckSameParameter (7) Returns: True if at least one check returned True Remark: The numbers in brackets show with what DONEi or FAILi the status can be queried)#"
)
.def("CheckDegenerated",
(Standard_Boolean (ShapeAnalysis_Wire::*)() ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)() >(&ShapeAnalysis_Wire::CheckDegenerated),
R"#(Calls to CheckDegenerated for each edge Returns: True if at least one incorrect degenerated edge was detected)#"
)
.def("CheckClosed",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Real ) >(&ShapeAnalysis_Wire::CheckClosed),
R"#(Checks if wire is closed, performs CheckConnected, CheckDegenerated and CheckLacking for the first and the last edges Returns: True if at least one check returned True Status: FAIL1 or DONE1: see CheckConnected FAIL2 or DONE2: see CheckDegenerated)#" , py::arg("prec")=static_cast< const Standard_Real>(0.0)
)
.def("CheckSelfIntersection",
(Standard_Boolean (ShapeAnalysis_Wire::*)() ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)() >(&ShapeAnalysis_Wire::CheckSelfIntersection),
R"#(Checks self-intersection of the wire (considering pcurves) Looks for self-intersecting edges and each pair of intersecting edges. Warning: It does not check each edge with any other one (only each two adjacent edges) The order of the checks : CheckSelfIntersectingEdge, CheckIntersectingEdges Returns: True if at least one check returned True Status: FAIL1 or DONE1 - see CheckSelfIntersectingEdge FAIL2 or DONE2 - see CheckIntersectingEdges)#"
)
.def("CheckLacking",
(Standard_Boolean (ShapeAnalysis_Wire::*)() ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)() >(&ShapeAnalysis_Wire::CheckLacking),
R"#(Calls to CheckLacking for each edge Returns: True if at least one lacking edge was detected)#"
)
.def("CheckGaps3d",
(Standard_Boolean (ShapeAnalysis_Wire::*)() ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)() >(&ShapeAnalysis_Wire::CheckGaps3d),
R"#()#"
)
.def("CheckGaps2d",
(Standard_Boolean (ShapeAnalysis_Wire::*)() ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)() >(&ShapeAnalysis_Wire::CheckGaps2d),
R"#()#"
)
.def("CheckCurveGaps",
(Standard_Boolean (ShapeAnalysis_Wire::*)() ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)() >(&ShapeAnalysis_Wire::CheckCurveGaps),
R"#()#"
)
.def("CheckOrder",
(Standard_Boolean (ShapeAnalysis_Wire::*)( ShapeAnalysis_WireOrder & , Standard_Boolean , Standard_Boolean , Standard_Boolean ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( ShapeAnalysis_WireOrder & , Standard_Boolean , Standard_Boolean , Standard_Boolean ) >(&ShapeAnalysis_Wire::CheckOrder),
R"#(Analyzes the order of the edges in the wire, uses class WireOrder for that purpose. Flag <isClosed> defines if the wire is closed or not Flag <theMode3D> defines 3D or 2d mode. Flag <theModeBoth> defines miscible mode and the flag <theMode3D> is ignored. Returns False if wire is already ordered (tail-to-head), True otherwise. Use returned WireOrder object for deeper analysis. Status: OK : the same edges orientation, the same edges sequence DONE1: the same edges orientation, not the same edges sequence DONE2: as DONE1 and gaps more than myPrecision DONE3: not the same edges orientation (some need to be reversed) DONE4: as DONE3 and gaps more than myPrecision FAIL : algorithm failed (could not detect order))#" , py::arg("sawo"), py::arg("isClosed")=static_cast<Standard_Boolean>(Standard_True), py::arg("theMode3D")=static_cast<Standard_Boolean>(Standard_True), py::arg("theModeBoth")=static_cast<Standard_Boolean>(Standard_False)
)
.def("CheckConnected",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , const Standard_Real ) >(&ShapeAnalysis_Wire::CheckConnected),
R"#(Checks connected edges (num-th and preceding). Tests with starting preci from <SBWD> or with <prec> if it is greater. Considers Vertices. Returns: False if edges are connected by the common vertex, else True Status : OK : Vertices (end of num-1 th edge and start on num-th one) are already the same DONE1 : Absolutely confused (gp::Resolution) DONE2 : Confused at starting <preci> from <SBWD> DONE3 : Confused at <prec> but not <preci> FAIL1 : Not confused FAIL2 : Not confused but confused with <preci> if reverse num-th edge)#" , py::arg("num"), py::arg("prec")=static_cast< const Standard_Real>(0.0)
)
.def("CheckSmall",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , const Standard_Real ) >(&ShapeAnalysis_Wire::CheckSmall),
R"#(Checks if an edge has a length not greater than myPreci or precsmall (if it is smaller) Returns: False if its length is greater than precision Status: OK : edge is not small or degenerated DONE1: edge is small, vertices are the same DONE2: edge is small, vertices are not the same FAIL : no 3d curve and pcurve)#" , py::arg("num"), py::arg("precsmall")=static_cast< const Standard_Real>(0.0)
)
.def("CheckSeam",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , handle<Geom2d_Curve> & , handle<Geom2d_Curve> & , Standard_Real & , Standard_Real & ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , handle<Geom2d_Curve> & , handle<Geom2d_Curve> & , Standard_Real & , Standard_Real & ) >(&ShapeAnalysis_Wire::CheckSeam),
R"#(Checks if a seam pcurves are correct oriented Returns: False (status OK) if given edge is not a seam or if it is OK C1 - current pcurve for FORWARD edge, C2 - current pcurve for REVERSED edge (if returns True they should be swapped for the seam), cf, cl - first and last parameters on curves Status: OK : Pcurves are correct or edge is not seam DONE : Seam pcurves should be swapped)#" , py::arg("num"), py::arg("C1"), py::arg("C2"), py::arg("cf"), py::arg("cl")
)
.def("CheckSeam",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer ) >(&ShapeAnalysis_Wire::CheckSeam),
R"#(Checks if a seam pcurves are correct oriented See previous functions for details)#" , py::arg("num")
)
.def("CheckDegenerated",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , gp_Pnt2d & , gp_Pnt2d & ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , gp_Pnt2d & , gp_Pnt2d & ) >(&ShapeAnalysis_Wire::CheckDegenerated),
R"#(Checks for degenerated edge between two adjacent ones. Fills parameters dgnr1 and dgnr2 with points in parametric space that correspond to the singularity (either gap that needs to be filled by degenerated edge or that already filled) Returns: False if no singularity or edge is already degenerated, otherwise True Status: OK : No surface singularity, or edge is already degenerated DONE1: Degenerated edge should be inserted (gap in 2D) DONE2: Edge <num> should be made degenerated (recompute pcurve and set the flag) FAIL1: One of edges neighbouring to degenerated one has no pcurve FAIL2: Edge marked as degenerated and has no pcurve but singularity is not detected)#" , py::arg("num"), py::arg("dgnr1"), py::arg("dgnr2")
)
.def("CheckDegenerated",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer ) >(&ShapeAnalysis_Wire::CheckDegenerated),
R"#(Checks for degenerated edge between two adjacent ones. Remark : Calls previous function Status : See the function above for details)#" , py::arg("num")
)
.def("CheckGap3d",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer ) >(&ShapeAnalysis_Wire::CheckGap3d),
R"#(Checks gap between edges in 3D (3d curves). Checks the distance between ends of 3d curves of the num-th and preceding edge. The distance can be queried by MinDistance3d.)#" , py::arg("num")=static_cast< const Standard_Integer>(0)
)
.def("CheckGap2d",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer ) >(&ShapeAnalysis_Wire::CheckGap2d),
R"#(Checks gap between edges in 2D (pcurves). Checks the distance between ends of pcurves of the num-th and preceding edge. The distance can be queried by MinDistance2d.)#" , py::arg("num")=static_cast< const Standard_Integer>(0)
)
.def("CheckCurveGap",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer ) >(&ShapeAnalysis_Wire::CheckCurveGap),
R"#(Checks gap between points on 3D curve and points on surface generated by pcurve of the num-th edge. The distance can be queried by MinDistance3d.)#" , py::arg("num")=static_cast< const Standard_Integer>(0)
)
.def("CheckSelfIntersectingEdge",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , IntRes2d_SequenceOfIntersectionPoint & , TColgp_SequenceOfPnt & ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , IntRes2d_SequenceOfIntersectionPoint & , TColgp_SequenceOfPnt & ) >(&ShapeAnalysis_Wire::CheckSelfIntersectingEdge),
R"#(Checks if num-th edge is self-intersecting. Self-intersection is reported only if intersection point lies outside of both end vertices of the edge. Returns: True if edge is self-intersecting. If returns True it also fills the sequences of intersection points and corresponding 3d points (only that are not enclosed by a vertices) Status: FAIL1 : No pcurve FAIL2 : No vertices DONE1 : Self-intersection found)#" , py::arg("num"), py::arg("points2d"), py::arg("points3d")
)
.def("CheckSelfIntersectingEdge",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer ) >(&ShapeAnalysis_Wire::CheckSelfIntersectingEdge),
R"#()#" , py::arg("num")
)
.def("CheckIntersectingEdges",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , IntRes2d_SequenceOfIntersectionPoint & , TColgp_SequenceOfPnt & , TColStd_SequenceOfReal & ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , IntRes2d_SequenceOfIntersectionPoint & , TColgp_SequenceOfPnt & , TColStd_SequenceOfReal & ) >(&ShapeAnalysis_Wire::CheckIntersectingEdges),
R"#(Checks two adjacent edges for intersecting. Intersection is reported only if intersection point is not enclosed by the common end vertex of the edges. Returns: True if intersection is found. If returns True it also fills the sequences of intersection points, corresponding 3d points, and errors for them (half-distances between intersection points in 3d calculated from one and from another edge) Status: FAIL1 : No pcurve FAIL2 : No vertices DONE1 : Self-intersection found)#" , py::arg("num"), py::arg("points2d"), py::arg("points3d"), py::arg("errors")
)
.def("CheckIntersectingEdges",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer ) >(&ShapeAnalysis_Wire::CheckIntersectingEdges),
R"#(Checks two adjacent edges for intersecting. Remark : Calls the previous method Status : See the function above for details)#" , py::arg("num")
)
.def("CheckIntersectingEdges",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , const Standard_Integer , IntRes2d_SequenceOfIntersectionPoint & , TColgp_SequenceOfPnt & , TColStd_SequenceOfReal & ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , const Standard_Integer , IntRes2d_SequenceOfIntersectionPoint & , TColgp_SequenceOfPnt & , TColStd_SequenceOfReal & ) >(&ShapeAnalysis_Wire::CheckIntersectingEdges),
R"#(Checks i-th and j-th edges for intersecting. Remark : See the previous method for details)#" , py::arg("num1"), py::arg("num2"), py::arg("points2d"), py::arg("points3d"), py::arg("errors")
)
.def("CheckIntersectingEdges",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , const Standard_Integer ) >(&ShapeAnalysis_Wire::CheckIntersectingEdges),
R"#(Checks i-th and j-th edges for intersecting. Remark : Calls previous method. Status : See the function above for details)#" , py::arg("num1"), py::arg("num2")
)
.def("CheckLacking",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , const Standard_Real , gp_Pnt2d & , gp_Pnt2d & ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , const Standard_Real , gp_Pnt2d & , gp_Pnt2d & ) >(&ShapeAnalysis_Wire::CheckLacking),
R"#(Checks if there is a gap in 2d between edges, not comprised by the tolerance of their common vertex. If <Tolerance> is greater than 0. and less than tolerance of the vertex, then this value is used for check. Returns: True if not closed gap was detected p2d1 and p2d2 are the endpoint of <num-1>th edge and start of the <num>th edge in 2d. Status: OK: No edge is lacking (3d and 2d connection) FAIL1: edges have no vertices (at least one of them) FAIL2: edges are neither connected by common vertex, nor have coincided vertices FAIL1: edges have no pcurves DONE1: the gap is detected which cannot be closed by the tolerance of the common vertex (or with value of <Tolerance>) DONE2: is set (together with DONE1) if gap is detected and the vector (p2d2 - p2d1) goes in direction opposite to the pcurves of the edges (if angle is more than 0.9*PI).)#" , py::arg("num"), py::arg("Tolerance"), py::arg("p2d1"), py::arg("p2d2")
)
.def("CheckLacking",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , const Standard_Real ) >(&ShapeAnalysis_Wire::CheckLacking),
R"#(Checks if there is a gap in 2D between edges and not comprised by vertex tolerance The value of SBWD.thepreci is used. Returns: False if no edge should be inserted Status: OK : No edge is lacking (3d and 2d connection) DONE1 : The vertex tolerance should be increased only (2d gap is small) DONE2 : Edge can be inserted (3d and 2d gaps are large enough))#" , py::arg("num"), py::arg("Tolerance")=static_cast< const Standard_Real>(0.0)
)
.def("CheckOuterBound",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Boolean ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Boolean ) >(&ShapeAnalysis_Wire::CheckOuterBound),
R"#(Checks if wire defines an outer bound on the face Uses ShapeAnalysis::IsOuterBound for analysis If <APIMake> is True uses BRepAPI_MakeWire to build the wire, if False (to be used only when edges share common vertices) uses BRep_Builder to build the wire)#" , py::arg("APIMake")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("CheckNotchedEdges",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , Standard_Integer & , Standard_Real & , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const Standard_Integer , Standard_Integer & , Standard_Real & , const Standard_Real ) >(&ShapeAnalysis_Wire::CheckNotchedEdges),
R"#(Detects a notch)#" , py::arg("num"), py::arg("shortNum"), py::arg("param"), py::arg("Tolerance")=static_cast< const Standard_Real>(0.0)
)
.def("CheckSmallArea",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const TopoDS_Wire & ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const TopoDS_Wire & ) >(&ShapeAnalysis_Wire::CheckSmallArea),
R"#(Checks if wire has parametric area less than precision.)#" , py::arg("theWire")
)
.def("CheckShapeConnect",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const TopoDS_Shape & , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const TopoDS_Shape & , const Standard_Real ) >(&ShapeAnalysis_Wire::CheckShapeConnect),
R"#(Checks with what orientation <shape> (wire or edge) can be connected to the wire. Tests distances with starting <preci> from <SBWD> (close confusion), but if given <prec> is greater, tests with <prec> (coarse confusion). The smallest found distance can be returned by MinDistance3d)#" , py::arg("shape"), py::arg("prec")=static_cast< const Standard_Real>(0.0)
)
.def("CheckShapeConnect",
(Standard_Boolean (ShapeAnalysis_Wire::*)( Standard_Real & , Standard_Real & , Standard_Real & , Standard_Real & , const TopoDS_Shape & , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( Standard_Real & , Standard_Real & , Standard_Real & , Standard_Real & , const TopoDS_Shape & , const Standard_Real ) >(&ShapeAnalysis_Wire::CheckShapeConnect),
R"#(The same as previous CheckShapeConnect but is more advanced. It returns the distances between each end of <sbwd> and each end of <shape>. For example, <tailhead> stores distance between tail of <sbwd> and head of <shape> Remark: First method CheckShapeConnect calls this one)#" , py::arg("tailhead"), py::arg("tailtail"), py::arg("headtail"), py::arg("headhead"), py::arg("shape"), py::arg("prec")=static_cast< const Standard_Real>(0.0)
)
.def("CheckLoop",
(Standard_Boolean (ShapeAnalysis_Wire::*)( TopTools_IndexedMapOfShape & , TopTools_DataMapOfShapeListOfShape & , TopTools_MapOfShape & , TopTools_MapOfShape & ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( TopTools_IndexedMapOfShape & , TopTools_DataMapOfShapeListOfShape & , TopTools_MapOfShape & , TopTools_MapOfShape & ) >(&ShapeAnalysis_Wire::CheckLoop),
R"#(Checks existence of loop on wire and return vertices which are loop vertices (vertices belonging to a few pairs of edges))#" , py::arg("aMapLoopVertices"), py::arg("aMapVertexEdges"), py::arg("aMapSmallEdges"), py::arg("aMapSeemEdges")
)
.def("CheckTail",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const TopoDS_Edge & , const TopoDS_Edge & , const Standard_Real , const Standard_Real , const Standard_Real , TopoDS_Edge & , TopoDS_Edge & , TopoDS_Edge & , TopoDS_Edge & ) ) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const TopoDS_Edge & , const TopoDS_Edge & , const Standard_Real , const Standard_Real , const Standard_Real , TopoDS_Edge & , TopoDS_Edge & , TopoDS_Edge & , TopoDS_Edge & ) >(&ShapeAnalysis_Wire::CheckTail),
R"#()#" , py::arg("theEdge1"), py::arg("theEdge2"), py::arg("theMaxSine"), py::arg("theMaxWidth"), py::arg("theMaxTolerance"), py::arg("theEdge11"), py::arg("theEdge12"), py::arg("theEdge21"), py::arg("theEdge22")
)
.def("StatusOrder",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusOrder),
R"#()#" , py::arg("Status")
)
.def("StatusConnected",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusConnected),
R"#()#" , py::arg("Status")
)
.def("StatusEdgeCurves",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusEdgeCurves),
R"#()#" , py::arg("Status")
)
.def("StatusDegenerated",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusDegenerated),
R"#()#" , py::arg("Status")
)
.def("StatusClosed",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusClosed),
R"#()#" , py::arg("Status")
)
.def("StatusSmall",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusSmall),
R"#()#" , py::arg("Status")
)
.def("StatusSelfIntersection",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusSelfIntersection),
R"#()#" , py::arg("Status")
)
.def("StatusLacking",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusLacking),
R"#()#" , py::arg("Status")
)
.def("StatusGaps3d",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusGaps3d),
R"#()#" , py::arg("Status")
)
.def("StatusGaps2d",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusGaps2d),
R"#()#" , py::arg("Status")
)
.def("StatusCurveGaps",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusCurveGaps),
R"#()#" , py::arg("Status")
)
.def("StatusLoop",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusLoop),
R"#()#" , py::arg("Status")
)
.def("LastCheckStatus",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::LastCheckStatus),
R"#(Querying the status of the LAST performed 'Advanced' checking procedure)#" , py::arg("Status")
)
.def("MinDistance3d",
(Standard_Real (ShapeAnalysis_Wire::*)() const) static_cast<Standard_Real (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::MinDistance3d),
R"#(Returns the last lowest distance in 3D computed by CheckOrientation, CheckConnected, CheckContinuity3d, CheckVertex, CheckNewVertex)#"
)
.def("MinDistance2d",
(Standard_Real (ShapeAnalysis_Wire::*)() const) static_cast<Standard_Real (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::MinDistance2d),
R"#(Returns the last lowest distance in 2D-UV computed by CheckContinuity2d)#"
)
.def("MaxDistance3d",
(Standard_Real (ShapeAnalysis_Wire::*)() const) static_cast<Standard_Real (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::MaxDistance3d),
R"#(Returns the last maximal distance in 3D computed by CheckOrientation, CheckConnected, CheckContinuity3d, CheckVertex, CheckNewVertex, CheckSameParameter)#"
)
.def("MaxDistance2d",
(Standard_Real (ShapeAnalysis_Wire::*)() const) static_cast<Standard_Real (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::MaxDistance2d),
R"#(Returns the last maximal distance in 2D-UV computed by CheckContinuity2d)#"
)
.def("IsLoaded",
(Standard_Boolean (ShapeAnalysis_Wire::*)() const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::IsLoaded),
R"#(Returns True if wire is loaded and has number of edges >0)#"
)
.def("IsReady",
(Standard_Boolean (ShapeAnalysis_Wire::*)() const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::IsReady),
R"#(Returns True if IsLoaded and underlying face is not null)#"
)
.def("Precision",
(Standard_Real (ShapeAnalysis_Wire::*)() const) static_cast<Standard_Real (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::Precision),
R"#(Returns the value of precision)#"
)
.def("NbEdges",
(Standard_Integer (ShapeAnalysis_Wire::*)() const) static_cast<Standard_Integer (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::NbEdges),
R"#(Returns the number of edges in the wire, or 0 if it is not loaded)#"
)
.def("StatusOrder",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusOrder),
R"#()#" , py::arg("Status")
)
.def("StatusConnected",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusConnected),
R"#()#" , py::arg("Status")
)
.def("StatusEdgeCurves",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusEdgeCurves),
R"#()#" , py::arg("Status")
)
.def("StatusDegenerated",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusDegenerated),
R"#()#" , py::arg("Status")
)
.def("StatusClosed",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusClosed),
R"#()#" , py::arg("Status")
)
.def("StatusSmall",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusSmall),
R"#()#" , py::arg("Status")
)
.def("StatusSelfIntersection",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusSelfIntersection),
R"#()#" , py::arg("Status")
)
.def("StatusLacking",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusLacking),
R"#()#" , py::arg("Status")
)
.def("StatusGaps3d",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusGaps3d),
R"#()#" , py::arg("Status")
)
.def("StatusGaps2d",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusGaps2d),
R"#()#" , py::arg("Status")
)
.def("StatusCurveGaps",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusCurveGaps),
R"#()#" , py::arg("Status")
)
.def("StatusLoop",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::StatusLoop),
R"#()#" , py::arg("Status")
)
.def("LastCheckStatus",
(Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeAnalysis_Wire::*)( const ShapeExtend_Status ) const>(&ShapeAnalysis_Wire::LastCheckStatus),
R"#(Querying the status of the LAST performed 'Advanced' checking procedure)#" , py::arg("Status")
)
.def("MinDistance3d",
(Standard_Real (ShapeAnalysis_Wire::*)() const) static_cast<Standard_Real (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::MinDistance3d),
R"#(Returns the last lowest distance in 3D computed by CheckOrientation, CheckConnected, CheckContinuity3d, CheckVertex, CheckNewVertex)#"
)
.def("MinDistance2d",
(Standard_Real (ShapeAnalysis_Wire::*)() const) static_cast<Standard_Real (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::MinDistance2d),
R"#(Returns the last lowest distance in 2D-UV computed by CheckContinuity2d)#"
)
.def("MaxDistance3d",
(Standard_Real (ShapeAnalysis_Wire::*)() const) static_cast<Standard_Real (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::MaxDistance3d),
R"#(Returns the last maximal distance in 3D computed by CheckOrientation, CheckConnected, CheckContinuity3d, CheckVertex, CheckNewVertex, CheckSameParameter)#"
)
.def("MaxDistance2d",
(Standard_Real (ShapeAnalysis_Wire::*)() const) static_cast<Standard_Real (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::MaxDistance2d),
R"#(Returns the last maximal distance in 2D-UV computed by CheckContinuity2d)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&ShapeAnalysis_Wire::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&ShapeAnalysis_Wire::get_type_descriptor),
R"#()#"
)
// 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("WireData",
( const handle<ShapeExtend_WireData> & (ShapeAnalysis_Wire::*)() const) static_cast< const handle<ShapeExtend_WireData> & (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::WireData),
R"#(Returns wire object being analyzed)#"
)
.def("Face",
( const TopoDS_Face & (ShapeAnalysis_Wire::*)() const) static_cast< const TopoDS_Face & (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::Face),
R"#(Returns the working face)#"
)
.def("Surface",
( const handle<ShapeAnalysis_Surface> & (ShapeAnalysis_Wire::*)() const) static_cast< const handle<ShapeAnalysis_Surface> & (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::Surface),
R"#(Returns the working surface)#"
)
.def("DynamicType",
( const handle<Standard_Type> & (ShapeAnalysis_Wire::*)() const) static_cast< const handle<Standard_Type> & (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::DynamicType),
R"#()#"
)
.def("WireData",
( const handle<ShapeExtend_WireData> & (ShapeAnalysis_Wire::*)() const) static_cast< const handle<ShapeExtend_WireData> & (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::WireData),
R"#(Returns wire object being analyzed)#"
)
.def("Face",
( const TopoDS_Face & (ShapeAnalysis_Wire::*)() const) static_cast< const TopoDS_Face & (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::Face),
R"#(Returns the working face)#"
)
.def("Surface",
( const handle<ShapeAnalysis_Surface> & (ShapeAnalysis_Wire::*)() const) static_cast< const handle<ShapeAnalysis_Surface> & (ShapeAnalysis_Wire::*)() const>(&ShapeAnalysis_Wire::Surface),
R"#(Returns the working surface)#"
)
;
// Class ShapeAnalysis_WireOrder from ./opencascade/ShapeAnalysis_WireOrder.hxx
klass = m.attr("ShapeAnalysis_WireOrder");
// nested enums
static_cast<py::class_<ShapeAnalysis_WireOrder , shared_ptr<ShapeAnalysis_WireOrder> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const Standard_Boolean, const Standard_Real, const Standard_Boolean >() , py::arg("theMode3D"), py::arg("theTolerance"), py::arg("theModeBoth")=static_cast< const Standard_Boolean>(Standard_False) )
// custom constructors
// methods
.def("SetMode",
(void (ShapeAnalysis_WireOrder::*)( const Standard_Boolean , const Standard_Real , const Standard_Boolean ) ) static_cast<void (ShapeAnalysis_WireOrder::*)( const Standard_Boolean , const Standard_Real , const Standard_Boolean ) >(&ShapeAnalysis_WireOrder::SetMode),
R"#(Sets new values. Clears the edge list if the mode (<theMode3D> or <theModeBoth> ) changes. Clears the connexion list. Warning: Parameter <theTolerance> is not used in algorithm.)#" , py::arg("theMode3D"), py::arg("theTolerance"), py::arg("theModeBoth")=static_cast< const Standard_Boolean>(Standard_False)
)
.def("Tolerance",
(Standard_Real (ShapeAnalysis_WireOrder::*)() const) static_cast<Standard_Real (ShapeAnalysis_WireOrder::*)() const>(&ShapeAnalysis_WireOrder::Tolerance),
R"#(Returns the working tolerance)#"
)
.def("Clear",
(void (ShapeAnalysis_WireOrder::*)() ) static_cast<void (ShapeAnalysis_WireOrder::*)() >(&ShapeAnalysis_WireOrder::Clear),
R"#(Clears the list of edges, but not mode and tol)#"
)
.def("Add",
(void (ShapeAnalysis_WireOrder::*)( const gp_XYZ & , const gp_XYZ & ) ) static_cast<void (ShapeAnalysis_WireOrder::*)( const gp_XYZ & , const gp_XYZ & ) >(&ShapeAnalysis_WireOrder::Add),
R"#(Adds a couple of points 3D (start, end))#" , py::arg("theStart3d"), py::arg("theEnd3d")
)
.def("Add",
(void (ShapeAnalysis_WireOrder::*)( const gp_XY & , const gp_XY & ) ) static_cast<void (ShapeAnalysis_WireOrder::*)( const gp_XY & , const gp_XY & ) >(&ShapeAnalysis_WireOrder::Add),
R"#(Adds a couple of points 2D (start, end))#" , py::arg("theStart2d"), py::arg("theEnd2d")
)
.def("Add",
(void (ShapeAnalysis_WireOrder::*)( const gp_XYZ & , const gp_XYZ & , const gp_XY & , const gp_XY & ) ) static_cast<void (ShapeAnalysis_WireOrder::*)( const gp_XYZ & , const gp_XYZ & , const gp_XY & , const gp_XY & ) >(&ShapeAnalysis_WireOrder::Add),
R"#(Adds a couple of points 3D and 2D (start, end))#" , py::arg("theStart3d"), py::arg("theEnd3d"), py::arg("theStart2d"), py::arg("theEnd2d")
)
.def("NbEdges",
(Standard_Integer (ShapeAnalysis_WireOrder::*)() const) static_cast<Standard_Integer (ShapeAnalysis_WireOrder::*)() const>(&ShapeAnalysis_WireOrder::NbEdges),
R"#(Returns the count of added couples of points (one per edges))#"
)
.def("Perform",
(void (ShapeAnalysis_WireOrder::*)( const Standard_Boolean ) ) static_cast<void (ShapeAnalysis_WireOrder::*)( const Standard_Boolean ) >(&ShapeAnalysis_WireOrder::Perform),
R"#(Computes the better order Optimised if the couples were already in order The criterium is : two couples in order if distance between end-prec and start-cur is less then starting tolerance <tol> Else, the smallest distance is reached Warning: Parameter <closed> not used)#" , py::arg("closed")=static_cast< const Standard_Boolean>(Standard_True)
)
.def("IsDone",
(Standard_Boolean (ShapeAnalysis_WireOrder::*)() const) static_cast<Standard_Boolean (ShapeAnalysis_WireOrder::*)() const>(&ShapeAnalysis_WireOrder::IsDone),
R"#(Tells if Perform has been done Else, the following methods returns original values)#"
)
.def("Status",
(Standard_Integer (ShapeAnalysis_WireOrder::*)() const) static_cast<Standard_Integer (ShapeAnalysis_WireOrder::*)() const>(&ShapeAnalysis_WireOrder::Status),
R"#(Returns the status of the order (0 if not done) : 0 : all edges are direct and in sequence 1 : all edges are direct but some are not in sequence -1 : some edges are reversed, but no gap remain 3 : edges in sequence are just shifted in forward or reverse manner)#"
)
.def("Ordered",
(Standard_Integer (ShapeAnalysis_WireOrder::*)( const Standard_Integer ) const) static_cast<Standard_Integer (ShapeAnalysis_WireOrder::*)( const Standard_Integer ) const>(&ShapeAnalysis_WireOrder::Ordered),
R"#(Returns the number of original edge which correspond to the newly ordered number <n> Warning : the returned value is NEGATIVE if edge should be reversed)#" , py::arg("theIdx")
)
.def("XYZ",
(void (ShapeAnalysis_WireOrder::*)( const Standard_Integer , gp_XYZ & , gp_XYZ & ) const) static_cast<void (ShapeAnalysis_WireOrder::*)( const Standard_Integer , gp_XYZ & , gp_XYZ & ) const>(&ShapeAnalysis_WireOrder::XYZ),
R"#(Returns the values of the couple <num>, as 3D values)#" , py::arg("theIdx"), py::arg("theStart3D"), py::arg("theEnd3D")
)
.def("XY",
(void (ShapeAnalysis_WireOrder::*)( const Standard_Integer , gp_XY & , gp_XY & ) const) static_cast<void (ShapeAnalysis_WireOrder::*)( const Standard_Integer , gp_XY & , gp_XY & ) const>(&ShapeAnalysis_WireOrder::XY),
R"#(Returns the values of the couple <num>, as 2D values)#" , py::arg("theIdx"), py::arg("theStart2D"), py::arg("theEnd2D")
)
.def("Gap",
(Standard_Real (ShapeAnalysis_WireOrder::*)( const Standard_Integer ) const) static_cast<Standard_Real (ShapeAnalysis_WireOrder::*)( const Standard_Integer ) const>(&ShapeAnalysis_WireOrder::Gap),
R"#(Returns the gap between a couple and its preceding <num> is considered ordered If <num> = 0 (D), returns the greatest gap found)#" , py::arg("num")=static_cast< const Standard_Integer>(0)
)
.def("SetChains",
(void (ShapeAnalysis_WireOrder::*)( const Standard_Real ) ) static_cast<void (ShapeAnalysis_WireOrder::*)( const Standard_Real ) >(&ShapeAnalysis_WireOrder::SetChains),
R"#(Determines the chains inside which successive edges have a gap less than a given value. Queried by NbChains and Chain)#" , py::arg("gap")
)
.def("NbChains",
(Standard_Integer (ShapeAnalysis_WireOrder::*)() const) static_cast<Standard_Integer (ShapeAnalysis_WireOrder::*)() const>(&ShapeAnalysis_WireOrder::NbChains),
R"#(Returns the count of computed chains)#"
)
.def("SetCouples",
(void (ShapeAnalysis_WireOrder::*)( const Standard_Real ) ) static_cast<void (ShapeAnalysis_WireOrder::*)( const Standard_Real ) >(&ShapeAnalysis_WireOrder::SetCouples),
R"#(Determines the couples of edges for which end and start fit inside a given gap. Queried by NbCouples and Couple Warning: function isn't implemented)#" , py::arg("gap")
)
.def("NbCouples",
(Standard_Integer (ShapeAnalysis_WireOrder::*)() const) static_cast<Standard_Integer (ShapeAnalysis_WireOrder::*)() const>(&ShapeAnalysis_WireOrder::NbCouples),
R"#(Returns the count of computed couples)#"
)
// methods using call by reference i.s.o. return
.def("Chain",
[]( ShapeAnalysis_WireOrder &self , const Standard_Integer num ){
Standard_Integer n1;
Standard_Integer n2;
self.Chain(num,n1,n2);
return std::make_tuple(n1,n2); },
R"#(Returns, for the chain n0 num, starting and ending numbers of edges. In the list of ordered edges (see Ordered for originals))#" , py::arg("num")
)
.def("Couple",
[]( ShapeAnalysis_WireOrder &self , const Standard_Integer num ){
Standard_Integer n1;
Standard_Integer n2;
self.Couple(num,n1,n2);
return std::make_tuple(n1,n2); },
R"#(Returns, for the couple n0 num, the two implied edges In the list of ordered edges)#" , py::arg("num")
)
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def_property("KeepLoopsMode",
[](ShapeAnalysis_WireOrder& self){return self.KeepLoopsMode();} ,
[](ShapeAnalysis_WireOrder& self, Standard_Boolean val){self.KeepLoopsMode() = val;}, R"#(If this mode is True method perform does not sort edges of different loops. The resulting order is first loop, second one etc...)#"
)
;
// Class ShapeAnalysis_WireVertex from ./opencascade/ShapeAnalysis_WireVertex.hxx
klass = m.attr("ShapeAnalysis_WireVertex");
// nested enums
static_cast<py::class_<ShapeAnalysis_WireVertex , shared_ptr<ShapeAnalysis_WireVertex> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Init",
(void (ShapeAnalysis_WireVertex::*)( const TopoDS_Wire & , const Standard_Real ) ) static_cast<void (ShapeAnalysis_WireVertex::*)( const TopoDS_Wire & , const Standard_Real ) >(&ShapeAnalysis_WireVertex::Init),
R"#()#" , py::arg("wire"), py::arg("preci")
)
.def("Init",
(void (ShapeAnalysis_WireVertex::*)( const handle<ShapeExtend_WireData> & , const Standard_Real ) ) static_cast<void (ShapeAnalysis_WireVertex::*)( const handle<ShapeExtend_WireData> & , const Standard_Real ) >(&ShapeAnalysis_WireVertex::Init),
R"#()#" , py::arg("swbd"), py::arg("preci")
)
.def("Load",
(void (ShapeAnalysis_WireVertex::*)( const TopoDS_Wire & ) ) static_cast<void (ShapeAnalysis_WireVertex::*)( const TopoDS_Wire & ) >(&ShapeAnalysis_WireVertex::Load),
R"#()#" , py::arg("wire")
)
.def("Load",
(void (ShapeAnalysis_WireVertex::*)( const handle<ShapeExtend_WireData> & ) ) static_cast<void (ShapeAnalysis_WireVertex::*)( const handle<ShapeExtend_WireData> & ) >(&ShapeAnalysis_WireVertex::Load),
R"#()#" , py::arg("sbwd")
)
.def("SetPrecision",
(void (ShapeAnalysis_WireVertex::*)( const Standard_Real ) ) static_cast<void (ShapeAnalysis_WireVertex::*)( const Standard_Real ) >(&ShapeAnalysis_WireVertex::SetPrecision),
R"#(Sets the precision for work Analysing: for each Vertex, comparison between the end of the preceding edge and the start of the following edge Each Vertex rank corresponds to the End Vertex of the Edge of same rank, in the ShapeExtend_WireData. I.E. for Vertex <num>, Edge <num> is the preceding one, <num+1> is the following one)#" , py::arg("preci")
)
.def("Analyze",
(void (ShapeAnalysis_WireVertex::*)() ) static_cast<void (ShapeAnalysis_WireVertex::*)() >(&ShapeAnalysis_WireVertex::Analyze),
R"#()#"
)
.def("SetSameVertex",
(void (ShapeAnalysis_WireVertex::*)( const Standard_Integer ) ) static_cast<void (ShapeAnalysis_WireVertex::*)( const Standard_Integer ) >(&ShapeAnalysis_WireVertex::SetSameVertex),
R"#(Records status "Same Vertex" (logically) on Vertex <num>)#" , py::arg("num")
)
.def("SetSameCoords",
(void (ShapeAnalysis_WireVertex::*)( const Standard_Integer ) ) static_cast<void (ShapeAnalysis_WireVertex::*)( const Standard_Integer ) >(&ShapeAnalysis_WireVertex::SetSameCoords),
R"#(Records status "Same Coords" (at the Vertices Tolerances))#" , py::arg("num")
)
.def("SetClose",
(void (ShapeAnalysis_WireVertex::*)( const Standard_Integer ) ) static_cast<void (ShapeAnalysis_WireVertex::*)( const Standard_Integer ) >(&ShapeAnalysis_WireVertex::SetClose),
R"#(Records status "Close Coords" (at the Precision of <me>))#" , py::arg("num")
)
.def("SetEnd",
(void (ShapeAnalysis_WireVertex::*)( const Standard_Integer , const gp_XYZ & , const Standard_Real ) ) static_cast<void (ShapeAnalysis_WireVertex::*)( const Standard_Integer , const gp_XYZ & , const Standard_Real ) >(&ShapeAnalysis_WireVertex::SetEnd),
R"#(<num> is the End of preceding Edge, and its projection on the following one lies on it at the Precision of <me> <ufol> gives the parameter on the following edge)#" , py::arg("num"), py::arg("pos"), py::arg("ufol")
)
.def("SetStart",
(void (ShapeAnalysis_WireVertex::*)( const Standard_Integer , const gp_XYZ & , const Standard_Real ) ) static_cast<void (ShapeAnalysis_WireVertex::*)( const Standard_Integer , const gp_XYZ & , const Standard_Real ) >(&ShapeAnalysis_WireVertex::SetStart),
R"#(<num> is the Start of following Edge, its projection on the preceding one lies on it at the Precision of <me> <upre> gives the parameter on the preceding edge)#" , py::arg("num"), py::arg("pos"), py::arg("upre")
)
.def("SetInters",
(void (ShapeAnalysis_WireVertex::*)( const Standard_Integer , const gp_XYZ & , const Standard_Real , const Standard_Real ) ) static_cast<void (ShapeAnalysis_WireVertex::*)( const Standard_Integer , const gp_XYZ & , const Standard_Real , const Standard_Real ) >(&ShapeAnalysis_WireVertex::SetInters),
R"#(<num> is the Intersection of both Edges <upre> is the parameter on preceding edge, <ufol> on following edge)#" , py::arg("num"), py::arg("pos"), py::arg("upre"), py::arg("ufol")
)
.def("SetDisjoined",
(void (ShapeAnalysis_WireVertex::*)( const Standard_Integer ) ) static_cast<void (ShapeAnalysis_WireVertex::*)( const Standard_Integer ) >(&ShapeAnalysis_WireVertex::SetDisjoined),
R"#(<num> cannot be said as same vertex)#" , py::arg("num")
)
.def("IsDone",
(Standard_Boolean (ShapeAnalysis_WireVertex::*)() const) static_cast<Standard_Boolean (ShapeAnalysis_WireVertex::*)() const>(&ShapeAnalysis_WireVertex::IsDone),
R"#(Returns True if analysis was performed, else returns False)#"
)
.def("Precision",
(Standard_Real (ShapeAnalysis_WireVertex::*)() const) static_cast<Standard_Real (ShapeAnalysis_WireVertex::*)() const>(&ShapeAnalysis_WireVertex::Precision),
R"#(Returns precision value used in analysis)#"
)
.def("NbEdges",
(Standard_Integer (ShapeAnalysis_WireVertex::*)() const) static_cast<Standard_Integer (ShapeAnalysis_WireVertex::*)() const>(&ShapeAnalysis_WireVertex::NbEdges),
R"#(Returns the number of edges in analyzed wire (i.e. the length of all arrays))#"
)
.def("Status",
(Standard_Integer (ShapeAnalysis_WireVertex::*)( const Standard_Integer ) const) static_cast<Standard_Integer (ShapeAnalysis_WireVertex::*)( const Standard_Integer ) const>(&ShapeAnalysis_WireVertex::Status),
R"#(Returns the recorded status for a vertex More detail by method Data)#" , py::arg("num")
)
.def("Position",
(gp_XYZ (ShapeAnalysis_WireVertex::*)( const Standard_Integer ) const) static_cast<gp_XYZ (ShapeAnalysis_WireVertex::*)( const Standard_Integer ) const>(&ShapeAnalysis_WireVertex::Position),
R"#()#" , py::arg("num")
)
.def("UPrevious",
(Standard_Real (ShapeAnalysis_WireVertex::*)( const Standard_Integer ) const) static_cast<Standard_Real (ShapeAnalysis_WireVertex::*)( const Standard_Integer ) const>(&ShapeAnalysis_WireVertex::UPrevious),
R"#()#" , py::arg("num")
)
.def("UFollowing",
(Standard_Real (ShapeAnalysis_WireVertex::*)( const Standard_Integer ) const) static_cast<Standard_Real (ShapeAnalysis_WireVertex::*)( const Standard_Integer ) const>(&ShapeAnalysis_WireVertex::UFollowing),
R"#()#" , py::arg("num")
)
.def("Data",
(Standard_Integer (ShapeAnalysis_WireVertex::*)( const Standard_Integer , gp_XYZ & , Standard_Real & , Standard_Real & ) const) static_cast<Standard_Integer (ShapeAnalysis_WireVertex::*)( const Standard_Integer , gp_XYZ & , Standard_Real & , Standard_Real & ) const>(&ShapeAnalysis_WireVertex::Data),
R"#(Returns the recorded status for a vertex With its recorded position and parameters on both edges These values are relevant regarding the status: Status Meaning Position Preceding Following 0 Same no no no 1 SameCoord no no no 2 Close no no no 3 End yes no yes 4 Start yes yes no 5 Inters yes yes yes -1 Disjoined no no no)#" , py::arg("num"), py::arg("pos"), py::arg("upre"), py::arg("ufol")
)
.def("NextStatus",
(Standard_Integer (ShapeAnalysis_WireVertex::*)( const Standard_Integer , const Standard_Integer ) const) static_cast<Standard_Integer (ShapeAnalysis_WireVertex::*)( const Standard_Integer , const Standard_Integer ) const>(&ShapeAnalysis_WireVertex::NextStatus),
R"#(For a given status, returns the rank of the vertex which follows <num> and has the same status. 0 if no more Acts as an iterator, starts on the first one)#" , py::arg("stat"), py::arg("num")=static_cast< const Standard_Integer>(0)
)
.def("NextCriter",
(Standard_Integer (ShapeAnalysis_WireVertex::*)( const Standard_Integer , const Standard_Integer ) const) static_cast<Standard_Integer (ShapeAnalysis_WireVertex::*)( const Standard_Integer , const Standard_Integer ) const>(&ShapeAnalysis_WireVertex::NextCriter),
R"#(For a given criter, returns the rank of the vertex which follows <num> and has the same status. 0 if no more Acts as an iterator, starts on the first one Criters are: 0: same vertex (status 0) 1: a solution exists (status >= 0) 2: same coords (i.e. same params) (status 0 1 2) 3: same coods but not same vertex (status 1 2) 4: redefined coords (status 3 4 5) -1: no solution (status -1))#" , py::arg("crit"), py::arg("num")=static_cast< const Standard_Integer>(0)
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("WireData",
( const handle<ShapeExtend_WireData> & (ShapeAnalysis_WireVertex::*)() const) static_cast< const handle<ShapeExtend_WireData> & (ShapeAnalysis_WireVertex::*)() const>(&ShapeAnalysis_WireVertex::WireData),
R"#(Returns analyzed wire)#"
)
;
// Class ShapeAnalysis_TransferParametersProj from ./opencascade/ShapeAnalysis_TransferParametersProj.hxx
klass = m.attr("ShapeAnalysis_TransferParametersProj");
// nested enums
static_cast<py::class_<ShapeAnalysis_TransferParametersProj ,opencascade::handle<ShapeAnalysis_TransferParametersProj> , ShapeAnalysis_TransferParameters >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Edge &, const TopoDS_Face & >() , py::arg("E"), py::arg("F") )
// custom constructors
// methods
.def("Init",
(void (ShapeAnalysis_TransferParametersProj::*)( const TopoDS_Edge & , const TopoDS_Face & ) ) static_cast<void (ShapeAnalysis_TransferParametersProj::*)( const TopoDS_Edge & , const TopoDS_Face & ) >(&ShapeAnalysis_TransferParametersProj::Init),
R"#()#" , py::arg("E"), py::arg("F")
)
.def("Perform",
(handle<TColStd_HSequenceOfReal> (ShapeAnalysis_TransferParametersProj::*)( const handle<TColStd_HSequenceOfReal> & , const Standard_Boolean ) ) static_cast<handle<TColStd_HSequenceOfReal> (ShapeAnalysis_TransferParametersProj::*)( const handle<TColStd_HSequenceOfReal> & , const Standard_Boolean ) >(&ShapeAnalysis_TransferParametersProj::Perform),
R"#(Transfers parameters given by sequence Params from 3d curve to pcurve (if To2d is True) or back (if To2d is False))#" , py::arg("Papams"), py::arg("To2d")
)
.def("Perform",
(Standard_Real (ShapeAnalysis_TransferParametersProj::*)( const Standard_Real , const Standard_Boolean ) ) static_cast<Standard_Real (ShapeAnalysis_TransferParametersProj::*)( const Standard_Real , const Standard_Boolean ) >(&ShapeAnalysis_TransferParametersProj::Perform),
R"#(Transfers parameter given by Param from 3d curve to pcurve (if To2d is True) or back (if To2d is False))#" , py::arg("Param"), py::arg("To2d")
)
.def("TransferRange",
(void (ShapeAnalysis_TransferParametersProj::*)( TopoDS_Edge & , const Standard_Real , const Standard_Real , const Standard_Boolean ) ) static_cast<void (ShapeAnalysis_TransferParametersProj::*)( TopoDS_Edge & , const Standard_Real , const Standard_Real , const Standard_Boolean ) >(&ShapeAnalysis_TransferParametersProj::TransferRange),
R"#(Recomputes range of curves from NewEdge. If Is2d equals True parameters are recomputed by curve2d else by curve3d.)#" , py::arg("newEdge"), py::arg("prevPar"), py::arg("currPar"), py::arg("Is2d")
)
.def("IsSameRange",
(Standard_Boolean (ShapeAnalysis_TransferParametersProj::*)() const) static_cast<Standard_Boolean (ShapeAnalysis_TransferParametersProj::*)() const>(&ShapeAnalysis_TransferParametersProj::IsSameRange),
R"#(Returns False;)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("CopyNMVertex_s",
(TopoDS_Vertex (*)( const TopoDS_Vertex & , const TopoDS_Edge & , const TopoDS_Edge & ) ) static_cast<TopoDS_Vertex (*)( const TopoDS_Vertex & , const TopoDS_Edge & , const TopoDS_Edge & ) >(&ShapeAnalysis_TransferParametersProj::CopyNMVertex),
R"#(Make a copy of non-manifold vertex theVert (i.e. create new TVertex and replace PointRepresentations for this vertex from fromedge to toedge. Other representations were copied))#" , py::arg("theVert"), py::arg("toedge"), py::arg("fromedge")
)
.def_static("CopyNMVertex_s",
(TopoDS_Vertex (*)( const TopoDS_Vertex & , const TopoDS_Face & , const TopoDS_Face & ) ) static_cast<TopoDS_Vertex (*)( const TopoDS_Vertex & , const TopoDS_Face & , const TopoDS_Face & ) >(&ShapeAnalysis_TransferParametersProj::CopyNMVertex),
R"#(Make a copy of non-manifold vertex theVert (i.e. create new TVertex and replace PointRepresentations for this vertex from fromFace to toFace. Other representations were copied))#" , py::arg("theVert"), py::arg("toFace"), py::arg("fromFace")
)
.def_static("get_type_name_s",
( const char * (*)() ) static_cast< const char * (*)() >(&ShapeAnalysis_TransferParametersProj::get_type_name),
R"#()#"
)
.def_static("get_type_descriptor_s",
( const handle<Standard_Type> & (*)() ) static_cast< const handle<Standard_Type> & (*)() >(&ShapeAnalysis_TransferParametersProj::get_type_descriptor),
R"#()#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def_property("ForceProjection",
[](ShapeAnalysis_TransferParametersProj& self){return self.ForceProjection();} ,
[](ShapeAnalysis_TransferParametersProj& self, Standard_Boolean val){self.ForceProjection() = val;}, R"#(Returns modifiable flag forcing projection If it is False (default), projection is done only if edge is not SameParameter or if tolerance of edge is greater than MaxTolerance())#"
)
.def("DynamicType",
( const handle<Standard_Type> & (ShapeAnalysis_TransferParametersProj::*)() const) static_cast< const handle<Standard_Type> & (ShapeAnalysis_TransferParametersProj::*)() const>(&ShapeAnalysis_TransferParametersProj::DynamicType),
R"#()#"
)
;
// functions
// ./opencascade/ShapeAnalysis.hxx
// ./opencascade/ShapeAnalysis_BoxBndTree.hxx
// ./opencascade/ShapeAnalysis_CanonicalRecognition.hxx
// ./opencascade/ShapeAnalysis_CheckSmallFace.hxx
// ./opencascade/ShapeAnalysis_Curve.hxx
// ./opencascade/ShapeAnalysis_DataMapIteratorOfDataMapOfShapeListOfReal.hxx
// ./opencascade/ShapeAnalysis_DataMapOfShapeListOfReal.hxx
// ./opencascade/ShapeAnalysis_Edge.hxx
// ./opencascade/ShapeAnalysis_FreeBoundData.hxx
// ./opencascade/ShapeAnalysis_FreeBounds.hxx
// ./opencascade/ShapeAnalysis_FreeBoundsProperties.hxx
// ./opencascade/ShapeAnalysis_Geom.hxx
// ./opencascade/ShapeAnalysis_HSequenceOfFreeBounds.hxx
// ./opencascade/ShapeAnalysis_SequenceOfFreeBounds.hxx
// ./opencascade/ShapeAnalysis_ShapeContents.hxx
// ./opencascade/ShapeAnalysis_ShapeTolerance.hxx
// ./opencascade/ShapeAnalysis_Shell.hxx
// ./opencascade/ShapeAnalysis_Surface.hxx
// ./opencascade/ShapeAnalysis_TransferParameters.hxx
// ./opencascade/ShapeAnalysis_TransferParametersProj.hxx
// ./opencascade/ShapeAnalysis_Wire.hxx
// ./opencascade/ShapeAnalysis_WireOrder.hxx
// ./opencascade/ShapeAnalysis_WireVertex.hxx
// Additional functions
// operators
// register typdefs
register_template_NCollection_UBTree<Standard_Integer, Bnd_Box>(m,"ShapeAnalysis_BoxBndTree");
register_template_NCollection_DataMap<TopoDS_Shape, TColStd_ListOfReal, TopTools_ShapeMapHasher>(m,"ShapeAnalysis_DataMapOfShapeListOfReal");
register_template_NCollection_Sequence<opencascade::handle<ShapeAnalysis_FreeBoundData>>(m,"ShapeAnalysis_SequenceOfFreeBounds");
// exceptions
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|