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 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568
|
// 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>
#include <TColStd_HArray1OfReal.hxx>
// includes to resolve forward declarations
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Shape.hxx>
#include <ShapeBuild_ReShape.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <ShapeExtend_CompositeSurface.hxx>
#include <ShapeAnalysis_TransferParameters.hxx>
#include <ShapeExtend_WireData.hxx>
#include <gp_Lin2d.hxx>
#include <Geom_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <ShapeConstruct_ProjectCurveOnSurface.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Face.hxx>
#include <Geom_Surface.hxx>
#include <TopLoc_Location.hxx>
#include <ShapeAnalysis_Surface.hxx>
#include <ShapeBuild_ReShape.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Edge.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Geom2d_Curve.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <ShapeAnalysis_Surface.hxx>
#include <ShapeFix_Wire.hxx>
#include <Geom_Surface.hxx>
#include <TopoDS_Wire.hxx>
#include <ShapeExtend_WireData.hxx>
#include <TopoDS_Vertex.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS_Shell.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Compound.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <ShapeBuild_ReShape.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 <ShapeBuild_ReShape.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopoDS_Face.hxx>
#include <ShapeExtend_WireData.hxx>
#include <Geom2d_Curve.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <ShapeBuild_ReShape.hxx>
#include <Message_Msg.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 <ShapeFix_Edge.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Shape.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <ShapeFix_Face.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <ShapeFix_Shell.hxx>
#include <TopoDS_Solid.hxx>
#include <TopoDS_Shell.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopoDS_Face.hxx>
#include <ShapeBuild_ReShape.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <ShapeFix_Edge.hxx>
#include <Geom_Surface.hxx>
#include <ShapeAnalysis_WireOrder.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <ShapeExtend_WireData.hxx>
#include <TopoDS_Wire.hxx>
#include <TopoDS_Edge.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TopoDS_Wire.hxx>
#include <ShapeExtend_WireData.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
// module includes
#include <ShapeFix.hxx>
#include <ShapeFix_ComposeShell.hxx>
#include <ShapeFix_DataMapIteratorOfDataMapOfShapeBox2d.hxx>
#include <ShapeFix_DataMapOfShapeBox2d.hxx>
#include <ShapeFix_Edge.hxx>
#include <ShapeFix_EdgeConnect.hxx>
#include <ShapeFix_EdgeProjAux.hxx>
#include <ShapeFix_Face.hxx>
#include <ShapeFix_FaceConnect.hxx>
#include <ShapeFix_FixSmallFace.hxx>
#include <ShapeFix_FixSmallSolid.hxx>
#include <ShapeFix_FreeBounds.hxx>
#include <ShapeFix_IntersectionTool.hxx>
#include <ShapeFix_Root.hxx>
#include <ShapeFix_SequenceOfWireSegment.hxx>
#include <ShapeFix_Shape.hxx>
#include <ShapeFix_ShapeTolerance.hxx>
#include <ShapeFix_Shell.hxx>
#include <ShapeFix_Solid.hxx>
#include <ShapeFix_SplitCommonVertex.hxx>
#include <ShapeFix_SplitTool.hxx>
#include <ShapeFix_Wire.hxx>
#include <ShapeFix_Wireframe.hxx>
#include <ShapeFix_WireSegment.hxx>
#include <ShapeFix_WireVertex.hxx>
// template related includes
// ./opencascade/ShapeFix_DataMapOfShapeBox2d.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/ShapeFix_DataMapOfShapeBox2d.hxx
#include "NCollection_tmpl.hxx"
// ./opencascade/ShapeFix_SequenceOfWireSegment.hxx
#include "NCollection_tmpl.hxx"
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_ShapeFix(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("ShapeFix"));
py::object klass;
//Python trampoline classes
// classes
// Class ShapeFix from ./opencascade/ShapeFix.hxx
klass = m.attr("ShapeFix");
// default constructor
register_default_constructor<ShapeFix , shared_ptr<ShapeFix>>(m,"ShapeFix");
// nested enums
static_cast<py::class_<ShapeFix , shared_ptr<ShapeFix> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("SameParameter_s",
(Standard_Boolean (*)( const TopoDS_Shape & , const Standard_Boolean , const Standard_Real , const Message_ProgressRange & , const opencascade::handle<ShapeExtend_BasicMsgRegistrator> & ) ) static_cast<Standard_Boolean (*)( const TopoDS_Shape & , const Standard_Boolean , const Standard_Real , const Message_ProgressRange & , const opencascade::handle<ShapeExtend_BasicMsgRegistrator> & ) >(&ShapeFix::SameParameter),
R"#(Runs SameParameter from BRepLib with these adaptations : <enforce> forces computations, else they are made only on Edges with flag SameParameter false <preci>, if not precised, is taken for each EDge as its own Tolerance Returns True when done, False if an exception has been raised In case of exception anyway, as many edges as possible have been processed. The passed progress indicator allows user to consult the current progress stage and abort algorithm if needed.)#" , py::arg("shape"), py::arg("enforce"), py::arg("preci")=static_cast<const Standard_Real>(0.0), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( )), py::arg("theMsgReg")=static_cast<const opencascade::handle<ShapeExtend_BasicMsgRegistrator> &>(0)
)
.def_static("EncodeRegularity_s",
(void (*)( const TopoDS_Shape & , const Standard_Real ) ) static_cast<void (*)( const TopoDS_Shape & , const Standard_Real ) >(&ShapeFix::EncodeRegularity),
R"#(Runs EncodeRegularity from BRepLib taking into account shared components of assemblies, so that each component is processed only once)#" , py::arg("shape"), py::arg("tolang")=static_cast<const Standard_Real>(1.0e-10)
)
.def_static("RemoveSmallEdges_s",
(TopoDS_Shape (*)( TopoDS_Shape & , const Standard_Real , opencascade::handle<ShapeBuild_ReShape> & ) ) static_cast<TopoDS_Shape (*)( TopoDS_Shape & , const Standard_Real , opencascade::handle<ShapeBuild_ReShape> & ) >(&ShapeFix::RemoveSmallEdges),
R"#(Removes edges which are less than given tolerance from shape with help of ShapeFix_Wire::FixSmall())#" , py::arg("shape"), py::arg("Tolerance"), py::arg("context")
)
.def_static("FixVertexPosition_s",
(Standard_Boolean (*)( TopoDS_Shape & , const Standard_Real , const opencascade::handle<ShapeBuild_ReShape> & ) ) static_cast<Standard_Boolean (*)( TopoDS_Shape & , const Standard_Real , const opencascade::handle<ShapeBuild_ReShape> & ) >(&ShapeFix::FixVertexPosition),
R"#(Fix position of the vertices having tolerance more tnan specified one.;)#" , py::arg("theshape"), py::arg("theTolerance"), py::arg("thecontext")
)
.def_static("LeastEdgeSize_s",
(Standard_Real (*)( TopoDS_Shape & ) ) static_cast<Standard_Real (*)( TopoDS_Shape & ) >(&ShapeFix::LeastEdgeSize),
R"#(Calculate size of least edge;)#" , py::arg("theshape")
)
// 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 ShapeFix_Edge from ./opencascade/ShapeFix_Edge.hxx
klass = m.attr("ShapeFix_Edge");
// nested enums
static_cast<py::class_<ShapeFix_Edge ,opencascade::handle<ShapeFix_Edge> , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Projector",
(opencascade::handle<ShapeConstruct_ProjectCurveOnSurface> (ShapeFix_Edge::*)() ) static_cast<opencascade::handle<ShapeConstruct_ProjectCurveOnSurface> (ShapeFix_Edge::*)() >(&ShapeFix_Edge::Projector),
R"#(Returns the projector used for recomputing missing pcurves Can be used for adjusting parameters of projector)#"
)
.def("FixRemovePCurve",
(Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & ) ) static_cast<Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & ) >(&ShapeFix_Edge::FixRemovePCurve),
R"#(None)#" , py::arg("edge"), py::arg("face")
)
.def("FixRemovePCurve",
(Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const opencascade::handle<Geom_Surface> & , const TopLoc_Location & ) ) static_cast<Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const opencascade::handle<Geom_Surface> & , const TopLoc_Location & ) >(&ShapeFix_Edge::FixRemovePCurve),
R"#(Removes the pcurve(s) of the edge if it does not match the vertices Check is done Use : It is to be called when pcurve of an edge can be wrong (e.g., after import from IGES) Returns: True, if does not match, removed (status DONE) False, (status OK) if matches or (status FAIL) if no pcurve, nothing done)#" , py::arg("edge"), py::arg("surface"), py::arg("location")
)
.def("FixRemoveCurve3d",
(Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & ) ) static_cast<Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & ) >(&ShapeFix_Edge::FixRemoveCurve3d),
R"#(Removes 3d curve of the edge if it does not match the vertices Returns: True, if does not match, removed (status DONE) False, (status OK) if matches or (status FAIL) if no 3d curve, nothing done)#" , py::arg("edge")
)
.def("FixAddPCurve",
(Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & , const Standard_Boolean , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & , const Standard_Boolean , const Standard_Real ) >(&ShapeFix_Edge::FixAddPCurve),
R"#(See method below for information)#" , py::arg("edge"), py::arg("face"), py::arg("isSeam"), py::arg("prec")=static_cast<const Standard_Real>(0.0)
)
.def("FixAddPCurve",
(Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const opencascade::handle<Geom_Surface> & , const TopLoc_Location & , const Standard_Boolean , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const opencascade::handle<Geom_Surface> & , const TopLoc_Location & , const Standard_Boolean , const Standard_Real ) >(&ShapeFix_Edge::FixAddPCurve),
R"#(See method below for information)#" , py::arg("edge"), py::arg("surface"), py::arg("location"), py::arg("isSeam"), py::arg("prec")=static_cast<const Standard_Real>(0.0)
)
.def("FixAddPCurve",
(Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & , const Standard_Boolean , const opencascade::handle<ShapeAnalysis_Surface> & , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & , const Standard_Boolean , const opencascade::handle<ShapeAnalysis_Surface> & , const Standard_Real ) >(&ShapeFix_Edge::FixAddPCurve),
R"#(See method below for information)#" , py::arg("edge"), py::arg("face"), py::arg("isSeam"), py::arg("surfana"), py::arg("prec")=static_cast<const Standard_Real>(0.0)
)
.def("FixAddPCurve",
(Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const opencascade::handle<Geom_Surface> & , const TopLoc_Location & , const Standard_Boolean , const opencascade::handle<ShapeAnalysis_Surface> & , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const opencascade::handle<Geom_Surface> & , const TopLoc_Location & , const Standard_Boolean , const opencascade::handle<ShapeAnalysis_Surface> & , const Standard_Real ) >(&ShapeFix_Edge::FixAddPCurve),
R"#(Adds pcurve(s) of the edge if missing (by projecting 3d curve) Parameter isSeam indicates if the edge is a seam. The parameter <prec> defines the precision for calculations. If it is 0 (default), the tolerance of the edge is taken. Remark : This method is rather for internal use since it accepts parameter <surfana> for optimization of computations Use : It is to be called after FixRemovePCurve (if removed) or in any case when edge can have no pcurve Returns: True if pcurve was added, else False Status : OK : Pcurve exists FAIL1: No 3d curve FAIL2: fail during projecting DONE1: Pcurve was added DONE2: specific case of pcurve going through degenerated point on sphere encountered during projection (see class ShapeConstruct_ProjectCurveOnSurface for more info))#" , py::arg("edge"), py::arg("surface"), py::arg("location"), py::arg("isSeam"), py::arg("surfana"), py::arg("prec")=static_cast<const Standard_Real>(0.0)
)
.def("FixAddCurve3d",
(Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & ) ) static_cast<Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & ) >(&ShapeFix_Edge::FixAddCurve3d),
R"#(Tries to build 3d curve of the edge if missing Use : It is to be called after FixRemoveCurve3d (if removed) or in any case when edge can have no 3d curve Returns: True if 3d curve was added, else False Status : OK : 3d curve exists FAIL1: BRepLib::BuildCurve3d() has failed DONE1: 3d curve was added)#" , py::arg("edge")
)
.def("FixVertexTolerance",
(Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & ) ) static_cast<Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & ) >(&ShapeFix_Edge::FixVertexTolerance),
R"#(None)#" , py::arg("edge"), py::arg("face")
)
.def("FixVertexTolerance",
(Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & ) ) static_cast<Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & ) >(&ShapeFix_Edge::FixVertexTolerance),
R"#(Increases the 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) Returns: True, if tolerances have been increased, otherwise False Status: OK : the original tolerances have not been changed DONE1: the tolerance of first vertex has been increased DONE2: the tolerance of last vertex has been increased)#" , py::arg("edge")
)
.def("FixReversed2d",
(Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & ) ) static_cast<Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & ) >(&ShapeFix_Edge::FixReversed2d),
R"#(None)#" , py::arg("edge"), py::arg("face")
)
.def("FixReversed2d",
(Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const opencascade::handle<Geom_Surface> & , const TopLoc_Location & ) ) static_cast<Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const opencascade::handle<Geom_Surface> & , const TopLoc_Location & ) >(&ShapeFix_Edge::FixReversed2d),
R"#(Fixes edge if pcurve is directed opposite to 3d curve Check is done by call to the function ShapeAnalysis_Edge::CheckCurve3dWithPCurve() Warning: For seam edge this method will check and fix the pcurve in only one direction. Hence, it should be called twice for seam edge: once with edge orientation FORWARD and once with REVERSED. Returns: False if nothing done, True if reversed (status DONE) Status: OK - pcurve OK, nothing done FAIL1 - no pcurve FAIL2 - no 3d curve DONE1 - pcurve was reversed)#" , py::arg("edge"), py::arg("surface"), py::arg("location")
)
.def("FixSameParameter",
(Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const Standard_Real ) >(&ShapeFix_Edge::FixSameParameter),
R"#(Tries to make edge SameParameter and sets corresponding tolerance and SameParameter flag. First, it makes edge same range if SameRange flag is not set.)#" , py::arg("edge"), py::arg("tolerance")=static_cast<const Standard_Real>(0.0)
)
.def("FixSameParameter",
(Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeFix_Edge::*)( const TopoDS_Edge & , const TopoDS_Face & , const Standard_Real ) >(&ShapeFix_Edge::FixSameParameter),
R"#(Tries to make edge SameParameter and sets corresponding tolerance and SameParameter flag. First, it makes edge same range if SameRange flag is not set.)#" , py::arg("edge"), py::arg("face"), py::arg("tolerance")=static_cast<const Standard_Real>(0.0)
)
.def("Status",
(Standard_Boolean (ShapeFix_Edge::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Edge::*)( const ShapeExtend_Status ) const>(&ShapeFix_Edge::Status),
R"#(Returns the status (in the form of True/False) of last Fix)#" , py::arg("status")
)
.def("SetContext",
(void (ShapeFix_Edge::*)( const opencascade::handle<ShapeBuild_ReShape> & ) ) static_cast<void (ShapeFix_Edge::*)( const opencascade::handle<ShapeBuild_ReShape> & ) >(&ShapeFix_Edge::SetContext),
R"#(Sets context)#" , py::arg("context")
)
.def("Context",
(opencascade::handle<ShapeBuild_ReShape> (ShapeFix_Edge::*)() const) static_cast<opencascade::handle<ShapeBuild_ReShape> (ShapeFix_Edge::*)() const>(&ShapeFix_Edge::Context),
R"#(Returns context)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&ShapeFix_Edge::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&ShapeFix_Edge::get_type_descriptor),
R"#(None)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (ShapeFix_Edge::*)() const) static_cast<const opencascade::handle<Standard_Type> & (ShapeFix_Edge::*)() const>(&ShapeFix_Edge::DynamicType),
R"#(None)#"
)
;
// Class ShapeFix_EdgeConnect from ./opencascade/ShapeFix_EdgeConnect.hxx
klass = m.attr("ShapeFix_EdgeConnect");
// nested enums
static_cast<py::class_<ShapeFix_EdgeConnect , shared_ptr<ShapeFix_EdgeConnect> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Add",
(void (ShapeFix_EdgeConnect::*)( const TopoDS_Edge & , const TopoDS_Edge & ) ) static_cast<void (ShapeFix_EdgeConnect::*)( const TopoDS_Edge & , const TopoDS_Edge & ) >(&ShapeFix_EdgeConnect::Add),
R"#(Adds information on connectivity between start vertex of second edge and end vertex of first edge, taking edges orientation into account)#" , py::arg("aFirst"), py::arg("aSecond")
)
.def("Add",
(void (ShapeFix_EdgeConnect::*)( const TopoDS_Shape & ) ) static_cast<void (ShapeFix_EdgeConnect::*)( const TopoDS_Shape & ) >(&ShapeFix_EdgeConnect::Add),
R"#(Adds connectivity information for the whole shape. Note: edges in wires must be well ordered Note: flag Closed should be set for closed wires)#" , py::arg("aShape")
)
.def("Build",
(void (ShapeFix_EdgeConnect::*)() ) static_cast<void (ShapeFix_EdgeConnect::*)() >(&ShapeFix_EdgeConnect::Build),
R"#(Builds shared vertices, updates their positions and tolerances)#"
)
.def("Clear",
(void (ShapeFix_EdgeConnect::*)() ) static_cast<void (ShapeFix_EdgeConnect::*)() >(&ShapeFix_EdgeConnect::Clear),
R"#(Clears internal data structure)#"
)
// 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 ShapeFix_EdgeProjAux from ./opencascade/ShapeFix_EdgeProjAux.hxx
klass = m.attr("ShapeFix_EdgeProjAux");
// nested enums
static_cast<py::class_<ShapeFix_EdgeProjAux ,opencascade::handle<ShapeFix_EdgeProjAux> , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Face &,const TopoDS_Edge & >() , py::arg("F"), py::arg("E") )
// custom constructors
// methods
.def("Init",
(void (ShapeFix_EdgeProjAux::*)( const TopoDS_Face & , const TopoDS_Edge & ) ) static_cast<void (ShapeFix_EdgeProjAux::*)( const TopoDS_Face & , const TopoDS_Edge & ) >(&ShapeFix_EdgeProjAux::Init),
R"#(None)#" , py::arg("F"), py::arg("E")
)
.def("Compute",
(void (ShapeFix_EdgeProjAux::*)( const Standard_Real ) ) static_cast<void (ShapeFix_EdgeProjAux::*)( const Standard_Real ) >(&ShapeFix_EdgeProjAux::Compute),
R"#(None)#" , py::arg("preci")
)
.def("IsFirstDone",
(Standard_Boolean (ShapeFix_EdgeProjAux::*)() const) static_cast<Standard_Boolean (ShapeFix_EdgeProjAux::*)() const>(&ShapeFix_EdgeProjAux::IsFirstDone),
R"#(None)#"
)
.def("IsLastDone",
(Standard_Boolean (ShapeFix_EdgeProjAux::*)() const) static_cast<Standard_Boolean (ShapeFix_EdgeProjAux::*)() const>(&ShapeFix_EdgeProjAux::IsLastDone),
R"#(None)#"
)
.def("FirstParam",
(Standard_Real (ShapeFix_EdgeProjAux::*)() const) static_cast<Standard_Real (ShapeFix_EdgeProjAux::*)() const>(&ShapeFix_EdgeProjAux::FirstParam),
R"#(None)#"
)
.def("LastParam",
(Standard_Real (ShapeFix_EdgeProjAux::*)() const) static_cast<Standard_Real (ShapeFix_EdgeProjAux::*)() const>(&ShapeFix_EdgeProjAux::LastParam),
R"#(None)#"
)
.def("IsIso",
(Standard_Boolean (ShapeFix_EdgeProjAux::*)( const opencascade::handle<Geom2d_Curve> & ) ) static_cast<Standard_Boolean (ShapeFix_EdgeProjAux::*)( const opencascade::handle<Geom2d_Curve> & ) >(&ShapeFix_EdgeProjAux::IsIso),
R"#(None)#" , py::arg("C")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&ShapeFix_EdgeProjAux::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&ShapeFix_EdgeProjAux::get_type_descriptor),
R"#(None)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (ShapeFix_EdgeProjAux::*)() const) static_cast<const opencascade::handle<Standard_Type> & (ShapeFix_EdgeProjAux::*)() const>(&ShapeFix_EdgeProjAux::DynamicType),
R"#(None)#"
)
;
// Class ShapeFix_FaceConnect from ./opencascade/ShapeFix_FaceConnect.hxx
klass = m.attr("ShapeFix_FaceConnect");
// nested enums
static_cast<py::class_<ShapeFix_FaceConnect , shared_ptr<ShapeFix_FaceConnect> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Add",
(Standard_Boolean (ShapeFix_FaceConnect::*)( const TopoDS_Face & , const TopoDS_Face & ) ) static_cast<Standard_Boolean (ShapeFix_FaceConnect::*)( const TopoDS_Face & , const TopoDS_Face & ) >(&ShapeFix_FaceConnect::Add),
R"#(None)#" , py::arg("aFirst"), py::arg("aSecond")
)
.def("Build",
(TopoDS_Shell (ShapeFix_FaceConnect::*)( const TopoDS_Shell & , const Standard_Real , const Standard_Real ) ) static_cast<TopoDS_Shell (ShapeFix_FaceConnect::*)( const TopoDS_Shell & , const Standard_Real , const Standard_Real ) >(&ShapeFix_FaceConnect::Build),
R"#(None)#" , py::arg("shell"), py::arg("sewtoler"), py::arg("fixtoler")
)
.def("Clear",
(void (ShapeFix_FaceConnect::*)() ) static_cast<void (ShapeFix_FaceConnect::*)() >(&ShapeFix_FaceConnect::Clear),
R"#(Clears internal data structure)#"
)
// 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 ShapeFix_FreeBounds from ./opencascade/ShapeFix_FreeBounds.hxx
klass = m.attr("ShapeFix_FreeBounds");
// nested enums
static_cast<py::class_<ShapeFix_FreeBounds , shared_ptr<ShapeFix_FreeBounds> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Shape &,const Standard_Real,const Standard_Real,const Standard_Boolean,const Standard_Boolean >() , py::arg("shape"), py::arg("sewtoler"), py::arg("closetoler"), py::arg("splitclosed"), py::arg("splitopen") )
.def(py::init< const TopoDS_Shape &,const Standard_Real,const Standard_Boolean,const Standard_Boolean >() , py::arg("shape"), py::arg("closetoler"), py::arg("splitclosed"), py::arg("splitopen") )
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("GetClosedWires",
(const TopoDS_Compound & (ShapeFix_FreeBounds::*)() const) static_cast<const TopoDS_Compound & (ShapeFix_FreeBounds::*)() const>(&ShapeFix_FreeBounds::GetClosedWires),
R"#(Returns compound of closed wires out of free edges.)#"
)
.def("GetOpenWires",
(const TopoDS_Compound & (ShapeFix_FreeBounds::*)() const) static_cast<const TopoDS_Compound & (ShapeFix_FreeBounds::*)() const>(&ShapeFix_FreeBounds::GetOpenWires),
R"#(Returns compound of open wires out of free edges.)#"
)
.def("GetShape",
(const TopoDS_Shape & (ShapeFix_FreeBounds::*)() const) static_cast<const TopoDS_Shape & (ShapeFix_FreeBounds::*)() const>(&ShapeFix_FreeBounds::GetShape),
R"#(Returns modified source shape.)#"
)
.def("GetClosedWires",
(const TopoDS_Compound & (ShapeFix_FreeBounds::*)() const) static_cast<const TopoDS_Compound & (ShapeFix_FreeBounds::*)() const>(&ShapeFix_FreeBounds::GetClosedWires),
R"#(Returns compound of closed wires out of free edges.)#"
)
.def("GetOpenWires",
(const TopoDS_Compound & (ShapeFix_FreeBounds::*)() const) static_cast<const TopoDS_Compound & (ShapeFix_FreeBounds::*)() const>(&ShapeFix_FreeBounds::GetOpenWires),
R"#(Returns compound of open wires out of free edges.)#"
)
.def("GetShape",
(const TopoDS_Shape & (ShapeFix_FreeBounds::*)() const) static_cast<const TopoDS_Shape & (ShapeFix_FreeBounds::*)() const>(&ShapeFix_FreeBounds::GetShape),
R"#(Returns modified source shape.)#"
)
;
// Class ShapeFix_IntersectionTool from ./opencascade/ShapeFix_IntersectionTool.hxx
klass = m.attr("ShapeFix_IntersectionTool");
// nested enums
static_cast<py::class_<ShapeFix_IntersectionTool , shared_ptr<ShapeFix_IntersectionTool> >>(klass)
// constructors
.def(py::init< const opencascade::handle<ShapeBuild_ReShape> &,const Standard_Real,const Standard_Real >() , py::arg("context"), py::arg("preci"), py::arg("maxtol")=static_cast<const Standard_Real>(1.0) )
// custom constructors
// methods
.def("Context",
(opencascade::handle<ShapeBuild_ReShape> (ShapeFix_IntersectionTool::*)() const) static_cast<opencascade::handle<ShapeBuild_ReShape> (ShapeFix_IntersectionTool::*)() const>(&ShapeFix_IntersectionTool::Context),
R"#(Returns context)#"
)
.def("SplitEdge",
(Standard_Boolean (ShapeFix_IntersectionTool::*)( const TopoDS_Edge & , const Standard_Real , const TopoDS_Vertex & , const TopoDS_Face & , TopoDS_Edge & , TopoDS_Edge & , const Standard_Real ) const) static_cast<Standard_Boolean (ShapeFix_IntersectionTool::*)( const TopoDS_Edge & , const Standard_Real , const TopoDS_Vertex & , const TopoDS_Face & , TopoDS_Edge & , TopoDS_Edge & , const Standard_Real ) const>(&ShapeFix_IntersectionTool::SplitEdge),
R"#(Split edge on two new edges using new vertex "vert" and "param" - parameter for splitting The "face" is necessary for pcurves and using TransferParameterProj)#" , py::arg("edge"), py::arg("param"), py::arg("vert"), py::arg("face"), py::arg("newE1"), py::arg("newE2"), py::arg("preci")
)
.def("CutEdge",
(Standard_Boolean (ShapeFix_IntersectionTool::*)( const TopoDS_Edge & , const Standard_Real , const Standard_Real , const TopoDS_Face & , Standard_Boolean & ) const) static_cast<Standard_Boolean (ShapeFix_IntersectionTool::*)( const TopoDS_Edge & , const Standard_Real , const Standard_Real , const TopoDS_Face & , Standard_Boolean & ) const>(&ShapeFix_IntersectionTool::CutEdge),
R"#(Cut edge by parameters pend and cut)#" , py::arg("edge"), py::arg("pend"), py::arg("cut"), py::arg("face"), py::arg("iscutline")
)
.def("FixSelfIntersectWire",
(Standard_Boolean (ShapeFix_IntersectionTool::*)( opencascade::handle<ShapeExtend_WireData> & , const TopoDS_Face & , Standard_Integer & , Standard_Integer & , Standard_Integer & ) const) static_cast<Standard_Boolean (ShapeFix_IntersectionTool::*)( opencascade::handle<ShapeExtend_WireData> & , const TopoDS_Face & , Standard_Integer & , Standard_Integer & , Standard_Integer & ) const>(&ShapeFix_IntersectionTool::FixSelfIntersectWire),
R"#(None)#" , py::arg("sewd"), py::arg("face"), py::arg("NbSplit"), py::arg("NbCut"), py::arg("NbRemoved")
)
.def("FixIntersectingWires",
(Standard_Boolean (ShapeFix_IntersectionTool::*)( TopoDS_Face & ) const) static_cast<Standard_Boolean (ShapeFix_IntersectionTool::*)( TopoDS_Face & ) const>(&ShapeFix_IntersectionTool::FixIntersectingWires),
R"#(None)#" , py::arg("face")
)
.def("Context",
(opencascade::handle<ShapeBuild_ReShape> (ShapeFix_IntersectionTool::*)() const) static_cast<opencascade::handle<ShapeBuild_ReShape> (ShapeFix_IntersectionTool::*)() const>(&ShapeFix_IntersectionTool::Context),
R"#(Returns context)#"
)
// 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 ShapeFix_Root from ./opencascade/ShapeFix_Root.hxx
klass = m.attr("ShapeFix_Root");
// nested enums
static_cast<py::class_<ShapeFix_Root ,opencascade::handle<ShapeFix_Root> , Standard_Transient >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Set",
(void (ShapeFix_Root::*)( const opencascade::handle<ShapeFix_Root> & ) ) static_cast<void (ShapeFix_Root::*)( const opencascade::handle<ShapeFix_Root> & ) >(&ShapeFix_Root::Set),
R"#(Copy all fields from another Root object)#" , py::arg("Root")
)
.def("SetContext",
(void (ShapeFix_Root::*)( const opencascade::handle<ShapeBuild_ReShape> & ) ) static_cast<void (ShapeFix_Root::*)( const opencascade::handle<ShapeBuild_ReShape> & ) >(&ShapeFix_Root::SetContext),
R"#(Sets context)#" , py::arg("context")
)
.def("Context",
(opencascade::handle<ShapeBuild_ReShape> (ShapeFix_Root::*)() const) static_cast<opencascade::handle<ShapeBuild_ReShape> (ShapeFix_Root::*)() const>(&ShapeFix_Root::Context),
R"#(Returns context)#"
)
.def("SetMsgRegistrator",
(void (ShapeFix_Root::*)( const opencascade::handle<ShapeExtend_BasicMsgRegistrator> & ) ) static_cast<void (ShapeFix_Root::*)( const opencascade::handle<ShapeExtend_BasicMsgRegistrator> & ) >(&ShapeFix_Root::SetMsgRegistrator),
R"#(Sets message registrator)#" , py::arg("msgreg")
)
.def("MsgRegistrator",
(opencascade::handle<ShapeExtend_BasicMsgRegistrator> (ShapeFix_Root::*)() const) static_cast<opencascade::handle<ShapeExtend_BasicMsgRegistrator> (ShapeFix_Root::*)() const>(&ShapeFix_Root::MsgRegistrator),
R"#(Returns message registrator)#"
)
.def("SetPrecision",
(void (ShapeFix_Root::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Root::*)( const Standard_Real ) >(&ShapeFix_Root::SetPrecision),
R"#(Sets basic precision value)#" , py::arg("preci")
)
.def("Precision",
(Standard_Real (ShapeFix_Root::*)() const) static_cast<Standard_Real (ShapeFix_Root::*)() const>(&ShapeFix_Root::Precision),
R"#(Returns basic precision value)#"
)
.def("SetMinTolerance",
(void (ShapeFix_Root::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Root::*)( const Standard_Real ) >(&ShapeFix_Root::SetMinTolerance),
R"#(Sets minimal allowed tolerance)#" , py::arg("mintol")
)
.def("MinTolerance",
(Standard_Real (ShapeFix_Root::*)() const) static_cast<Standard_Real (ShapeFix_Root::*)() const>(&ShapeFix_Root::MinTolerance),
R"#(Returns minimal allowed tolerance)#"
)
.def("SetMaxTolerance",
(void (ShapeFix_Root::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Root::*)( const Standard_Real ) >(&ShapeFix_Root::SetMaxTolerance),
R"#(Sets maximal allowed tolerance)#" , py::arg("maxtol")
)
.def("MaxTolerance",
(Standard_Real (ShapeFix_Root::*)() const) static_cast<Standard_Real (ShapeFix_Root::*)() const>(&ShapeFix_Root::MaxTolerance),
R"#(Returns maximal allowed tolerance)#"
)
.def("LimitTolerance",
(Standard_Real (ShapeFix_Root::*)( const Standard_Real ) const) static_cast<Standard_Real (ShapeFix_Root::*)( const Standard_Real ) const>(&ShapeFix_Root::LimitTolerance),
R"#(Returns tolerance limited by [myMinTol,myMaxTol])#" , py::arg("toler")
)
.def("SendMsg",
(void (ShapeFix_Root::*)( const TopoDS_Shape & , const Message_Msg & , const Message_Gravity ) const) static_cast<void (ShapeFix_Root::*)( const TopoDS_Shape & , const Message_Msg & , const Message_Gravity ) const>(&ShapeFix_Root::SendMsg),
R"#(Sends a message to be attached to the shape. Calls corresponding message of message registrator.)#" , py::arg("shape"), py::arg("message"), py::arg("gravity")=static_cast<const Message_Gravity>(Message_Info)
)
.def("SendMsg",
(void (ShapeFix_Root::*)( const Message_Msg & , const Message_Gravity ) const) static_cast<void (ShapeFix_Root::*)( const Message_Msg & , const Message_Gravity ) const>(&ShapeFix_Root::SendMsg),
R"#(Sends a message to be attached to myShape. Calls previous method.)#" , py::arg("message"), py::arg("gravity")=static_cast<const Message_Gravity>(Message_Info)
)
.def("SendWarning",
(void (ShapeFix_Root::*)( const TopoDS_Shape & , const Message_Msg & ) const) static_cast<void (ShapeFix_Root::*)( const TopoDS_Shape & , const Message_Msg & ) const>(&ShapeFix_Root::SendWarning),
R"#(Sends a warning to be attached to the shape. Calls SendMsg with gravity set to Message_Warning.)#" , py::arg("shape"), py::arg("message")
)
.def("SendWarning",
(void (ShapeFix_Root::*)( const Message_Msg & ) const) static_cast<void (ShapeFix_Root::*)( const Message_Msg & ) const>(&ShapeFix_Root::SendWarning),
R"#(Calls previous method for myShape.)#" , py::arg("message")
)
.def("SendFail",
(void (ShapeFix_Root::*)( const TopoDS_Shape & , const Message_Msg & ) const) static_cast<void (ShapeFix_Root::*)( const TopoDS_Shape & , const Message_Msg & ) const>(&ShapeFix_Root::SendFail),
R"#(Sends a fail to be attached to the shape. Calls SendMsg with gravity set to Message_Fail.)#" , py::arg("shape"), py::arg("message")
)
.def("SendFail",
(void (ShapeFix_Root::*)( const Message_Msg & ) const) static_cast<void (ShapeFix_Root::*)( const Message_Msg & ) const>(&ShapeFix_Root::SendFail),
R"#(Calls previous method for myShape.)#" , py::arg("message")
)
.def("Context",
(opencascade::handle<ShapeBuild_ReShape> (ShapeFix_Root::*)() const) static_cast<opencascade::handle<ShapeBuild_ReShape> (ShapeFix_Root::*)() const>(&ShapeFix_Root::Context),
R"#(Returns context)#"
)
.def("MsgRegistrator",
(opencascade::handle<ShapeExtend_BasicMsgRegistrator> (ShapeFix_Root::*)() const) static_cast<opencascade::handle<ShapeExtend_BasicMsgRegistrator> (ShapeFix_Root::*)() const>(&ShapeFix_Root::MsgRegistrator),
R"#(Returns message registrator)#"
)
.def("Precision",
(Standard_Real (ShapeFix_Root::*)() const) static_cast<Standard_Real (ShapeFix_Root::*)() const>(&ShapeFix_Root::Precision),
R"#(Returns basic precision value)#"
)
.def("MinTolerance",
(Standard_Real (ShapeFix_Root::*)() const) static_cast<Standard_Real (ShapeFix_Root::*)() const>(&ShapeFix_Root::MinTolerance),
R"#(Returns minimal allowed tolerance)#"
)
.def("MaxTolerance",
(Standard_Real (ShapeFix_Root::*)() const) static_cast<Standard_Real (ShapeFix_Root::*)() const>(&ShapeFix_Root::MaxTolerance),
R"#(Returns maximal allowed tolerance)#"
)
.def("LimitTolerance",
(Standard_Real (ShapeFix_Root::*)( const Standard_Real ) const) static_cast<Standard_Real (ShapeFix_Root::*)( const Standard_Real ) const>(&ShapeFix_Root::LimitTolerance),
R"#(Returns tolerance limited by [myMinTol,myMaxTol])#" , py::arg("toler")
)
.def("SendMsg",
(void (ShapeFix_Root::*)( const Message_Msg & , const Message_Gravity ) const) static_cast<void (ShapeFix_Root::*)( const Message_Msg & , const Message_Gravity ) const>(&ShapeFix_Root::SendMsg),
R"#(Sends a message to be attached to myShape. Calls previous method.)#" , py::arg("message"), py::arg("gravity")
)
.def("SendWarning",
(void (ShapeFix_Root::*)( const TopoDS_Shape & , const Message_Msg & ) const) static_cast<void (ShapeFix_Root::*)( const TopoDS_Shape & , const Message_Msg & ) const>(&ShapeFix_Root::SendWarning),
R"#(Sends a warning to be attached to the shape. Calls SendMsg with gravity set to Message_Warning.)#" , py::arg("shape"), py::arg("message")
)
.def("SendWarning",
(void (ShapeFix_Root::*)( const Message_Msg & ) const) static_cast<void (ShapeFix_Root::*)( const Message_Msg & ) const>(&ShapeFix_Root::SendWarning),
R"#(Calls previous method for myShape.)#" , py::arg("message")
)
.def("SendFail",
(void (ShapeFix_Root::*)( const TopoDS_Shape & , const Message_Msg & ) const) static_cast<void (ShapeFix_Root::*)( const TopoDS_Shape & , const Message_Msg & ) const>(&ShapeFix_Root::SendFail),
R"#(Sends a fail to be attached to the shape. Calls SendMsg with gravity set to Message_Fail.)#" , py::arg("shape"), py::arg("message")
)
.def("SendFail",
(void (ShapeFix_Root::*)( const Message_Msg & ) const) static_cast<void (ShapeFix_Root::*)( const Message_Msg & ) const>(&ShapeFix_Root::SendFail),
R"#(Calls previous method for myShape.)#" , py::arg("message")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&ShapeFix_Root::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&ShapeFix_Root::get_type_descriptor),
R"#(None)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (ShapeFix_Root::*)() const) static_cast<const opencascade::handle<Standard_Type> & (ShapeFix_Root::*)() const>(&ShapeFix_Root::DynamicType),
R"#(None)#"
)
;
// Class ShapeFix_ShapeTolerance from ./opencascade/ShapeFix_ShapeTolerance.hxx
klass = m.attr("ShapeFix_ShapeTolerance");
// nested enums
static_cast<py::class_<ShapeFix_ShapeTolerance , shared_ptr<ShapeFix_ShapeTolerance> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("LimitTolerance",
(Standard_Boolean (ShapeFix_ShapeTolerance::*)( const TopoDS_Shape & , const Standard_Real , const Standard_Real , const TopAbs_ShapeEnum ) const) static_cast<Standard_Boolean (ShapeFix_ShapeTolerance::*)( const TopoDS_Shape & , const Standard_Real , const Standard_Real , const TopAbs_ShapeEnum ) const>(&ShapeFix_ShapeTolerance::LimitTolerance),
R"#(Limits tolerances in a shape as follows : tmin = tmax -> as SetTolerance (forces) tmin = 0 -> maximum tolerance will be <tmax> tmax = 0 or not given (more generally, tmax < tmin) -> <tmax> ignored, minimum will be <tmin> else, maximum will be <max> and minimum will be <min> styp = VERTEX : only vertices are set styp = EDGE : only edges are set styp = FACE : only faces are set styp = WIRE : to have edges and their vertices set styp = other value : all (vertices,edges,faces) are set Returns True if at least one tolerance of the sub-shape has been modified)#" , py::arg("shape"), py::arg("tmin"), py::arg("tmax")=static_cast<const Standard_Real>(0.0), py::arg("styp")=static_cast<const TopAbs_ShapeEnum>(TopAbs_SHAPE)
)
.def("SetTolerance",
(void (ShapeFix_ShapeTolerance::*)( const TopoDS_Shape & , const Standard_Real , const TopAbs_ShapeEnum ) const) static_cast<void (ShapeFix_ShapeTolerance::*)( const TopoDS_Shape & , const Standard_Real , const TopAbs_ShapeEnum ) const>(&ShapeFix_ShapeTolerance::SetTolerance),
R"#(Sets (enforces) tolerances in a shape to the given value styp = VERTEX : only vertices are set styp = EDGE : only edges are set styp = FACE : only faces are set styp = WIRE : to have edges and their vertices set styp = other value : all (vertices,edges,faces) are set)#" , py::arg("shape"), py::arg("preci"), py::arg("styp")=static_cast<const TopAbs_ShapeEnum>(TopAbs_SHAPE)
)
// 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 ShapeFix_SplitTool from ./opencascade/ShapeFix_SplitTool.hxx
klass = m.attr("ShapeFix_SplitTool");
// nested enums
static_cast<py::class_<ShapeFix_SplitTool , shared_ptr<ShapeFix_SplitTool> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("SplitEdge",
(Standard_Boolean (ShapeFix_SplitTool::*)( const TopoDS_Edge & , const Standard_Real , const TopoDS_Vertex & , const TopoDS_Face & , TopoDS_Edge & , TopoDS_Edge & , const Standard_Real , const Standard_Real ) const) static_cast<Standard_Boolean (ShapeFix_SplitTool::*)( const TopoDS_Edge & , const Standard_Real , const TopoDS_Vertex & , const TopoDS_Face & , TopoDS_Edge & , TopoDS_Edge & , const Standard_Real , const Standard_Real ) const>(&ShapeFix_SplitTool::SplitEdge),
R"#(Split edge on two new edges using new vertex "vert" and "param" - parameter for splitting The "face" is necessary for pcurves and using TransferParameterProj)#" , py::arg("edge"), py::arg("param"), py::arg("vert"), py::arg("face"), py::arg("newE1"), py::arg("newE2"), py::arg("tol3d"), py::arg("tol2d")
)
.def("SplitEdge",
(Standard_Boolean (ShapeFix_SplitTool::*)( const TopoDS_Edge & , const Standard_Real , const Standard_Real , const TopoDS_Vertex & , const TopoDS_Face & , TopoDS_Edge & , TopoDS_Edge & , const Standard_Real , const Standard_Real ) const) static_cast<Standard_Boolean (ShapeFix_SplitTool::*)( const TopoDS_Edge & , const Standard_Real , const Standard_Real , const TopoDS_Vertex & , const TopoDS_Face & , TopoDS_Edge & , TopoDS_Edge & , const Standard_Real , const Standard_Real ) const>(&ShapeFix_SplitTool::SplitEdge),
R"#(Split edge on two new edges using new vertex "vert" and "param1" and "param2" - parameter for splitting and cutting The "face" is necessary for pcurves and using TransferParameterProj)#" , py::arg("edge"), py::arg("param1"), py::arg("param2"), py::arg("vert"), py::arg("face"), py::arg("newE1"), py::arg("newE2"), py::arg("tol3d"), py::arg("tol2d")
)
.def("CutEdge",
(Standard_Boolean (ShapeFix_SplitTool::*)( const TopoDS_Edge & , const Standard_Real , const Standard_Real , const TopoDS_Face & , Standard_Boolean & ) const) static_cast<Standard_Boolean (ShapeFix_SplitTool::*)( const TopoDS_Edge & , const Standard_Real , const Standard_Real , const TopoDS_Face & , Standard_Boolean & ) const>(&ShapeFix_SplitTool::CutEdge),
R"#(Cut edge by parameters pend and cut)#" , py::arg("edge"), py::arg("pend"), py::arg("cut"), py::arg("face"), py::arg("iscutline")
)
.def("SplitEdge",
(Standard_Boolean (ShapeFix_SplitTool::*)( const TopoDS_Edge & , const Standard_Real , const TopoDS_Vertex & , const Standard_Real , const TopoDS_Vertex & , const TopoDS_Face & , NCollection_Sequence<TopoDS_Shape> & , Standard_Integer & , const opencascade::handle<ShapeBuild_ReShape> & , const Standard_Real , const Standard_Real ) const) static_cast<Standard_Boolean (ShapeFix_SplitTool::*)( const TopoDS_Edge & , const Standard_Real , const TopoDS_Vertex & , const Standard_Real , const TopoDS_Vertex & , const TopoDS_Face & , NCollection_Sequence<TopoDS_Shape> & , Standard_Integer & , const opencascade::handle<ShapeBuild_ReShape> & , const Standard_Real , const Standard_Real ) const>(&ShapeFix_SplitTool::SplitEdge),
R"#(Split edge on two new edges using two new vertex V1 and V2 and two parameters for splitting - fp and lp correspondingly The "face" is necessary for pcurves and using TransferParameterProj aNum - number of edge in SeqE which corresponding to [fp,lp])#" , py::arg("edge"), py::arg("fp"), py::arg("V1"), py::arg("lp"), py::arg("V2"), py::arg("face"), py::arg("SeqE"), py::arg("aNum"), py::arg("context"), py::arg("tol3d"), py::arg("tol2d")
)
// 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 ShapeFix_WireSegment from ./opencascade/ShapeFix_WireSegment.hxx
klass = m.attr("ShapeFix_WireSegment");
// nested enums
static_cast<py::class_<ShapeFix_WireSegment , shared_ptr<ShapeFix_WireSegment> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const opencascade::handle<ShapeExtend_WireData> &,const TopAbs_Orientation >() , py::arg("wire"), py::arg("ori")=static_cast<const TopAbs_Orientation>(TopAbs_EXTERNAL) )
// custom constructors
// methods
.def("Clear",
(void (ShapeFix_WireSegment::*)() ) static_cast<void (ShapeFix_WireSegment::*)() >(&ShapeFix_WireSegment::Clear),
R"#(Clears all fields.)#"
)
.def("Load",
(void (ShapeFix_WireSegment::*)( const opencascade::handle<ShapeExtend_WireData> & ) ) static_cast<void (ShapeFix_WireSegment::*)( const opencascade::handle<ShapeExtend_WireData> & ) >(&ShapeFix_WireSegment::Load),
R"#(Loads wire.)#" , py::arg("wire")
)
.def("Orientation",
(void (ShapeFix_WireSegment::*)( const TopAbs_Orientation ) ) static_cast<void (ShapeFix_WireSegment::*)( const TopAbs_Orientation ) >(&ShapeFix_WireSegment::Orientation),
R"#(Sets orientation flag.)#" , py::arg("ori")
)
.def("Orientation",
(TopAbs_Orientation (ShapeFix_WireSegment::*)() const) static_cast<TopAbs_Orientation (ShapeFix_WireSegment::*)() const>(&ShapeFix_WireSegment::Orientation),
R"#(Returns orientation flag.)#"
)
.def("FirstVertex",
(TopoDS_Vertex (ShapeFix_WireSegment::*)() const) static_cast<TopoDS_Vertex (ShapeFix_WireSegment::*)() const>(&ShapeFix_WireSegment::FirstVertex),
R"#(Returns first vertex of the first edge in the wire (no dependance on Orientation()).)#"
)
.def("LastVertex",
(TopoDS_Vertex (ShapeFix_WireSegment::*)() const) static_cast<TopoDS_Vertex (ShapeFix_WireSegment::*)() const>(&ShapeFix_WireSegment::LastVertex),
R"#(Returns last vertex of the last edge in the wire (no dependance on Orientation()).)#"
)
.def("IsClosed",
(Standard_Boolean (ShapeFix_WireSegment::*)() const) static_cast<Standard_Boolean (ShapeFix_WireSegment::*)() const>(&ShapeFix_WireSegment::IsClosed),
R"#(Returns True if FirstVertex() == LastVertex())#"
)
.def("NbEdges",
(Standard_Integer (ShapeFix_WireSegment::*)() const) static_cast<Standard_Integer (ShapeFix_WireSegment::*)() const>(&ShapeFix_WireSegment::NbEdges),
R"#(Returns Number of edges in the wire)#"
)
.def("Edge",
(TopoDS_Edge (ShapeFix_WireSegment::*)( const Standard_Integer ) const) static_cast<TopoDS_Edge (ShapeFix_WireSegment::*)( const Standard_Integer ) const>(&ShapeFix_WireSegment::Edge),
R"#(Returns edge by given index in the wire)#" , py::arg("i")
)
.def("SetEdge",
(void (ShapeFix_WireSegment::*)( const Standard_Integer , const TopoDS_Edge & ) ) static_cast<void (ShapeFix_WireSegment::*)( const Standard_Integer , const TopoDS_Edge & ) >(&ShapeFix_WireSegment::SetEdge),
R"#(Replaces edge at index i by new one.)#" , py::arg("i"), py::arg("edge")
)
.def("AddEdge",
(void (ShapeFix_WireSegment::*)( const Standard_Integer , const TopoDS_Edge & ) ) static_cast<void (ShapeFix_WireSegment::*)( const Standard_Integer , const TopoDS_Edge & ) >(&ShapeFix_WireSegment::AddEdge),
R"#(Insert a new edge with index i and implicitly defined patch indices (indefinite patch). If i==0, edge is inserted at end of wire.)#" , py::arg("i"), py::arg("edge")
)
.def("AddEdge",
(void (ShapeFix_WireSegment::*)( const Standard_Integer , const TopoDS_Edge & , const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer ) ) static_cast<void (ShapeFix_WireSegment::*)( const Standard_Integer , const TopoDS_Edge & , const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer ) >(&ShapeFix_WireSegment::AddEdge),
R"#(Insert a new edge with index i and explicitly defined patch indices. If i==0, edge is inserted at end of wire.)#" , py::arg("i"), py::arg("edge"), py::arg("iumin"), py::arg("iumax"), py::arg("ivmin"), py::arg("ivmax")
)
.def("SetPatchIndex",
(void (ShapeFix_WireSegment::*)( const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer ) ) static_cast<void (ShapeFix_WireSegment::*)( const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer , const Standard_Integer ) >(&ShapeFix_WireSegment::SetPatchIndex),
R"#(Set patch indices for edge i.)#" , py::arg("i"), py::arg("iumin"), py::arg("iumax"), py::arg("ivmin"), py::arg("ivmax")
)
.def("DefineIUMin",
(void (ShapeFix_WireSegment::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<void (ShapeFix_WireSegment::*)( const Standard_Integer , const Standard_Integer ) >(&ShapeFix_WireSegment::DefineIUMin),
R"#(None)#" , py::arg("i"), py::arg("iumin")
)
.def("DefineIUMax",
(void (ShapeFix_WireSegment::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<void (ShapeFix_WireSegment::*)( const Standard_Integer , const Standard_Integer ) >(&ShapeFix_WireSegment::DefineIUMax),
R"#(None)#" , py::arg("i"), py::arg("iumax")
)
.def("DefineIVMin",
(void (ShapeFix_WireSegment::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<void (ShapeFix_WireSegment::*)( const Standard_Integer , const Standard_Integer ) >(&ShapeFix_WireSegment::DefineIVMin),
R"#(None)#" , py::arg("i"), py::arg("ivmin")
)
.def("DefineIVMax",
(void (ShapeFix_WireSegment::*)( const Standard_Integer , const Standard_Integer ) ) static_cast<void (ShapeFix_WireSegment::*)( const Standard_Integer , const Standard_Integer ) >(&ShapeFix_WireSegment::DefineIVMax),
R"#(Modify minimal or maximal patch index for edge i. The corresponding patch index for that edge is modified so as to satisfy eq. iumin <= myIUMin(i) <= myIUMax(i) <= iumax)#" , py::arg("i"), py::arg("ivmax")
)
.def("CheckPatchIndex",
(Standard_Boolean (ShapeFix_WireSegment::*)( const Standard_Integer ) const) static_cast<Standard_Boolean (ShapeFix_WireSegment::*)( const Standard_Integer ) const>(&ShapeFix_WireSegment::CheckPatchIndex),
R"#(Checks patch indices for edge i to satisfy equations IUMin(i) <= IUMax(i) <= IUMin(i)+1)#" , py::arg("i")
)
.def("SetVertex",
(void (ShapeFix_WireSegment::*)( const TopoDS_Vertex & ) ) static_cast<void (ShapeFix_WireSegment::*)( const TopoDS_Vertex & ) >(&ShapeFix_WireSegment::SetVertex),
R"#(None)#" , py::arg("theVertex")
)
.def("GetVertex",
(TopoDS_Vertex (ShapeFix_WireSegment::*)() const) static_cast<TopoDS_Vertex (ShapeFix_WireSegment::*)() const>(&ShapeFix_WireSegment::GetVertex),
R"#(None)#"
)
.def("IsVertex",
(Standard_Boolean (ShapeFix_WireSegment::*)() const) static_cast<Standard_Boolean (ShapeFix_WireSegment::*)() const>(&ShapeFix_WireSegment::IsVertex),
R"#(None)#"
)
// methods using call by reference i.s.o. return
.def("GetPatchIndex",
[]( ShapeFix_WireSegment &self , const Standard_Integer i ){
Standard_Integer iumin;
Standard_Integer iumax;
Standard_Integer ivmin;
Standard_Integer ivmax;
self.GetPatchIndex(i,iumin,iumax,ivmin,ivmax);
return std::make_tuple(iumin,iumax,ivmin,ivmax); },
R"#(Returns patch indices for edge i.)#" , py::arg("i")
)
// 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 opencascade::handle<ShapeExtend_WireData> & (ShapeFix_WireSegment::*)() const) static_cast<const opencascade::handle<ShapeExtend_WireData> & (ShapeFix_WireSegment::*)() const>(&ShapeFix_WireSegment::WireData),
R"#(Returns wire.)#"
)
;
// Class ShapeFix_WireVertex from ./opencascade/ShapeFix_WireVertex.hxx
klass = m.attr("ShapeFix_WireVertex");
// nested enums
static_cast<py::class_<ShapeFix_WireVertex , shared_ptr<ShapeFix_WireVertex> >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Init",
(void (ShapeFix_WireVertex::*)( const TopoDS_Wire & , const Standard_Real ) ) static_cast<void (ShapeFix_WireVertex::*)( const TopoDS_Wire & , const Standard_Real ) >(&ShapeFix_WireVertex::Init),
R"#(Loads the wire, ininializes internal analyzer (ShapeAnalysis_WireVertex) with the given precision, and performs analysis)#" , py::arg("wire"), py::arg("preci")
)
.def("Init",
(void (ShapeFix_WireVertex::*)( const opencascade::handle<ShapeExtend_WireData> & , const Standard_Real ) ) static_cast<void (ShapeFix_WireVertex::*)( const opencascade::handle<ShapeExtend_WireData> & , const Standard_Real ) >(&ShapeFix_WireVertex::Init),
R"#(Loads the wire, ininializes internal analyzer (ShapeAnalysis_WireVertex) with the given precision, and performs analysis)#" , py::arg("sbwd"), py::arg("preci")
)
.def("Init",
(void (ShapeFix_WireVertex::*)( const ShapeAnalysis_WireVertex & ) ) static_cast<void (ShapeFix_WireVertex::*)( const ShapeAnalysis_WireVertex & ) >(&ShapeFix_WireVertex::Init),
R"#(Loads all the data on wire, already analysed by ShapeAnalysis_WireVertex)#" , py::arg("sawv")
)
.def("Wire",
(TopoDS_Wire (ShapeFix_WireVertex::*)() const) static_cast<TopoDS_Wire (ShapeFix_WireVertex::*)() const>(&ShapeFix_WireVertex::Wire),
R"#(returns resulting wire (fixed))#"
)
.def("FixSame",
(Standard_Integer (ShapeFix_WireVertex::*)() ) static_cast<Standard_Integer (ShapeFix_WireVertex::*)() >(&ShapeFix_WireVertex::FixSame),
R"#(Fixes "Same" or "Close" status (same vertex may be set, without changing parameters) Returns the count of fixed vertices, 0 if none)#"
)
.def("Fix",
(Standard_Integer (ShapeFix_WireVertex::*)() ) static_cast<Standard_Integer (ShapeFix_WireVertex::*)() >(&ShapeFix_WireVertex::Fix),
R"#(Fixes all statuses except "Disjoined", i.e. the cases in which a common value has been set, with or without changing parameters Returns the count of fixed vertices, 0 if none)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("Analyzer",
(const ShapeAnalysis_WireVertex & (ShapeFix_WireVertex::*)() const) static_cast<const ShapeAnalysis_WireVertex & (ShapeFix_WireVertex::*)() const>(&ShapeFix_WireVertex::Analyzer),
R"#(returns internal analyzer)#"
)
.def("WireData",
(const opencascade::handle<ShapeExtend_WireData> & (ShapeFix_WireVertex::*)() const) static_cast<const opencascade::handle<ShapeExtend_WireData> & (ShapeFix_WireVertex::*)() const>(&ShapeFix_WireVertex::WireData),
R"#(returns data on wire (fixed))#"
)
;
// Class ShapeFix_ComposeShell from ./opencascade/ShapeFix_ComposeShell.hxx
klass = m.attr("ShapeFix_ComposeShell");
// nested enums
static_cast<py::class_<ShapeFix_ComposeShell ,opencascade::handle<ShapeFix_ComposeShell> , ShapeFix_Root >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Init",
(void (ShapeFix_ComposeShell::*)( const opencascade::handle<ShapeExtend_CompositeSurface> & , const TopLoc_Location & , const TopoDS_Face & , const Standard_Real ) ) static_cast<void (ShapeFix_ComposeShell::*)( const opencascade::handle<ShapeExtend_CompositeSurface> & , const TopLoc_Location & , const TopoDS_Face & , const Standard_Real ) >(&ShapeFix_ComposeShell::Init),
R"#(Initializes with composite surface, face and precision. Here face defines both set of wires and way of getting pcurves. Precision is used (together with tolerance of edges) for handling subtle cases, such as tangential intersections.)#" , py::arg("Grid"), py::arg("L"), py::arg("Face"), py::arg("Prec")
)
.def("Perform",
(Standard_Boolean (ShapeFix_ComposeShell::*)() ) static_cast<Standard_Boolean (ShapeFix_ComposeShell::*)() >(&ShapeFix_ComposeShell::Perform),
R"#(Performs the work on already loaded data.)#"
)
.def("SplitEdges",
(void (ShapeFix_ComposeShell::*)() ) static_cast<void (ShapeFix_ComposeShell::*)() >(&ShapeFix_ComposeShell::SplitEdges),
R"#(Splits edges in the original shape by grid. This is a part of Perform() which does not produce any resulting shape; the only result is filled context where splittings are recorded.)#"
)
.def("Status",
(Standard_Boolean (ShapeFix_ComposeShell::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_ComposeShell::*)( const ShapeExtend_Status ) const>(&ShapeFix_ComposeShell::Status),
R"#(Queries status of last call to Perform() OK : nothing done (some kind of error) DONE1: splitting is done, at least one new face created DONE2: splitting is done, several new faces obtained FAIL1: misoriented wire encountered (handled) FAIL2: recoverable parity error FAIL3: edge with no pcurve on supporting face FAIL4: unrecoverable algorithm error (parity check))#" , py::arg("status")
)
.def("DispatchWires",
(void (ShapeFix_ComposeShell::*)( NCollection_Sequence<TopoDS_Shape> & , NCollection_Sequence<ShapeFix_WireSegment> & ) const) static_cast<void (ShapeFix_ComposeShell::*)( NCollection_Sequence<TopoDS_Shape> & , NCollection_Sequence<ShapeFix_WireSegment> & ) const>(&ShapeFix_ComposeShell::DispatchWires),
R"#(Creates new faces from the set of (closed) wires. Each wire is put on corresponding patch in the composite surface, and all pcurves on the initial (pseudo)face are reassigned to that surface. If several wires are one inside another, single face is created.)#" , py::arg("faces"), py::arg("wires")
)
.def("SetTransferParamTool",
(void (ShapeFix_ComposeShell::*)( const opencascade::handle<ShapeAnalysis_TransferParameters> & ) ) static_cast<void (ShapeFix_ComposeShell::*)( const opencascade::handle<ShapeAnalysis_TransferParameters> & ) >(&ShapeFix_ComposeShell::SetTransferParamTool),
R"#(Sets tool for transfer parameters from 3d to 2d and vice versa.)#" , py::arg("TransferParam")
)
.def("GetTransferParamTool",
(opencascade::handle<ShapeAnalysis_TransferParameters> (ShapeFix_ComposeShell::*)() const) static_cast<opencascade::handle<ShapeAnalysis_TransferParameters> (ShapeFix_ComposeShell::*)() const>(&ShapeFix_ComposeShell::GetTransferParamTool),
R"#(Gets tool for transfer parameters from 3d to 2d and vice versa.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&ShapeFix_ComposeShell::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&ShapeFix_ComposeShell::get_type_descriptor),
R"#(None)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def_property("ClosedMode",
[](ShapeFix_ComposeShell& self){return self.ClosedMode();} ,
[](ShapeFix_ComposeShell& self, Standard_Boolean val){self.ClosedMode() = val;}, R"#(Returns (modifiable) flag for special 'closed' mode which forces ComposeShell to consider all pcurves on closed surface as modulo period. This can reduce reliability, but allows to deal with wires closed in 3d but open in 2d (missing seam) Default is False)#"
)
.def("Result",
(const TopoDS_Shape & (ShapeFix_ComposeShell::*)() const) static_cast<const TopoDS_Shape & (ShapeFix_ComposeShell::*)() const>(&ShapeFix_ComposeShell::Result),
R"#(Returns resulting shell or face (or Null shape if not done))#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (ShapeFix_ComposeShell::*)() const) static_cast<const opencascade::handle<Standard_Type> & (ShapeFix_ComposeShell::*)() const>(&ShapeFix_ComposeShell::DynamicType),
R"#(None)#"
)
;
// Class ShapeFix_Face from ./opencascade/ShapeFix_Face.hxx
klass = m.attr("ShapeFix_Face");
// nested enums
static_cast<py::class_<ShapeFix_Face ,opencascade::handle<ShapeFix_Face> , ShapeFix_Root >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Face & >() , py::arg("face") )
// custom constructors
// methods
.def("ClearModes",
(void (ShapeFix_Face::*)() ) static_cast<void (ShapeFix_Face::*)() >(&ShapeFix_Face::ClearModes),
R"#(Sets all modes to default)#"
)
.def("Init",
(void (ShapeFix_Face::*)( const TopoDS_Face & ) ) static_cast<void (ShapeFix_Face::*)( const TopoDS_Face & ) >(&ShapeFix_Face::Init),
R"#(Loads a whole face already created, with its wires, sense and location)#" , py::arg("face")
)
.def("Init",
(void (ShapeFix_Face::*)( const opencascade::handle<Geom_Surface> & , const Standard_Real , const Standard_Boolean ) ) static_cast<void (ShapeFix_Face::*)( const opencascade::handle<Geom_Surface> & , const Standard_Real , const Standard_Boolean ) >(&ShapeFix_Face::Init),
R"#(Starts the creation of the face By default it will be FORWARD, or REVERSED if <fwd> is False)#" , py::arg("surf"), py::arg("preci"), py::arg("fwd")=static_cast<const Standard_Boolean>(Standard_True)
)
.def("Init",
(void (ShapeFix_Face::*)( const opencascade::handle<ShapeAnalysis_Surface> & , const Standard_Real , const Standard_Boolean ) ) static_cast<void (ShapeFix_Face::*)( const opencascade::handle<ShapeAnalysis_Surface> & , const Standard_Real , const Standard_Boolean ) >(&ShapeFix_Face::Init),
R"#(Starts the creation of the face By default it will be FORWARD, or REVERSED if <fwd> is False)#" , py::arg("surf"), py::arg("preci"), py::arg("fwd")=static_cast<const Standard_Boolean>(Standard_True)
)
.def("SetMsgRegistrator",
(void (ShapeFix_Face::*)( const opencascade::handle<ShapeExtend_BasicMsgRegistrator> & ) ) static_cast<void (ShapeFix_Face::*)( const opencascade::handle<ShapeExtend_BasicMsgRegistrator> & ) >(&ShapeFix_Face::SetMsgRegistrator),
R"#(Sets message registrator)#" , py::arg("msgreg")
)
.def("SetPrecision",
(void (ShapeFix_Face::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Face::*)( const Standard_Real ) >(&ShapeFix_Face::SetPrecision),
R"#(Sets basic precision value (also to FixWireTool))#" , py::arg("preci")
)
.def("SetMinTolerance",
(void (ShapeFix_Face::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Face::*)( const Standard_Real ) >(&ShapeFix_Face::SetMinTolerance),
R"#(Sets minimal allowed tolerance (also to FixWireTool))#" , py::arg("mintol")
)
.def("SetMaxTolerance",
(void (ShapeFix_Face::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Face::*)( const Standard_Real ) >(&ShapeFix_Face::SetMaxTolerance),
R"#(Sets maximal allowed tolerance (also to FixWireTool))#" , py::arg("maxtol")
)
.def("Face",
(TopoDS_Face (ShapeFix_Face::*)() const) static_cast<TopoDS_Face (ShapeFix_Face::*)() const>(&ShapeFix_Face::Face),
R"#(Returns a face which corresponds to the current state Warning: The finally produced face may be another one ... but with the same support)#"
)
.def("Result",
(TopoDS_Shape (ShapeFix_Face::*)() const) static_cast<TopoDS_Shape (ShapeFix_Face::*)() const>(&ShapeFix_Face::Result),
R"#(Returns resulting shape (Face or Shell if split) To be used instead of Face() if FixMissingSeam involved)#"
)
.def("Add",
(void (ShapeFix_Face::*)( const TopoDS_Wire & ) ) static_cast<void (ShapeFix_Face::*)( const TopoDS_Wire & ) >(&ShapeFix_Face::Add),
R"#(Add a wire to current face using BRep_Builder. Wire is added without taking into account orientation of face (as if face were FORWARD).)#" , py::arg("wire")
)
.def("Perform",
(Standard_Boolean (ShapeFix_Face::*)() ) static_cast<Standard_Boolean (ShapeFix_Face::*)() >(&ShapeFix_Face::Perform),
R"#(Performs all the fixes, depending on modes Function Status 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)#"
)
.def("FixOrientation",
(Standard_Boolean (ShapeFix_Face::*)() ) static_cast<Standard_Boolean (ShapeFix_Face::*)() >(&ShapeFix_Face::FixOrientation),
R"#(Fixes orientation of wires on the face It tries to make all wires lie outside all others (according to orientation) by reversing orientation of some of them. If face lying on sphere or torus has single wire and AddNaturalBoundMode is True, that wire is not reversed in any case (supposing that natural bound will be added). Returns True if wires were reversed)#"
)
.def("FixOrientation",
(Standard_Boolean (ShapeFix_Face::*)( NCollection_DataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & ) ) static_cast<Standard_Boolean (ShapeFix_Face::*)( NCollection_DataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & ) >(&ShapeFix_Face::FixOrientation),
R"#(Fixes orientation of wires on the face It tries to make all wires lie outside all others (according to orientation) by reversing orientation of some of them. If face lying on sphere or torus has single wire and AddNaturalBoundMode is True, that wire is not reversed in any case (supposing that natural bound will be added). Returns True if wires were reversed OutWires return information about out wires + list of internal wires for each (for performing split face).)#" , py::arg("MapWires")
)
.def("FixAddNaturalBound",
(Standard_Boolean (ShapeFix_Face::*)() ) static_cast<Standard_Boolean (ShapeFix_Face::*)() >(&ShapeFix_Face::FixAddNaturalBound),
R"#(Adds natural boundary on face if it is missing. Two cases are supported: - face has no wires - face lies on geometrically double-closed surface (sphere or torus) and none of wires is left-oriented Returns True if natural boundary was added)#"
)
.def("FixMissingSeam",
(Standard_Boolean (ShapeFix_Face::*)() ) static_cast<Standard_Boolean (ShapeFix_Face::*)() >(&ShapeFix_Face::FixMissingSeam),
R"#(Detects and fixes the special case when face on a closed surface is given by two wires closed in 3d but with gap in 2d. In that case it creates a new wire from the two, and adds a missing seam edge Returns True if missing seam was added)#"
)
.def("FixSmallAreaWire",
(Standard_Boolean (ShapeFix_Face::*)( const Standard_Boolean ) ) static_cast<Standard_Boolean (ShapeFix_Face::*)( const Standard_Boolean ) >(&ShapeFix_Face::FixSmallAreaWire),
R"#(Detects wires with small area (that is less than 100*Precision::PConfusion(). Removes these wires if they are internal. Returns : True if at least one small wire removed, False if does nothing.)#" , py::arg("theIsRemoveSmallFace")
)
.def("FixLoopWire",
(Standard_Boolean (ShapeFix_Face::*)( NCollection_Sequence<TopoDS_Shape> & ) ) static_cast<Standard_Boolean (ShapeFix_Face::*)( NCollection_Sequence<TopoDS_Shape> & ) >(&ShapeFix_Face::FixLoopWire),
R"#(Detects if wire has a loop and fixes this situation by splitting on the few parts. if wire has a loops and it was split Status was set to value ShapeExtend_DONE6.)#" , py::arg("aResWires")
)
.def("FixIntersectingWires",
(Standard_Boolean (ShapeFix_Face::*)() ) static_cast<Standard_Boolean (ShapeFix_Face::*)() >(&ShapeFix_Face::FixIntersectingWires),
R"#(Detects and fixes the special case when face has more than one wire and this wires have intersection point)#"
)
.def("FixWiresTwoCoincEdges",
(Standard_Boolean (ShapeFix_Face::*)() ) static_cast<Standard_Boolean (ShapeFix_Face::*)() >(&ShapeFix_Face::FixWiresTwoCoincEdges),
R"#(If wire contains two coincidence edges it must be removed Queries on status after Perform())#"
)
.def("FixSplitFace",
(Standard_Boolean (ShapeFix_Face::*)( const NCollection_DataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & ) ) static_cast<Standard_Boolean (ShapeFix_Face::*)( const NCollection_DataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & ) >(&ShapeFix_Face::FixSplitFace),
R"#(Split face if there are more than one out wire using inrormation after FixOrientation())#" , py::arg("MapWires")
)
.def("FixPeriodicDegenerated",
(Standard_Boolean (ShapeFix_Face::*)() ) static_cast<Standard_Boolean (ShapeFix_Face::*)() >(&ShapeFix_Face::FixPeriodicDegenerated),
R"#(Fixes topology for a specific case when face is composed by a single wire belting a periodic surface. In that case a degenerated edge is reconstructed in the degenerated pole of the surface. Initial wire gets consistent orientation. Must be used in couple and before FixMissingSeam routine)#"
)
.def("Status",
(Standard_Boolean (ShapeFix_Face::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Face::*)( const ShapeExtend_Status ) const>(&ShapeFix_Face::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_DONE8: face may be splited 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("FixWireTool",
(opencascade::handle<ShapeFix_Wire> (ShapeFix_Face::*)() ) static_cast<opencascade::handle<ShapeFix_Wire> (ShapeFix_Face::*)() >(&ShapeFix_Face::FixWireTool),
R"#(Returns tool for fixing wires.)#"
)
.def("Face",
(TopoDS_Face (ShapeFix_Face::*)() const) static_cast<TopoDS_Face (ShapeFix_Face::*)() const>(&ShapeFix_Face::Face),
R"#(Returns a face which corresponds to the current state Warning: The finally produced face may be another one ... but with the same support)#"
)
.def("Result",
(TopoDS_Shape (ShapeFix_Face::*)() const) static_cast<TopoDS_Shape (ShapeFix_Face::*)() const>(&ShapeFix_Face::Result),
R"#(Returns resulting shape (Face or Shell if split) To be used instead of Face() if FixMissingSeam involved)#"
)
.def("Status",
(Standard_Boolean (ShapeFix_Face::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Face::*)( const ShapeExtend_Status ) const>(&ShapeFix_Face::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_DONE8: face may be splited 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("FixWireTool",
(opencascade::handle<ShapeFix_Wire> (ShapeFix_Face::*)() ) static_cast<opencascade::handle<ShapeFix_Wire> (ShapeFix_Face::*)() >(&ShapeFix_Face::FixWireTool),
R"#(Returns tool for fixing wires.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&ShapeFix_Face::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&ShapeFix_Face::get_type_descriptor),
R"#(None)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def_property("FixWireMode",
[](ShapeFix_Face& self){return self.FixWireMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.FixWireMode() = val;}, R"#(Returns (modifiable) the mode for applying fixes of ShapeFix_Wire, by default True.)#"
)
.def_property("FixOrientationMode",
[](ShapeFix_Face& self){return self.FixOrientationMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.FixOrientationMode() = val;}, R"#(Returns (modifiable) the fix orientation mode, by default True. If True, wires oriented to border limited square.)#"
)
.def_property("FixAddNaturalBoundMode",
[](ShapeFix_Face& self){return self.FixAddNaturalBoundMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.FixAddNaturalBoundMode() = val;}, R"#(Returns (modifiable) the add natural bound mode. If true, natural boundary is added on faces that miss them. Default is False for faces with single wire (they are handled by FixOrientation in that case) and True for others.)#"
)
.def_property("FixMissingSeamMode",
[](ShapeFix_Face& self){return self.FixMissingSeamMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.FixMissingSeamMode() = val;}, R"#(Returns (modifiable) the fix missing seam mode, by default True. If True, tries to insert seam is missed.)#"
)
.def_property("FixSmallAreaWireMode",
[](ShapeFix_Face& self){return self.FixSmallAreaWireMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.FixSmallAreaWireMode() = val;}, R"#(Returns (modifiable) the fix small area wire mode, by default False. If True, drops small wires.)#"
)
.def_property("RemoveSmallAreaFaceMode",
[](ShapeFix_Face& self){return self.RemoveSmallAreaFaceMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.RemoveSmallAreaFaceMode() = val;}, R"#(Returns (modifiable) the remove face with small area, by default False. If True, drops faces with small outer wires.)#"
)
.def_property("FixIntersectingWiresMode",
[](ShapeFix_Face& self){return self.FixIntersectingWiresMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.FixIntersectingWiresMode() = val;}, R"#(Returns (modifiable) the fix intersecting wires mode by default True.)#"
)
.def_property("FixLoopWiresMode",
[](ShapeFix_Face& self){return self.FixLoopWiresMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.FixLoopWiresMode() = val;}, R"#(Returns (modifiable) the fix loop wires mode by default True.)#"
)
.def_property("FixSplitFaceMode",
[](ShapeFix_Face& self){return self.FixSplitFaceMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.FixSplitFaceMode() = val;}, R"#(Returns (modifiable) the fix split face mode by default True.)#"
)
.def_property("AutoCorrectPrecisionMode",
[](ShapeFix_Face& self){return self.AutoCorrectPrecisionMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.AutoCorrectPrecisionMode() = val;}, R"#(Returns (modifiable) the auto-correct precision mode by default False.)#"
)
.def_property("FixPeriodicDegeneratedMode",
[](ShapeFix_Face& self){return self.FixPeriodicDegeneratedMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.FixPeriodicDegeneratedMode() = val;}, R"#(Returns (modifiable) the activation flag for periodic degenerated fix. False by default.)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (ShapeFix_Face::*)() const) static_cast<const opencascade::handle<Standard_Type> & (ShapeFix_Face::*)() const>(&ShapeFix_Face::DynamicType),
R"#(None)#"
)
.def_property("FixWireMode",
[](ShapeFix_Face& self){return self.FixWireMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.FixWireMode() = val;}, R"#(Returns (modifiable) the mode for applying fixes of ShapeFix_Wire, by default True.)#"
)
.def_property("FixOrientationMode",
[](ShapeFix_Face& self){return self.FixOrientationMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.FixOrientationMode() = val;}, R"#(Returns (modifiable) the fix orientation mode, by default True. If True, wires oriented to border limited square.)#"
)
.def_property("FixAddNaturalBoundMode",
[](ShapeFix_Face& self){return self.FixAddNaturalBoundMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.FixAddNaturalBoundMode() = val;}, R"#(Returns (modifiable) the add natural bound mode. If true, natural boundary is added on faces that miss them. Default is False for faces with single wire (they are handled by FixOrientation in that case) and True for others.)#"
)
.def_property("FixMissingSeamMode",
[](ShapeFix_Face& self){return self.FixMissingSeamMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.FixMissingSeamMode() = val;}, R"#(Returns (modifiable) the fix missing seam mode, by default True. If True, tries to insert seam is missed.)#"
)
.def_property("FixSmallAreaWireMode",
[](ShapeFix_Face& self){return self.FixSmallAreaWireMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.FixSmallAreaWireMode() = val;}, R"#(Returns (modifiable) the fix small area wire mode, by default False. If True, drops small wires.)#"
)
.def_property("RemoveSmallAreaFaceMode",
[](ShapeFix_Face& self){return self.RemoveSmallAreaFaceMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.RemoveSmallAreaFaceMode() = val;}, R"#(Returns (modifiable) the remove face with small area, by default False. If True, drops faces with small outer wires.)#"
)
.def_property("FixIntersectingWiresMode",
[](ShapeFix_Face& self){return self.FixIntersectingWiresMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.FixIntersectingWiresMode() = val;}, R"#(Returns (modifiable) the fix intersecting wires mode by default True.)#"
)
.def_property("FixLoopWiresMode",
[](ShapeFix_Face& self){return self.FixLoopWiresMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.FixLoopWiresMode() = val;}, R"#(Returns (modifiable) the fix loop wires mode by default True.)#"
)
.def_property("FixSplitFaceMode",
[](ShapeFix_Face& self){return self.FixSplitFaceMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.FixSplitFaceMode() = val;}, R"#(Returns (modifiable) the fix split face mode by default True.)#"
)
.def_property("AutoCorrectPrecisionMode",
[](ShapeFix_Face& self){return self.AutoCorrectPrecisionMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.AutoCorrectPrecisionMode() = val;}, R"#(Returns (modifiable) the auto-correct precision mode by default False.)#"
)
.def_property("FixPeriodicDegeneratedMode",
[](ShapeFix_Face& self){return self.FixPeriodicDegeneratedMode();} ,
[](ShapeFix_Face& self, Standard_Integer val){self.FixPeriodicDegeneratedMode() = val;}, R"#(Returns (modifiable) the activation flag for periodic degenerated fix. False by default.)#"
)
;
// Class ShapeFix_FixSmallFace from ./opencascade/ShapeFix_FixSmallFace.hxx
klass = m.attr("ShapeFix_FixSmallFace");
// nested enums
static_cast<py::class_<ShapeFix_FixSmallFace ,opencascade::handle<ShapeFix_FixSmallFace> , ShapeFix_Root >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Init",
(void (ShapeFix_FixSmallFace::*)( const TopoDS_Shape & ) ) static_cast<void (ShapeFix_FixSmallFace::*)( const TopoDS_Shape & ) >(&ShapeFix_FixSmallFace::Init),
R"#(None)#" , py::arg("S")
)
.def("Perform",
(void (ShapeFix_FixSmallFace::*)() ) static_cast<void (ShapeFix_FixSmallFace::*)() >(&ShapeFix_FixSmallFace::Perform),
R"#(Fixing case of spot face)#"
)
.def("FixSpotFace",
(TopoDS_Shape (ShapeFix_FixSmallFace::*)() ) static_cast<TopoDS_Shape (ShapeFix_FixSmallFace::*)() >(&ShapeFix_FixSmallFace::FixSpotFace),
R"#(Fixing case of spot face, if tol = -1 used local tolerance.)#"
)
.def("ReplaceVerticesInCaseOfSpot",
(Standard_Boolean (ShapeFix_FixSmallFace::*)( TopoDS_Face & , const Standard_Real ) const) static_cast<Standard_Boolean (ShapeFix_FixSmallFace::*)( TopoDS_Face & , const Standard_Real ) const>(&ShapeFix_FixSmallFace::ReplaceVerticesInCaseOfSpot),
R"#(Compute average vertex and replacing vertices by new one.)#" , py::arg("F"), py::arg("tol")
)
.def("RemoveFacesInCaseOfSpot",
(Standard_Boolean (ShapeFix_FixSmallFace::*)( const TopoDS_Face & ) const) static_cast<Standard_Boolean (ShapeFix_FixSmallFace::*)( const TopoDS_Face & ) const>(&ShapeFix_FixSmallFace::RemoveFacesInCaseOfSpot),
R"#(Remove spot face from compound)#" , py::arg("F")
)
.def("FixStripFace",
(TopoDS_Shape (ShapeFix_FixSmallFace::*)( const Standard_Boolean ) ) static_cast<TopoDS_Shape (ShapeFix_FixSmallFace::*)( const Standard_Boolean ) >(&ShapeFix_FixSmallFace::FixStripFace),
R"#(Fixing case of strip face, if tol = -1 used local tolerance)#" , py::arg("wasdone")=static_cast<const Standard_Boolean>(Standard_False)
)
.def("ReplaceInCaseOfStrip",
(Standard_Boolean (ShapeFix_FixSmallFace::*)( TopoDS_Face & , TopoDS_Edge & , TopoDS_Edge & , const Standard_Real ) const) static_cast<Standard_Boolean (ShapeFix_FixSmallFace::*)( TopoDS_Face & , TopoDS_Edge & , TopoDS_Edge & , const Standard_Real ) const>(&ShapeFix_FixSmallFace::ReplaceInCaseOfStrip),
R"#(Replace veretces and edges.)#" , py::arg("F"), py::arg("E1"), py::arg("E2"), py::arg("tol")
)
.def("RemoveFacesInCaseOfStrip",
(Standard_Boolean (ShapeFix_FixSmallFace::*)( const TopoDS_Face & ) const) static_cast<Standard_Boolean (ShapeFix_FixSmallFace::*)( const TopoDS_Face & ) const>(&ShapeFix_FixSmallFace::RemoveFacesInCaseOfStrip),
R"#(Remove strip face from compound.)#" , py::arg("F")
)
.def("ComputeSharedEdgeForStripFace",
(TopoDS_Edge (ShapeFix_FixSmallFace::*)( const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Edge & , const TopoDS_Face & , const Standard_Real ) const) static_cast<TopoDS_Edge (ShapeFix_FixSmallFace::*)( const TopoDS_Face & , const TopoDS_Edge & , const TopoDS_Edge & , const TopoDS_Face & , const Standard_Real ) const>(&ShapeFix_FixSmallFace::ComputeSharedEdgeForStripFace),
R"#(Compute average edge for strip face)#" , py::arg("F"), py::arg("E1"), py::arg("E2"), py::arg("F1"), py::arg("tol")
)
.def("FixSplitFace",
(TopoDS_Shape (ShapeFix_FixSmallFace::*)( const TopoDS_Shape & ) ) static_cast<TopoDS_Shape (ShapeFix_FixSmallFace::*)( const TopoDS_Shape & ) >(&ShapeFix_FixSmallFace::FixSplitFace),
R"#(None)#" , py::arg("S")
)
.def("SplitOneFace",
(Standard_Boolean (ShapeFix_FixSmallFace::*)( TopoDS_Face & , TopoDS_Compound & ) ) static_cast<Standard_Boolean (ShapeFix_FixSmallFace::*)( TopoDS_Face & , TopoDS_Compound & ) >(&ShapeFix_FixSmallFace::SplitOneFace),
R"#(Compute data for face splitting.)#" , py::arg("F"), py::arg("theSplittedFaces")
)
.def("FixFace",
(TopoDS_Face (ShapeFix_FixSmallFace::*)( const TopoDS_Face & ) ) static_cast<TopoDS_Face (ShapeFix_FixSmallFace::*)( const TopoDS_Face & ) >(&ShapeFix_FixSmallFace::FixFace),
R"#(None)#" , py::arg("F")
)
.def("FixShape",
(TopoDS_Shape (ShapeFix_FixSmallFace::*)() ) static_cast<TopoDS_Shape (ShapeFix_FixSmallFace::*)() >(&ShapeFix_FixSmallFace::FixShape),
R"#(None)#"
)
.def("Shape",
(TopoDS_Shape (ShapeFix_FixSmallFace::*)() ) static_cast<TopoDS_Shape (ShapeFix_FixSmallFace::*)() >(&ShapeFix_FixSmallFace::Shape),
R"#(None)#"
)
.def("FixPinFace",
(Standard_Boolean (ShapeFix_FixSmallFace::*)( TopoDS_Face & ) ) static_cast<Standard_Boolean (ShapeFix_FixSmallFace::*)( TopoDS_Face & ) >(&ShapeFix_FixSmallFace::FixPinFace),
R"#(None)#" , py::arg("F")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&ShapeFix_FixSmallFace::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&ShapeFix_FixSmallFace::get_type_descriptor),
R"#(None)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (ShapeFix_FixSmallFace::*)() const) static_cast<const opencascade::handle<Standard_Type> & (ShapeFix_FixSmallFace::*)() const>(&ShapeFix_FixSmallFace::DynamicType),
R"#(None)#"
)
;
// Class ShapeFix_FixSmallSolid from ./opencascade/ShapeFix_FixSmallSolid.hxx
klass = m.attr("ShapeFix_FixSmallSolid");
// nested enums
static_cast<py::class_<ShapeFix_FixSmallSolid ,opencascade::handle<ShapeFix_FixSmallSolid> , ShapeFix_Root >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("SetFixMode",
(void (ShapeFix_FixSmallSolid::*)( const Standard_Integer ) ) static_cast<void (ShapeFix_FixSmallSolid::*)( const Standard_Integer ) >(&ShapeFix_FixSmallSolid::SetFixMode),
R"#(Set working mode for operator: - theMode = 0 use both WidthFactorThreshold and VolumeThreshold parameters - theMode = 1 use only WidthFactorThreshold parameter - theMode = 2 use only VolumeThreshold parameter)#" , py::arg("theMode")
)
.def("SetVolumeThreshold",
(void (ShapeFix_FixSmallSolid::*)( const Standard_Real ) ) static_cast<void (ShapeFix_FixSmallSolid::*)( const Standard_Real ) >(&ShapeFix_FixSmallSolid::SetVolumeThreshold),
R"#(Set or clear volume threshold for small solids)#" , py::arg("theThreshold")=static_cast<const Standard_Real>(- 1.0)
)
.def("SetWidthFactorThreshold",
(void (ShapeFix_FixSmallSolid::*)( const Standard_Real ) ) static_cast<void (ShapeFix_FixSmallSolid::*)( const Standard_Real ) >(&ShapeFix_FixSmallSolid::SetWidthFactorThreshold),
R"#(Set or clear width factor threshold for small solids)#" , py::arg("theThreshold")=static_cast<const Standard_Real>(- 1.0)
)
.def("Remove",
(TopoDS_Shape (ShapeFix_FixSmallSolid::*)( const TopoDS_Shape & , const opencascade::handle<ShapeBuild_ReShape> & ) const) static_cast<TopoDS_Shape (ShapeFix_FixSmallSolid::*)( const TopoDS_Shape & , const opencascade::handle<ShapeBuild_ReShape> & ) const>(&ShapeFix_FixSmallSolid::Remove),
R"#(Remove small solids from the given shape)#" , py::arg("theShape"), py::arg("theContext")
)
.def("Merge",
(TopoDS_Shape (ShapeFix_FixSmallSolid::*)( const TopoDS_Shape & , const opencascade::handle<ShapeBuild_ReShape> & ) const) static_cast<TopoDS_Shape (ShapeFix_FixSmallSolid::*)( const TopoDS_Shape & , const opencascade::handle<ShapeBuild_ReShape> & ) const>(&ShapeFix_FixSmallSolid::Merge),
R"#(Merge small solids in the given shape to adjacent non-small ones)#" , py::arg("theShape"), py::arg("theContext")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&ShapeFix_FixSmallSolid::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&ShapeFix_FixSmallSolid::get_type_descriptor),
R"#(None)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (ShapeFix_FixSmallSolid::*)() const) static_cast<const opencascade::handle<Standard_Type> & (ShapeFix_FixSmallSolid::*)() const>(&ShapeFix_FixSmallSolid::DynamicType),
R"#(None)#"
)
;
// Class ShapeFix_Shape from ./opencascade/ShapeFix_Shape.hxx
klass = m.attr("ShapeFix_Shape");
// nested enums
static_cast<py::class_<ShapeFix_Shape ,opencascade::handle<ShapeFix_Shape> , ShapeFix_Root >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Shape & >() , py::arg("shape") )
// custom constructors
// methods
.def("Init",
(void (ShapeFix_Shape::*)( const TopoDS_Shape & ) ) static_cast<void (ShapeFix_Shape::*)( const TopoDS_Shape & ) >(&ShapeFix_Shape::Init),
R"#(Initislises by shape.)#" , py::arg("shape")
)
.def("Perform",
(Standard_Boolean (ShapeFix_Shape::*)( const Message_ProgressRange & ) ) static_cast<Standard_Boolean (ShapeFix_Shape::*)( const Message_ProgressRange & ) >(&ShapeFix_Shape::Perform),
R"#(Iterates on sub- shape and performs fixes)#" , py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("Shape",
(TopoDS_Shape (ShapeFix_Shape::*)() const) static_cast<TopoDS_Shape (ShapeFix_Shape::*)() const>(&ShapeFix_Shape::Shape),
R"#(Returns resulting shape)#"
)
.def("FixSolidTool",
(opencascade::handle<ShapeFix_Solid> (ShapeFix_Shape::*)() const) static_cast<opencascade::handle<ShapeFix_Solid> (ShapeFix_Shape::*)() const>(&ShapeFix_Shape::FixSolidTool),
R"#(Returns tool for fixing solids.)#"
)
.def("FixShellTool",
(opencascade::handle<ShapeFix_Shell> (ShapeFix_Shape::*)() const) static_cast<opencascade::handle<ShapeFix_Shell> (ShapeFix_Shape::*)() const>(&ShapeFix_Shape::FixShellTool),
R"#(Returns tool for fixing shells.)#"
)
.def("FixFaceTool",
(opencascade::handle<ShapeFix_Face> (ShapeFix_Shape::*)() const) static_cast<opencascade::handle<ShapeFix_Face> (ShapeFix_Shape::*)() const>(&ShapeFix_Shape::FixFaceTool),
R"#(Returns tool for fixing faces.)#"
)
.def("FixWireTool",
(opencascade::handle<ShapeFix_Wire> (ShapeFix_Shape::*)() const) static_cast<opencascade::handle<ShapeFix_Wire> (ShapeFix_Shape::*)() const>(&ShapeFix_Shape::FixWireTool),
R"#(Returns tool for fixing wires.)#"
)
.def("FixEdgeTool",
(opencascade::handle<ShapeFix_Edge> (ShapeFix_Shape::*)() const) static_cast<opencascade::handle<ShapeFix_Edge> (ShapeFix_Shape::*)() const>(&ShapeFix_Shape::FixEdgeTool),
R"#(Returns tool for fixing edges.)#"
)
.def("Status",
(Standard_Boolean (ShapeFix_Shape::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Shape::*)( const ShapeExtend_Status ) const>(&ShapeFix_Shape::Status),
R"#(Returns the status of the last Fix. This can be a combination of the following flags: ShapeExtend_DONE1: some free edges were fixed ShapeExtend_DONE2: some free wires were fixed ShapeExtend_DONE3: some free faces were fixed ShapeExtend_DONE4: some free shells were fixed ShapeExtend_DONE5: some free solids were fixed ShapeExtend_DONE6: shapes in compound(s) were fixed)#" , py::arg("status")
)
.def("SetMsgRegistrator",
(void (ShapeFix_Shape::*)( const opencascade::handle<ShapeExtend_BasicMsgRegistrator> & ) ) static_cast<void (ShapeFix_Shape::*)( const opencascade::handle<ShapeExtend_BasicMsgRegistrator> & ) >(&ShapeFix_Shape::SetMsgRegistrator),
R"#(Sets message registrator)#" , py::arg("msgreg")
)
.def("SetPrecision",
(void (ShapeFix_Shape::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Shape::*)( const Standard_Real ) >(&ShapeFix_Shape::SetPrecision),
R"#(Sets basic precision value (also to FixSolidTool))#" , py::arg("preci")
)
.def("SetMinTolerance",
(void (ShapeFix_Shape::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Shape::*)( const Standard_Real ) >(&ShapeFix_Shape::SetMinTolerance),
R"#(Sets minimal allowed tolerance (also to FixSolidTool))#" , py::arg("mintol")
)
.def("SetMaxTolerance",
(void (ShapeFix_Shape::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Shape::*)( const Standard_Real ) >(&ShapeFix_Shape::SetMaxTolerance),
R"#(Sets maximal allowed tolerance (also to FixSolidTool))#" , py::arg("maxtol")
)
.def("FixSolidTool",
(opencascade::handle<ShapeFix_Solid> (ShapeFix_Shape::*)() const) static_cast<opencascade::handle<ShapeFix_Solid> (ShapeFix_Shape::*)() const>(&ShapeFix_Shape::FixSolidTool),
R"#(Returns tool for fixing solids.)#"
)
.def("FixShellTool",
(opencascade::handle<ShapeFix_Shell> (ShapeFix_Shape::*)() const) static_cast<opencascade::handle<ShapeFix_Shell> (ShapeFix_Shape::*)() const>(&ShapeFix_Shape::FixShellTool),
R"#(Returns tool for fixing shells.)#"
)
.def("FixFaceTool",
(opencascade::handle<ShapeFix_Face> (ShapeFix_Shape::*)() const) static_cast<opencascade::handle<ShapeFix_Face> (ShapeFix_Shape::*)() const>(&ShapeFix_Shape::FixFaceTool),
R"#(Returns tool for fixing faces.)#"
)
.def("FixWireTool",
(opencascade::handle<ShapeFix_Wire> (ShapeFix_Shape::*)() const) static_cast<opencascade::handle<ShapeFix_Wire> (ShapeFix_Shape::*)() const>(&ShapeFix_Shape::FixWireTool),
R"#(Returns tool for fixing wires.)#"
)
.def("FixEdgeTool",
(opencascade::handle<ShapeFix_Edge> (ShapeFix_Shape::*)() const) static_cast<opencascade::handle<ShapeFix_Edge> (ShapeFix_Shape::*)() const>(&ShapeFix_Shape::FixEdgeTool),
R"#(Returns tool for fixing edges.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&ShapeFix_Shape::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&ShapeFix_Shape::get_type_descriptor),
R"#(None)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def_property("FixSolidMode",
[](ShapeFix_Shape& self){return self.FixSolidMode();} ,
[](ShapeFix_Shape& self, Standard_Integer val){self.FixSolidMode() = val;}, R"#(Returns (modifiable) the mode for applying fixes of ShapeFix_Solid, by default True.)#"
)
.def_property("FixFreeShellMode",
[](ShapeFix_Shape& self){return self.FixFreeShellMode();} ,
[](ShapeFix_Shape& self, Standard_Integer val){self.FixFreeShellMode() = val;}, R"#(Returns (modifiable) the mode for applying fixes of ShapeFix_Shell, by default True.)#"
)
.def_property("FixFreeFaceMode",
[](ShapeFix_Shape& self){return self.FixFreeFaceMode();} ,
[](ShapeFix_Shape& self, Standard_Integer val){self.FixFreeFaceMode() = val;}, R"#(Returns (modifiable) the mode for applying fixes of ShapeFix_Face, by default True.)#"
)
.def_property("FixFreeWireMode",
[](ShapeFix_Shape& self){return self.FixFreeWireMode();} ,
[](ShapeFix_Shape& self, Standard_Integer val){self.FixFreeWireMode() = val;}, R"#(Returns (modifiable) the mode for applying fixes of ShapeFix_Wire, by default True.)#"
)
.def_property("FixSameParameterMode",
[](ShapeFix_Shape& self){return self.FixSameParameterMode();} ,
[](ShapeFix_Shape& self, Standard_Integer val){self.FixSameParameterMode() = val;}, R"#(Returns (modifiable) the mode for applying ShapeFix::SameParameter after all fixes, by default True.)#"
)
.def_property("FixVertexPositionMode",
[](ShapeFix_Shape& self){return self.FixVertexPositionMode();} ,
[](ShapeFix_Shape& self, Standard_Integer val){self.FixVertexPositionMode() = val;}, R"#(Returns (modifiable) the mode for applying ShapeFix::FixVertexPosition before all fixes, by default False.)#"
)
.def_property("FixVertexTolMode",
[](ShapeFix_Shape& self){return self.FixVertexTolMode();} ,
[](ShapeFix_Shape& self, Standard_Integer val){self.FixVertexTolMode() = val;}, R"#(Returns (modifiable) the mode for fixing tolerances of vertices on whole shape after performing all fixes)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (ShapeFix_Shape::*)() const) static_cast<const opencascade::handle<Standard_Type> & (ShapeFix_Shape::*)() const>(&ShapeFix_Shape::DynamicType),
R"#(None)#"
)
.def_property("FixSolidMode",
[](ShapeFix_Shape& self){return self.FixSolidMode();} ,
[](ShapeFix_Shape& self, Standard_Integer val){self.FixSolidMode() = val;}, R"#(Returns (modifiable) the mode for applying fixes of ShapeFix_Solid, by default True.)#"
)
.def_property("FixFreeShellMode",
[](ShapeFix_Shape& self){return self.FixFreeShellMode();} ,
[](ShapeFix_Shape& self, Standard_Integer val){self.FixFreeShellMode() = val;}, R"#(Returns (modifiable) the mode for applying fixes of ShapeFix_Shell, by default True.)#"
)
.def_property("FixFreeFaceMode",
[](ShapeFix_Shape& self){return self.FixFreeFaceMode();} ,
[](ShapeFix_Shape& self, Standard_Integer val){self.FixFreeFaceMode() = val;}, R"#(Returns (modifiable) the mode for applying fixes of ShapeFix_Face, by default True.)#"
)
.def_property("FixFreeWireMode",
[](ShapeFix_Shape& self){return self.FixFreeWireMode();} ,
[](ShapeFix_Shape& self, Standard_Integer val){self.FixFreeWireMode() = val;}, R"#(Returns (modifiable) the mode for applying fixes of ShapeFix_Wire, by default True.)#"
)
.def_property("FixSameParameterMode",
[](ShapeFix_Shape& self){return self.FixSameParameterMode();} ,
[](ShapeFix_Shape& self, Standard_Integer val){self.FixSameParameterMode() = val;}, R"#(Returns (modifiable) the mode for applying ShapeFix::SameParameter after all fixes, by default True.)#"
)
.def_property("FixVertexPositionMode",
[](ShapeFix_Shape& self){return self.FixVertexPositionMode();} ,
[](ShapeFix_Shape& self, Standard_Integer val){self.FixVertexPositionMode() = val;}, R"#(Returns (modifiable) the mode for applying ShapeFix::FixVertexPosition before all fixes, by default False.)#"
)
.def_property("FixVertexTolMode",
[](ShapeFix_Shape& self){return self.FixVertexTolMode();} ,
[](ShapeFix_Shape& self, Standard_Integer val){self.FixVertexTolMode() = val;}, R"#(Returns (modifiable) the mode for fixing tolerances of vertices on whole shape after performing all fixes)#"
)
;
// Class ShapeFix_Shell from ./opencascade/ShapeFix_Shell.hxx
klass = m.attr("ShapeFix_Shell");
// nested enums
static_cast<py::class_<ShapeFix_Shell ,opencascade::handle<ShapeFix_Shell> , ShapeFix_Root >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Shell & >() , py::arg("shape") )
// custom constructors
// methods
.def("Init",
(void (ShapeFix_Shell::*)( const TopoDS_Shell & ) ) static_cast<void (ShapeFix_Shell::*)( const TopoDS_Shell & ) >(&ShapeFix_Shell::Init),
R"#(Initializes by shell.)#" , py::arg("shell")
)
.def("Perform",
(Standard_Boolean (ShapeFix_Shell::*)( const Message_ProgressRange & ) ) static_cast<Standard_Boolean (ShapeFix_Shell::*)( const Message_ProgressRange & ) >(&ShapeFix_Shell::Perform),
R"#(Iterates on subshapes and performs fixes (for each face calls ShapeFix_Face::Perform and then calls FixFaceOrientation). The passed progress indicator allows user to consult the current progress stage and abort algorithm if needed.)#" , py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("FixFaceOrientation",
(Standard_Boolean (ShapeFix_Shell::*)( const TopoDS_Shell & , const Standard_Boolean , const Standard_Boolean ) ) static_cast<Standard_Boolean (ShapeFix_Shell::*)( const TopoDS_Shell & , const Standard_Boolean , const Standard_Boolean ) >(&ShapeFix_Shell::FixFaceOrientation),
R"#(Fixes orientation of faces in shell. Changes orientation of face in the shell, if it is oriented opposite to neighbouring faces. If it is not possible to orient all faces in the shell (like in case of mebious band), this method orients only subset of faces. Other faces are stored in Error compound. Modes : isAccountMultiConex - mode for account cases of multiconnexity. If this mode is equal to Standard_True, separate shells will be created in the cases of multiconnexity. If this mode is equal to Standard_False, one shell will be created without account of multiconnexity.By defautt - Standard_True; NonManifold - mode for creation of non-manifold shells. If this mode is equal to Standard_True one non-manifold will be created from shell contains multishared edges. Else if this mode is equal to Standard_False only manifold shells will be created. By default - Standard_False.)#" , py::arg("shell"), py::arg("isAccountMultiConex")=static_cast<const Standard_Boolean>(Standard_True), py::arg("NonManifold")=static_cast<const Standard_Boolean>(Standard_False)
)
.def("Shell",
(TopoDS_Shell (ShapeFix_Shell::*)() ) static_cast<TopoDS_Shell (ShapeFix_Shell::*)() >(&ShapeFix_Shell::Shell),
R"#(Returns fixed shell (or subset of oriented faces).)#"
)
.def("Shape",
(TopoDS_Shape (ShapeFix_Shell::*)() ) static_cast<TopoDS_Shape (ShapeFix_Shell::*)() >(&ShapeFix_Shell::Shape),
R"#(In case of multiconnexity returns compound of fixed shells else returns one shell..)#"
)
.def("NbShells",
(Standard_Integer (ShapeFix_Shell::*)() const) static_cast<Standard_Integer (ShapeFix_Shell::*)() const>(&ShapeFix_Shell::NbShells),
R"#(Returns Number of obtainrd shells;)#"
)
.def("ErrorFaces",
(TopoDS_Compound (ShapeFix_Shell::*)() const) static_cast<TopoDS_Compound (ShapeFix_Shell::*)() const>(&ShapeFix_Shell::ErrorFaces),
R"#(Returns not oriented subset of faces.)#"
)
.def("Status",
(Standard_Boolean (ShapeFix_Shell::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Shell::*)( const ShapeExtend_Status ) const>(&ShapeFix_Shell::Status),
R"#(Returns the status of the last Fix.)#" , py::arg("status")
)
.def("FixFaceTool",
(opencascade::handle<ShapeFix_Face> (ShapeFix_Shell::*)() ) static_cast<opencascade::handle<ShapeFix_Face> (ShapeFix_Shell::*)() >(&ShapeFix_Shell::FixFaceTool),
R"#(Returns tool for fixing faces.)#"
)
.def("SetMsgRegistrator",
(void (ShapeFix_Shell::*)( const opencascade::handle<ShapeExtend_BasicMsgRegistrator> & ) ) static_cast<void (ShapeFix_Shell::*)( const opencascade::handle<ShapeExtend_BasicMsgRegistrator> & ) >(&ShapeFix_Shell::SetMsgRegistrator),
R"#(Sets message registrator)#" , py::arg("msgreg")
)
.def("SetPrecision",
(void (ShapeFix_Shell::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Shell::*)( const Standard_Real ) >(&ShapeFix_Shell::SetPrecision),
R"#(Sets basic precision value (also to FixWireTool))#" , py::arg("preci")
)
.def("SetMinTolerance",
(void (ShapeFix_Shell::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Shell::*)( const Standard_Real ) >(&ShapeFix_Shell::SetMinTolerance),
R"#(Sets minimal allowed tolerance (also to FixWireTool))#" , py::arg("mintol")
)
.def("SetMaxTolerance",
(void (ShapeFix_Shell::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Shell::*)( const Standard_Real ) >(&ShapeFix_Shell::SetMaxTolerance),
R"#(Sets maximal allowed tolerance (also to FixWireTool))#" , py::arg("maxtol")
)
.def("SetNonManifoldFlag",
(void (ShapeFix_Shell::*)( const Standard_Boolean ) ) static_cast<void (ShapeFix_Shell::*)( const Standard_Boolean ) >(&ShapeFix_Shell::SetNonManifoldFlag),
R"#(Sets NonManifold flag)#" , py::arg("isNonManifold")
)
.def("FixFaceTool",
(opencascade::handle<ShapeFix_Face> (ShapeFix_Shell::*)() ) static_cast<opencascade::handle<ShapeFix_Face> (ShapeFix_Shell::*)() >(&ShapeFix_Shell::FixFaceTool),
R"#(Returns tool for fixing faces.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&ShapeFix_Shell::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&ShapeFix_Shell::get_type_descriptor),
R"#(None)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def_property("FixFaceMode",
[](ShapeFix_Shell& self){return self.FixFaceMode();} ,
[](ShapeFix_Shell& self, Standard_Integer val){self.FixFaceMode() = val;}, R"#(Returns (modifiable) the mode for applying fixes of ShapeFix_Face, by default True.)#"
)
.def_property("FixOrientationMode",
[](ShapeFix_Shell& self){return self.FixOrientationMode();} ,
[](ShapeFix_Shell& self, Standard_Integer val){self.FixOrientationMode() = val;}, R"#(Returns (modifiable) the mode for applying FixFaceOrientation, by default True.)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (ShapeFix_Shell::*)() const) static_cast<const opencascade::handle<Standard_Type> & (ShapeFix_Shell::*)() const>(&ShapeFix_Shell::DynamicType),
R"#(None)#"
)
.def_property("FixFaceMode",
[](ShapeFix_Shell& self){return self.FixFaceMode();} ,
[](ShapeFix_Shell& self, Standard_Integer val){self.FixFaceMode() = val;}, R"#(Returns (modifiable) the mode for applying fixes of ShapeFix_Face, by default True.)#"
)
.def_property("FixOrientationMode",
[](ShapeFix_Shell& self){return self.FixOrientationMode();} ,
[](ShapeFix_Shell& self, Standard_Integer val){self.FixOrientationMode() = val;}, R"#(Returns (modifiable) the mode for applying FixFaceOrientation, by default True.)#"
)
;
// Class ShapeFix_Solid from ./opencascade/ShapeFix_Solid.hxx
klass = m.attr("ShapeFix_Solid");
// nested enums
static_cast<py::class_<ShapeFix_Solid ,opencascade::handle<ShapeFix_Solid> , ShapeFix_Root >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Solid & >() , py::arg("solid") )
// custom constructors
// methods
.def("Init",
(void (ShapeFix_Solid::*)( const TopoDS_Solid & ) ) static_cast<void (ShapeFix_Solid::*)( const TopoDS_Solid & ) >(&ShapeFix_Solid::Init),
R"#(Initializes by solid .)#" , py::arg("solid")
)
.def("Perform",
(Standard_Boolean (ShapeFix_Solid::*)( const Message_ProgressRange & ) ) static_cast<Standard_Boolean (ShapeFix_Solid::*)( const Message_ProgressRange & ) >(&ShapeFix_Solid::Perform),
R"#(Iterates on shells and performs fixes (calls ShapeFix_Shell for each subshell). The passed progress indicator allows user to consult the current progress stage and abort algorithm if needed.)#" , py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("SolidFromShell",
(TopoDS_Solid (ShapeFix_Solid::*)( const TopoDS_Shell & ) ) static_cast<TopoDS_Solid (ShapeFix_Solid::*)( const TopoDS_Shell & ) >(&ShapeFix_Solid::SolidFromShell),
R"#(Calls MakeSolid and orients the solid to be "not infinite")#" , py::arg("shell")
)
.def("Status",
(Standard_Boolean (ShapeFix_Solid::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Solid::*)( const ShapeExtend_Status ) const>(&ShapeFix_Solid::Status),
R"#(Returns the status of the last Fix.)#" , py::arg("status")
)
.def("Solid",
(TopoDS_Shape (ShapeFix_Solid::*)() const) static_cast<TopoDS_Shape (ShapeFix_Solid::*)() const>(&ShapeFix_Solid::Solid),
R"#(Returns resulting solid.)#"
)
.def("FixShellTool",
(opencascade::handle<ShapeFix_Shell> (ShapeFix_Solid::*)() const) static_cast<opencascade::handle<ShapeFix_Shell> (ShapeFix_Solid::*)() const>(&ShapeFix_Solid::FixShellTool),
R"#(Returns tool for fixing shells.)#"
)
.def("SetMsgRegistrator",
(void (ShapeFix_Solid::*)( const opencascade::handle<ShapeExtend_BasicMsgRegistrator> & ) ) static_cast<void (ShapeFix_Solid::*)( const opencascade::handle<ShapeExtend_BasicMsgRegistrator> & ) >(&ShapeFix_Solid::SetMsgRegistrator),
R"#(Sets message registrator)#" , py::arg("msgreg")
)
.def("SetPrecision",
(void (ShapeFix_Solid::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Solid::*)( const Standard_Real ) >(&ShapeFix_Solid::SetPrecision),
R"#(Sets basic precision value (also to FixShellTool))#" , py::arg("preci")
)
.def("SetMinTolerance",
(void (ShapeFix_Solid::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Solid::*)( const Standard_Real ) >(&ShapeFix_Solid::SetMinTolerance),
R"#(Sets minimal allowed tolerance (also to FixShellTool))#" , py::arg("mintol")
)
.def("SetMaxTolerance",
(void (ShapeFix_Solid::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Solid::*)( const Standard_Real ) >(&ShapeFix_Solid::SetMaxTolerance),
R"#(Sets maximal allowed tolerance (also to FixShellTool))#" , py::arg("maxtol")
)
.def("Shape",
(TopoDS_Shape (ShapeFix_Solid::*)() ) static_cast<TopoDS_Shape (ShapeFix_Solid::*)() >(&ShapeFix_Solid::Shape),
R"#(In case of multiconnexity returns compound of fixed solids else returns one solid.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&ShapeFix_Solid::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&ShapeFix_Solid::get_type_descriptor),
R"#(None)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def_property("FixShellMode",
[](ShapeFix_Solid& self){return self.FixShellMode();} ,
[](ShapeFix_Solid& self, Standard_Integer val){self.FixShellMode() = val;}, R"#(Returns (modifiable) the mode for applying fixes of ShapeFix_Shell, by default True.)#"
)
.def_property("FixShellOrientationMode",
[](ShapeFix_Solid& self){return self.FixShellOrientationMode();} ,
[](ShapeFix_Solid& self, Standard_Integer val){self.FixShellOrientationMode() = val;}, R"#(Returns (modifiable) the mode for applying analysis and fixes of orientation of shells in the solid; by default True.)#"
)
.def_property("CreateOpenSolidMode",
[](ShapeFix_Solid& self){return self.CreateOpenSolidMode();} ,
[](ShapeFix_Solid& self, Standard_Boolean val){self.CreateOpenSolidMode() = val;}, R"#(Returns (modifiable) the mode for creation of solids. If mode myCreateOpenSolidMode is equal to true solids are created from open shells else solids are created from closed shells only. ShapeFix_Shell, by default False.)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (ShapeFix_Solid::*)() const) static_cast<const opencascade::handle<Standard_Type> & (ShapeFix_Solid::*)() const>(&ShapeFix_Solid::DynamicType),
R"#(None)#"
)
;
// Class ShapeFix_SplitCommonVertex from ./opencascade/ShapeFix_SplitCommonVertex.hxx
klass = m.attr("ShapeFix_SplitCommonVertex");
// nested enums
static_cast<py::class_<ShapeFix_SplitCommonVertex ,opencascade::handle<ShapeFix_SplitCommonVertex> , ShapeFix_Root >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Init",
(void (ShapeFix_SplitCommonVertex::*)( const TopoDS_Shape & ) ) static_cast<void (ShapeFix_SplitCommonVertex::*)( const TopoDS_Shape & ) >(&ShapeFix_SplitCommonVertex::Init),
R"#(None)#" , py::arg("S")
)
.def("Perform",
(void (ShapeFix_SplitCommonVertex::*)() ) static_cast<void (ShapeFix_SplitCommonVertex::*)() >(&ShapeFix_SplitCommonVertex::Perform),
R"#(None)#"
)
.def("Shape",
(TopoDS_Shape (ShapeFix_SplitCommonVertex::*)() ) static_cast<TopoDS_Shape (ShapeFix_SplitCommonVertex::*)() >(&ShapeFix_SplitCommonVertex::Shape),
R"#(None)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&ShapeFix_SplitCommonVertex::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&ShapeFix_SplitCommonVertex::get_type_descriptor),
R"#(None)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (ShapeFix_SplitCommonVertex::*)() const) static_cast<const opencascade::handle<Standard_Type> & (ShapeFix_SplitCommonVertex::*)() const>(&ShapeFix_SplitCommonVertex::DynamicType),
R"#(None)#"
)
;
// Class ShapeFix_Wire from ./opencascade/ShapeFix_Wire.hxx
klass = m.attr("ShapeFix_Wire");
// nested enums
static_cast<py::class_<ShapeFix_Wire ,opencascade::handle<ShapeFix_Wire> , ShapeFix_Root >>(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("prec") )
// custom constructors
// methods
.def("ClearModes",
(void (ShapeFix_Wire::*)() ) static_cast<void (ShapeFix_Wire::*)() >(&ShapeFix_Wire::ClearModes),
R"#(Sets all modes to default)#"
)
.def("ClearStatuses",
(void (ShapeFix_Wire::*)() ) static_cast<void (ShapeFix_Wire::*)() >(&ShapeFix_Wire::ClearStatuses),
R"#(Clears all statuses)#"
)
.def("Init",
(void (ShapeFix_Wire::*)( const TopoDS_Wire & , const TopoDS_Face & , const Standard_Real ) ) static_cast<void (ShapeFix_Wire::*)( const TopoDS_Wire & , const TopoDS_Face & , const Standard_Real ) >(&ShapeFix_Wire::Init),
R"#(Load analyzer with all the data for the wire and face and drops all fixing statuses)#" , py::arg("wire"), py::arg("face"), py::arg("prec")
)
.def("Init",
(void (ShapeFix_Wire::*)( const opencascade::handle<ShapeAnalysis_Wire> & ) ) static_cast<void (ShapeFix_Wire::*)( const opencascade::handle<ShapeAnalysis_Wire> & ) >(&ShapeFix_Wire::Init),
R"#(Load analyzer with all the data already prepared and drops all fixing statuses If analyzer contains face, there is no need to set it by SetFace or SetSurface)#" , py::arg("saw")
)
.def("Load",
(void (ShapeFix_Wire::*)( const TopoDS_Wire & ) ) static_cast<void (ShapeFix_Wire::*)( const TopoDS_Wire & ) >(&ShapeFix_Wire::Load),
R"#(Load data for the wire, and drops all fixing statuses)#" , py::arg("wire")
)
.def("Load",
(void (ShapeFix_Wire::*)( const opencascade::handle<ShapeExtend_WireData> & ) ) static_cast<void (ShapeFix_Wire::*)( const opencascade::handle<ShapeExtend_WireData> & ) >(&ShapeFix_Wire::Load),
R"#(Load data for the wire, and drops all fixing statuses)#" , py::arg("sbwd")
)
.def("SetFace",
(void (ShapeFix_Wire::*)( const TopoDS_Face & ) ) static_cast<void (ShapeFix_Wire::*)( const TopoDS_Face & ) >(&ShapeFix_Wire::SetFace),
R"#(Set working face for the wire)#" , py::arg("face")
)
.def("SetSurface",
(void (ShapeFix_Wire::*)( const opencascade::handle<Geom_Surface> & ) ) static_cast<void (ShapeFix_Wire::*)( const opencascade::handle<Geom_Surface> & ) >(&ShapeFix_Wire::SetSurface),
R"#(Set surface for the wire)#" , py::arg("surf")
)
.def("SetSurface",
(void (ShapeFix_Wire::*)( const opencascade::handle<Geom_Surface> & , const TopLoc_Location & ) ) static_cast<void (ShapeFix_Wire::*)( const opencascade::handle<Geom_Surface> & , const TopLoc_Location & ) >(&ShapeFix_Wire::SetSurface),
R"#(Set surface for the wire)#" , py::arg("surf"), py::arg("loc")
)
.def("SetPrecision",
(void (ShapeFix_Wire::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Wire::*)( const Standard_Real ) >(&ShapeFix_Wire::SetPrecision),
R"#(Set working precision (to root and to analyzer))#" , py::arg("prec")
)
.def("SetMaxTailAngle",
(void (ShapeFix_Wire::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Wire::*)( const Standard_Real ) >(&ShapeFix_Wire::SetMaxTailAngle),
R"#(Sets the maximal allowed angle of the tails in radians.)#" , py::arg("theMaxTailAngle")
)
.def("SetMaxTailWidth",
(void (ShapeFix_Wire::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Wire::*)( const Standard_Real ) >(&ShapeFix_Wire::SetMaxTailWidth),
R"#(Sets the maximal allowed width of the tails.)#" , py::arg("theMaxTailWidth")
)
.def("IsLoaded",
(Standard_Boolean (ShapeFix_Wire::*)() const) static_cast<Standard_Boolean (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::IsLoaded),
R"#(Tells if the wire is loaded)#"
)
.def("IsReady",
(Standard_Boolean (ShapeFix_Wire::*)() const) static_cast<Standard_Boolean (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::IsReady),
R"#(Tells if the wire and face are loaded)#"
)
.def("NbEdges",
(Standard_Integer (ShapeFix_Wire::*)() const) static_cast<Standard_Integer (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::NbEdges),
R"#(returns number of edges in the working wire)#"
)
.def("Wire",
(TopoDS_Wire (ShapeFix_Wire::*)() const) static_cast<TopoDS_Wire (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::Wire),
R"#(Makes the resulting Wire (by basic Brep_Builder))#"
)
.def("WireAPIMake",
(TopoDS_Wire (ShapeFix_Wire::*)() const) static_cast<TopoDS_Wire (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::WireAPIMake),
R"#(Makes the resulting Wire (by BRepAPI_MakeWire))#"
)
.def("Analyzer",
(opencascade::handle<ShapeAnalysis_Wire> (ShapeFix_Wire::*)() const) static_cast<opencascade::handle<ShapeAnalysis_Wire> (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::Analyzer),
R"#(returns field Analyzer (working tool))#"
)
.def("Perform",
(Standard_Boolean (ShapeFix_Wire::*)() ) static_cast<Standard_Boolean (ShapeFix_Wire::*)() >(&ShapeFix_Wire::Perform),
R"#(This method performs all the available fixes. If some fix is turned on or off explicitly by the Fix..Mode() flag, this fix is either called or not depending on that flag. Else (i.e. if flag is default) fix is called depending on the situation: some fixes are not called or are limited if order of edges in the wire is not OK, or depending on modes)#"
)
.def("FixReorder",
(Standard_Boolean (ShapeFix_Wire::*)( Standard_Boolean ) ) static_cast<Standard_Boolean (ShapeFix_Wire::*)( Standard_Boolean ) >(&ShapeFix_Wire::FixReorder),
R"#(Performs an analysis and reorders edges in the wire using class WireOrder. Flag <theModeBoth> determines the use of miscible mode if necessary.)#" , py::arg("theModeBoth")=static_cast<Standard_Boolean>(Standard_False)
)
.def("FixSmall",
(Standard_Integer (ShapeFix_Wire::*)( const Standard_Boolean , const Standard_Real ) ) static_cast<Standard_Integer (ShapeFix_Wire::*)( const Standard_Boolean , const Standard_Real ) >(&ShapeFix_Wire::FixSmall),
R"#(Applies FixSmall(num) to all edges in the wire)#" , py::arg("lockvtx"), py::arg("precsmall")=static_cast<const Standard_Real>(0.0)
)
.def("FixConnected",
(Standard_Boolean (ShapeFix_Wire::*)( const Standard_Real ) ) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const Standard_Real ) >(&ShapeFix_Wire::FixConnected),
R"#(Applies FixConnected(num) to all edges in the wire Connection between first and last edges is treated only if flag ClosedMode is True If <prec> is -1 then MaxTolerance() is taken.)#" , py::arg("prec")=static_cast<const Standard_Real>(- 1.0)
)
.def("FixEdgeCurves",
(Standard_Boolean (ShapeFix_Wire::*)() ) static_cast<Standard_Boolean (ShapeFix_Wire::*)() >(&ShapeFix_Wire::FixEdgeCurves),
R"#(Groups the fixes dealing with 3d and pcurves of the edges. The order of the fixes and the default behaviour are: ShapeFix_Edge::FixReversed2d ShapeFix_Edge::FixRemovePCurve (only if forced) ShapeFix_Edge::FixAddPCurve ShapeFix_Edge::FixRemoveCurve3d (only if forced) ShapeFix_Edge::FixAddCurve3d FixSeam, FixShifted, ShapeFix_Edge::FixSameParameter)#"
)
.def("FixDegenerated",
(Standard_Boolean (ShapeFix_Wire::*)() ) static_cast<Standard_Boolean (ShapeFix_Wire::*)() >(&ShapeFix_Wire::FixDegenerated),
R"#(Applies FixDegenerated(num) to all edges in the wire Connection between first and last edges is treated only if flag ClosedMode is True)#"
)
.def("FixSelfIntersection",
(Standard_Boolean (ShapeFix_Wire::*)() ) static_cast<Standard_Boolean (ShapeFix_Wire::*)() >(&ShapeFix_Wire::FixSelfIntersection),
R"#(Applies FixSelfIntersectingEdge(num) and FixIntersectingEdges(num) to all edges in the wire and FixIntersectingEdges(num1, num2) for all pairs num1 and num2 such that num2 >= num1 + 2 and removes wrong edges if any)#"
)
.def("FixLacking",
(Standard_Boolean (ShapeFix_Wire::*)( const Standard_Boolean ) ) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const Standard_Boolean ) >(&ShapeFix_Wire::FixLacking),
R"#(Applies FixLacking(num) to all edges in the wire Connection between first and last edges is treated only if flag ClosedMode is True If <force> is False (default), test for connectness is done with precision of vertex between edges, else it is done with minimal value of vertex tolerance and Analyzer.Precision(). Hence, <force> will lead to inserting lacking edges in replacement of vertices which have big tolerances.)#" , py::arg("force")=static_cast<const Standard_Boolean>(Standard_False)
)
.def("FixClosed",
(Standard_Boolean (ShapeFix_Wire::*)( const Standard_Real ) ) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const Standard_Real ) >(&ShapeFix_Wire::FixClosed),
R"#(Fixes a wire to be well closed It performs FixConnected, FixDegenerated and FixLacking between last and first edges (independingly on flag ClosedMode and modes for these fixings) If <prec> is -1 then MaxTolerance() is taken.)#" , py::arg("prec")=static_cast<const Standard_Real>(- 1.0)
)
.def("FixGaps3d",
(Standard_Boolean (ShapeFix_Wire::*)() ) static_cast<Standard_Boolean (ShapeFix_Wire::*)() >(&ShapeFix_Wire::FixGaps3d),
R"#(Fixes gaps between ends of 3d curves on adjacent edges myPrecision is used to detect the gaps.)#"
)
.def("FixGaps2d",
(Standard_Boolean (ShapeFix_Wire::*)() ) static_cast<Standard_Boolean (ShapeFix_Wire::*)() >(&ShapeFix_Wire::FixGaps2d),
R"#(Fixes gaps between ends of pcurves on adjacent edges myPrecision is used to detect the gaps.)#"
)
.def("FixReorder",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeAnalysis_WireOrder & ) ) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeAnalysis_WireOrder & ) >(&ShapeFix_Wire::FixReorder),
R"#(Reorder edges in the wire as determined by WireOrder that should be filled and computed before)#" , py::arg("wi")
)
.def("FixSmall",
(Standard_Boolean (ShapeFix_Wire::*)( const Standard_Integer , const Standard_Boolean , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const Standard_Integer , const Standard_Boolean , const Standard_Real ) >(&ShapeFix_Wire::FixSmall),
R"#(Fixes Null Length Edge to be removed If an Edge has Null Length (regarding preci, or <precsmall> - what is smaller), it should be removed It can be with no problem if its two vertices are the same Else, if lockvtx is False, it is removed and its end vertex is put on the preceding edge But if lockvtx is True, this edge must be kept ...)#" , py::arg("num"), py::arg("lockvtx"), py::arg("precsmall")
)
.def("FixConnected",
(Standard_Boolean (ShapeFix_Wire::*)( const Standard_Integer , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const Standard_Integer , const Standard_Real ) >(&ShapeFix_Wire::FixConnected),
R"#(Fixes connected edges (preceding and current) Forces Vertices (end of preceding-begin of current) to be the same one Tests with starting preci or, if given greater, <prec> If <prec> is -1 then MaxTolerance() is taken.)#" , py::arg("num"), py::arg("prec")
)
.def("FixSeam",
(Standard_Boolean (ShapeFix_Wire::*)( const Standard_Integer ) ) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const Standard_Integer ) >(&ShapeFix_Wire::FixSeam),
R"#(Fixes a seam edge A Seam edge has two pcurves, one for forward. one for reversed The forward pcurve must be set as first)#" , py::arg("num")
)
.def("FixShifted",
(Standard_Boolean (ShapeFix_Wire::*)() ) static_cast<Standard_Boolean (ShapeFix_Wire::*)() >(&ShapeFix_Wire::FixShifted),
R"#(Fixes edges which have pcurves shifted by whole parameter range on the closed surface (the case may occur if pcurve of edge was computed by projecting 3d curve, which goes along the seam). It compares each two consequent edges and tries to connect them if distance between ends is near to range of the surface. It also can detect and fix the case if all pcurves are connected, but lie out of parametric bounds of the surface. In addition to FixShifted from ShapeFix_Wire, more sophisticated check of degenerate points is performed, and special cases like sphere given by two meridians are treated.)#"
)
.def("FixDegenerated",
(Standard_Boolean (ShapeFix_Wire::*)( const Standard_Integer ) ) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const Standard_Integer ) >(&ShapeFix_Wire::FixDegenerated),
R"#(Fixes Degenerated Edge Checks an <num-th> edge or a point between <num>th-1 and <num>th edges for a singularity on a supporting surface. If singularity is detected, either adds new degenerated edge (before <num>th), or makes <num>th edge to be degenerated.)#" , py::arg("num")
)
.def("FixLacking",
(Standard_Boolean (ShapeFix_Wire::*)( const Standard_Integer , const Standard_Boolean ) ) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const Standard_Integer , const Standard_Boolean ) >(&ShapeFix_Wire::FixLacking),
R"#(Fixes Lacking Edge Test if two adjucent edges are disconnected in 2d (while connected in 3d), and in that case either increase tolerance of the vertex or add a new edge (straight in 2d space), in order to close wire in 2d. Returns True if edge was added or tolerance was increased.)#" , py::arg("num"), py::arg("force")=static_cast<const Standard_Boolean>(Standard_False)
)
.def("FixNotchedEdges",
(Standard_Boolean (ShapeFix_Wire::*)() ) static_cast<Standard_Boolean (ShapeFix_Wire::*)() >(&ShapeFix_Wire::FixNotchedEdges),
R"#(None)#"
)
.def("FixGap3d",
(Standard_Boolean (ShapeFix_Wire::*)( const Standard_Integer , const Standard_Boolean ) ) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const Standard_Integer , const Standard_Boolean ) >(&ShapeFix_Wire::FixGap3d),
R"#(Fixes gap between ends of 3d curves on num-1 and num-th edges. myPrecision is used to detect the gap. If convert is True, converts curves to bsplines to bend.)#" , py::arg("num"), py::arg("convert")=static_cast<const Standard_Boolean>(Standard_False)
)
.def("FixGap2d",
(Standard_Boolean (ShapeFix_Wire::*)( const Standard_Integer , const Standard_Boolean ) ) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const Standard_Integer , const Standard_Boolean ) >(&ShapeFix_Wire::FixGap2d),
R"#(Fixes gap between ends of pcurves on num-1 and num-th edges. myPrecision is used to detect the gap. If convert is True, converts pcurves to bsplines to bend.)#" , py::arg("num"), py::arg("convert")=static_cast<const Standard_Boolean>(Standard_False)
)
.def("FixTails",
(Standard_Boolean (ShapeFix_Wire::*)() ) static_cast<Standard_Boolean (ShapeFix_Wire::*)() >(&ShapeFix_Wire::FixTails),
R"#(None)#"
)
.def("StatusReorder",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusReorder),
R"#(None)#" , py::arg("status")
)
.def("StatusSmall",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusSmall),
R"#(None)#" , py::arg("status")
)
.def("StatusConnected",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusConnected),
R"#(None)#" , py::arg("status")
)
.def("StatusEdgeCurves",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusEdgeCurves),
R"#(None)#" , py::arg("status")
)
.def("StatusDegenerated",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusDegenerated),
R"#(None)#" , py::arg("status")
)
.def("StatusSelfIntersection",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusSelfIntersection),
R"#(None)#" , py::arg("status")
)
.def("StatusLacking",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusLacking),
R"#(None)#" , py::arg("status")
)
.def("StatusClosed",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusClosed),
R"#(None)#" , py::arg("status")
)
.def("StatusGaps3d",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusGaps3d),
R"#(None)#" , py::arg("status")
)
.def("StatusGaps2d",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusGaps2d),
R"#(None)#" , py::arg("status")
)
.def("StatusNotches",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusNotches),
R"#(None)#" , py::arg("status")
)
.def("StatusRemovedSegment",
(Standard_Boolean (ShapeFix_Wire::*)() const) static_cast<Standard_Boolean (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::StatusRemovedSegment),
R"#(Querying the status of performed API fixing procedures Each Status..() methods gives information about the last call to the corresponding Fix..() method of API level: OK : no problems detected; nothing done DONE: some problem(s) was(were) detected and successfully fixed FAIL: some problem(s) cannot be fixed)#"
)
.def("StatusFixTails",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusFixTails),
R"#(None)#" , py::arg("status")
)
.def("LastFixStatus",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::LastFixStatus),
R"#(Queries the status of last call to methods Fix... of advanced level For details see corresponding methods; universal statuses are: OK : problem not detected; nothing done DONE: problem was detected and successfully fixed FAIL: problem cannot be fixed)#" , py::arg("status")
)
.def("FixEdgeTool",
(opencascade::handle<ShapeFix_Edge> (ShapeFix_Wire::*)() const) static_cast<opencascade::handle<ShapeFix_Edge> (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::FixEdgeTool),
R"#(Returns tool for fixing wires.)#"
)
.def("SetFace",
(void (ShapeFix_Wire::*)( const TopoDS_Face & ) ) static_cast<void (ShapeFix_Wire::*)( const TopoDS_Face & ) >(&ShapeFix_Wire::SetFace),
R"#(Set working face for the wire)#" , py::arg("face")
)
.def("SetSurface",
(void (ShapeFix_Wire::*)( const opencascade::handle<Geom_Surface> & ) ) static_cast<void (ShapeFix_Wire::*)( const opencascade::handle<Geom_Surface> & ) >(&ShapeFix_Wire::SetSurface),
R"#(Set surface for the wire)#" , py::arg("surf")
)
.def("SetSurface",
(void (ShapeFix_Wire::*)( const opencascade::handle<Geom_Surface> & , const TopLoc_Location & ) ) static_cast<void (ShapeFix_Wire::*)( const opencascade::handle<Geom_Surface> & , const TopLoc_Location & ) >(&ShapeFix_Wire::SetSurface),
R"#(Set surface for the wire)#" , py::arg("surf"), py::arg("loc")
)
.def("IsLoaded",
(Standard_Boolean (ShapeFix_Wire::*)() const) static_cast<Standard_Boolean (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::IsLoaded),
R"#(Tells if the wire is loaded)#"
)
.def("IsReady",
(Standard_Boolean (ShapeFix_Wire::*)() const) static_cast<Standard_Boolean (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::IsReady),
R"#(Tells if the wire and face are loaded)#"
)
.def("Wire",
(TopoDS_Wire (ShapeFix_Wire::*)() const) static_cast<TopoDS_Wire (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::Wire),
R"#(Makes the resulting Wire (by basic Brep_Builder))#"
)
.def("WireAPIMake",
(TopoDS_Wire (ShapeFix_Wire::*)() const) static_cast<TopoDS_Wire (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::WireAPIMake),
R"#(Makes the resulting Wire (by BRepAPI_MakeWire))#"
)
.def("Analyzer",
(opencascade::handle<ShapeAnalysis_Wire> (ShapeFix_Wire::*)() const) static_cast<opencascade::handle<ShapeAnalysis_Wire> (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::Analyzer),
R"#(returns field Analyzer (working tool))#"
)
.def("StatusReorder",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusReorder),
R"#(None)#" , py::arg("status")
)
.def("StatusSmall",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusSmall),
R"#(None)#" , py::arg("status")
)
.def("StatusConnected",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusConnected),
R"#(None)#" , py::arg("status")
)
.def("StatusEdgeCurves",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusEdgeCurves),
R"#(None)#" , py::arg("status")
)
.def("StatusDegenerated",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusDegenerated),
R"#(None)#" , py::arg("status")
)
.def("StatusLacking",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusLacking),
R"#(None)#" , py::arg("status")
)
.def("StatusSelfIntersection",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusSelfIntersection),
R"#(None)#" , py::arg("status")
)
.def("StatusGaps3d",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusGaps3d),
R"#(None)#" , py::arg("status")
)
.def("StatusGaps2d",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusGaps2d),
R"#(None)#" , py::arg("status")
)
.def("StatusClosed",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusClosed),
R"#(None)#" , py::arg("status")
)
.def("StatusNotches",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusNotches),
R"#(None)#" , py::arg("status")
)
.def("StatusFixTails",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::StatusFixTails),
R"#(None)#" , py::arg("status")
)
.def("LastFixStatus",
(Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wire::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wire::LastFixStatus),
R"#(Queries the status of last call to methods Fix... of advanced level For details see corresponding methods; universal statuses are: OK : problem not detected; nothing done DONE: problem was detected and successfully fixed FAIL: problem cannot be fixed)#" , py::arg("status")
)
.def("FixEdgeTool",
(opencascade::handle<ShapeFix_Edge> (ShapeFix_Wire::*)() const) static_cast<opencascade::handle<ShapeFix_Edge> (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::FixEdgeTool),
R"#(Returns tool for fixing wires.)#"
)
.def("StatusRemovedSegment",
(Standard_Boolean (ShapeFix_Wire::*)() const) static_cast<Standard_Boolean (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::StatusRemovedSegment),
R"#(Querying the status of performed API fixing procedures Each Status..() methods gives information about the last call to the corresponding Fix..() method of API level: OK : no problems detected; nothing done DONE: some problem(s) was(were) detected and successfully fixed FAIL: some problem(s) cannot be fixed)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&ShapeFix_Wire::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&ShapeFix_Wire::get_type_descriptor),
R"#(None)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("WireData",
(const opencascade::handle<ShapeExtend_WireData> & (ShapeFix_Wire::*)() const) static_cast<const opencascade::handle<ShapeExtend_WireData> & (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::WireData),
R"#(returns working wire)#"
)
.def("Face",
(const TopoDS_Face & (ShapeFix_Wire::*)() const) static_cast<const TopoDS_Face & (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::Face),
R"#(returns working face (Analyzer.Face()))#"
)
.def_property("ModifyTopologyMode",
[](ShapeFix_Wire& self){return self.ModifyTopologyMode();} ,
[](ShapeFix_Wire& self, Standard_Boolean val){self.ModifyTopologyMode() = val;}, R"#(Returns (modifiable) the flag which defines whether it is allowed to modify topology of the wire during fixing (adding/removing edges etc.))#"
)
.def_property("ModifyGeometryMode",
[](ShapeFix_Wire& self){return self.ModifyGeometryMode();} ,
[](ShapeFix_Wire& self, Standard_Boolean val){self.ModifyGeometryMode() = val;}, R"#(Returns (modifiable) the flag which defines whether the Fix..() methods are allowed to modify geometry of the edges and vertices)#"
)
.def_property("ModifyRemoveLoopMode",
[](ShapeFix_Wire& self){return self.ModifyRemoveLoopMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.ModifyRemoveLoopMode() = val;}, R"#(Returns (modifiable) the flag which defines whether the Fix..() methods are allowed to modify RemoveLoop of the edges)#"
)
.def_property("ClosedWireMode",
[](ShapeFix_Wire& self){return self.ClosedWireMode();} ,
[](ShapeFix_Wire& self, Standard_Boolean val){self.ClosedWireMode() = val;}, R"#(Returns (modifiable) the flag which defines whether the wire is to be closed (by calling methods like FixDegenerated() and FixConnected() for last and first edges).)#"
)
.def_property("PreferencePCurveMode",
[](ShapeFix_Wire& self){return self.PreferencePCurveMode();} ,
[](ShapeFix_Wire& self, Standard_Boolean val){self.PreferencePCurveMode() = val;}, R"#(Returns (modifiable) the flag which defines whether the 2d (True) representation of the wire is preferable over 3d one (in the case of ambiguity in FixEdgeCurves).)#"
)
.def_property("FixGapsByRangesMode",
[](ShapeFix_Wire& self){return self.FixGapsByRangesMode();} ,
[](ShapeFix_Wire& self, Standard_Boolean val){self.FixGapsByRangesMode() = val;}, R"#(Returns (modifiable) the flag which defines whether tool tries to fix gaps first by changing curves ranges (i.e. using intersection, extrema, projections) or not.)#"
)
.def_property("FixReorderMode",
[](ShapeFix_Wire& self){return self.FixReorderMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixReorderMode() = val;}, R"#(None)#"
)
.def_property("FixSmallMode",
[](ShapeFix_Wire& self){return self.FixSmallMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixSmallMode() = val;}, R"#(None)#"
)
.def_property("FixConnectedMode",
[](ShapeFix_Wire& self){return self.FixConnectedMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixConnectedMode() = val;}, R"#(None)#"
)
.def_property("FixEdgeCurvesMode",
[](ShapeFix_Wire& self){return self.FixEdgeCurvesMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixEdgeCurvesMode() = val;}, R"#(None)#"
)
.def_property("FixDegeneratedMode",
[](ShapeFix_Wire& self){return self.FixDegeneratedMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixDegeneratedMode() = val;}, R"#(None)#"
)
.def_property("FixSelfIntersectionMode",
[](ShapeFix_Wire& self){return self.FixSelfIntersectionMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixSelfIntersectionMode() = val;}, R"#(None)#"
)
.def_property("FixLackingMode",
[](ShapeFix_Wire& self){return self.FixLackingMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixLackingMode() = val;}, R"#(None)#"
)
.def_property("FixGaps3dMode",
[](ShapeFix_Wire& self){return self.FixGaps3dMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixGaps3dMode() = val;}, R"#(None)#"
)
.def_property("FixGaps2dMode",
[](ShapeFix_Wire& self){return self.FixGaps2dMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixGaps2dMode() = val;}, R"#(Returns (modifiable) the flag for corresponding Fix..() method which defines whether this method will be called from the method APIFix(): -1 default 1 method will be called 0 method will not be called)#"
)
.def_property("FixReversed2dMode",
[](ShapeFix_Wire& self){return self.FixReversed2dMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixReversed2dMode() = val;}, R"#(None)#"
)
.def_property("FixRemovePCurveMode",
[](ShapeFix_Wire& self){return self.FixRemovePCurveMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixRemovePCurveMode() = val;}, R"#(None)#"
)
.def_property("FixAddPCurveMode",
[](ShapeFix_Wire& self){return self.FixAddPCurveMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixAddPCurveMode() = val;}, R"#(None)#"
)
.def_property("FixRemoveCurve3dMode",
[](ShapeFix_Wire& self){return self.FixRemoveCurve3dMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixRemoveCurve3dMode() = val;}, R"#(None)#"
)
.def_property("FixAddCurve3dMode",
[](ShapeFix_Wire& self){return self.FixAddCurve3dMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixAddCurve3dMode() = val;}, R"#(None)#"
)
.def_property("FixSeamMode",
[](ShapeFix_Wire& self){return self.FixSeamMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixSeamMode() = val;}, R"#(None)#"
)
.def_property("FixShiftedMode",
[](ShapeFix_Wire& self){return self.FixShiftedMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixShiftedMode() = val;}, R"#(None)#"
)
.def_property("FixSameParameterMode",
[](ShapeFix_Wire& self){return self.FixSameParameterMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixSameParameterMode() = val;}, R"#(None)#"
)
.def_property("FixVertexToleranceMode",
[](ShapeFix_Wire& self){return self.FixVertexToleranceMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixVertexToleranceMode() = val;}, R"#(None)#"
)
.def_property("FixNotchedEdgesMode",
[](ShapeFix_Wire& self){return self.FixNotchedEdgesMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixNotchedEdgesMode() = val;}, R"#(None)#"
)
.def_property("FixSelfIntersectingEdgeMode",
[](ShapeFix_Wire& self){return self.FixSelfIntersectingEdgeMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixSelfIntersectingEdgeMode() = val;}, R"#(None)#"
)
.def_property("FixIntersectingEdgesMode",
[](ShapeFix_Wire& self){return self.FixIntersectingEdgesMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixIntersectingEdgesMode() = val;}, R"#(None)#"
)
.def_property("FixNonAdjacentIntersectingEdgesMode",
[](ShapeFix_Wire& self){return self.FixNonAdjacentIntersectingEdgesMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixNonAdjacentIntersectingEdgesMode() = val;}, R"#(Returns (modifiable) the flag for corresponding Fix..() method which defines whether this method will be called from the corresponding Fix..() method of the public level: -1 default 1 method will be called 0 method will not be called)#"
)
.def_property("FixTailMode",
[](ShapeFix_Wire& self){return self.FixTailMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixTailMode() = val;}, R"#(None)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (ShapeFix_Wire::*)() const) static_cast<const opencascade::handle<Standard_Type> & (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::DynamicType),
R"#(None)#"
)
.def("WireData",
(const opencascade::handle<ShapeExtend_WireData> & (ShapeFix_Wire::*)() const) static_cast<const opencascade::handle<ShapeExtend_WireData> & (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::WireData),
R"#(returns working wire)#"
)
.def("Face",
(const TopoDS_Face & (ShapeFix_Wire::*)() const) static_cast<const TopoDS_Face & (ShapeFix_Wire::*)() const>(&ShapeFix_Wire::Face),
R"#(returns working face (Analyzer.Face()))#"
)
.def_property("ModifyTopologyMode",
[](ShapeFix_Wire& self){return self.ModifyTopologyMode();} ,
[](ShapeFix_Wire& self, Standard_Boolean val){self.ModifyTopologyMode() = val;}, R"#(Returns (modifiable) the flag which defines whether it is allowed to modify topology of the wire during fixing (adding/removing edges etc.))#"
)
.def_property("ModifyGeometryMode",
[](ShapeFix_Wire& self){return self.ModifyGeometryMode();} ,
[](ShapeFix_Wire& self, Standard_Boolean val){self.ModifyGeometryMode() = val;}, R"#(Returns (modifiable) the flag which defines whether the Fix..() methods are allowed to modify geometry of the edges and vertices)#"
)
.def_property("ModifyRemoveLoopMode",
[](ShapeFix_Wire& self){return self.ModifyRemoveLoopMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.ModifyRemoveLoopMode() = val;}, R"#(Returns (modifiable) the flag which defines whether the Fix..() methods are allowed to modify RemoveLoop of the edges)#"
)
.def_property("ClosedWireMode",
[](ShapeFix_Wire& self){return self.ClosedWireMode();} ,
[](ShapeFix_Wire& self, Standard_Boolean val){self.ClosedWireMode() = val;}, R"#(Returns (modifiable) the flag which defines whether the wire is to be closed (by calling methods like FixDegenerated() and FixConnected() for last and first edges).)#"
)
.def_property("PreferencePCurveMode",
[](ShapeFix_Wire& self){return self.PreferencePCurveMode();} ,
[](ShapeFix_Wire& self, Standard_Boolean val){self.PreferencePCurveMode() = val;}, R"#(Returns (modifiable) the flag which defines whether the 2d (True) representation of the wire is preferable over 3d one (in the case of ambiguity in FixEdgeCurves).)#"
)
.def_property("FixGapsByRangesMode",
[](ShapeFix_Wire& self){return self.FixGapsByRangesMode();} ,
[](ShapeFix_Wire& self, Standard_Boolean val){self.FixGapsByRangesMode() = val;}, R"#(Returns (modifiable) the flag which defines whether tool tries to fix gaps first by changing curves ranges (i.e. using intersection, extrema, projections) or not.)#"
)
.def_property("FixReorderMode",
[](ShapeFix_Wire& self){return self.FixReorderMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixReorderMode() = val;}, R"#(None)#"
)
.def_property("FixSmallMode",
[](ShapeFix_Wire& self){return self.FixSmallMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixSmallMode() = val;}, R"#(None)#"
)
.def_property("FixConnectedMode",
[](ShapeFix_Wire& self){return self.FixConnectedMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixConnectedMode() = val;}, R"#(None)#"
)
.def_property("FixEdgeCurvesMode",
[](ShapeFix_Wire& self){return self.FixEdgeCurvesMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixEdgeCurvesMode() = val;}, R"#(None)#"
)
.def_property("FixDegeneratedMode",
[](ShapeFix_Wire& self){return self.FixDegeneratedMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixDegeneratedMode() = val;}, R"#(None)#"
)
.def_property("FixReversed2dMode",
[](ShapeFix_Wire& self){return self.FixReversed2dMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixReversed2dMode() = val;}, R"#(None)#"
)
.def_property("FixRemovePCurveMode",
[](ShapeFix_Wire& self){return self.FixRemovePCurveMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixRemovePCurveMode() = val;}, R"#(None)#"
)
.def_property("FixRemoveCurve3dMode",
[](ShapeFix_Wire& self){return self.FixRemoveCurve3dMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixRemoveCurve3dMode() = val;}, R"#(None)#"
)
.def_property("FixAddPCurveMode",
[](ShapeFix_Wire& self){return self.FixAddPCurveMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixAddPCurveMode() = val;}, R"#(None)#"
)
.def_property("FixAddCurve3dMode",
[](ShapeFix_Wire& self){return self.FixAddCurve3dMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixAddCurve3dMode() = val;}, R"#(None)#"
)
.def_property("FixSeamMode",
[](ShapeFix_Wire& self){return self.FixSeamMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixSeamMode() = val;}, R"#(None)#"
)
.def_property("FixShiftedMode",
[](ShapeFix_Wire& self){return self.FixShiftedMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixShiftedMode() = val;}, R"#(None)#"
)
.def_property("FixSameParameterMode",
[](ShapeFix_Wire& self){return self.FixSameParameterMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixSameParameterMode() = val;}, R"#(None)#"
)
.def_property("FixVertexToleranceMode",
[](ShapeFix_Wire& self){return self.FixVertexToleranceMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixVertexToleranceMode() = val;}, R"#(None)#"
)
.def_property("FixLackingMode",
[](ShapeFix_Wire& self){return self.FixLackingMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixLackingMode() = val;}, R"#(None)#"
)
.def_property("FixSelfIntersectionMode",
[](ShapeFix_Wire& self){return self.FixSelfIntersectionMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixSelfIntersectionMode() = val;}, R"#(None)#"
)
.def_property("FixGaps3dMode",
[](ShapeFix_Wire& self){return self.FixGaps3dMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixGaps3dMode() = val;}, R"#(None)#"
)
.def_property("FixGaps2dMode",
[](ShapeFix_Wire& self){return self.FixGaps2dMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixGaps2dMode() = val;}, R"#(Returns (modifiable) the flag for corresponding Fix..() method which defines whether this method will be called from the method APIFix(): -1 default 1 method will be called 0 method will not be called)#"
)
.def_property("FixNotchedEdgesMode",
[](ShapeFix_Wire& self){return self.FixNotchedEdgesMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixNotchedEdgesMode() = val;}, R"#(None)#"
)
.def_property("FixSelfIntersectingEdgeMode",
[](ShapeFix_Wire& self){return self.FixSelfIntersectingEdgeMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixSelfIntersectingEdgeMode() = val;}, R"#(None)#"
)
.def_property("FixIntersectingEdgesMode",
[](ShapeFix_Wire& self){return self.FixIntersectingEdgesMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixIntersectingEdgesMode() = val;}, R"#(None)#"
)
.def_property("FixNonAdjacentIntersectingEdgesMode",
[](ShapeFix_Wire& self){return self.FixNonAdjacentIntersectingEdgesMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixNonAdjacentIntersectingEdgesMode() = val;}, R"#(Returns (modifiable) the flag for corresponding Fix..() method which defines whether this method will be called from the corresponding Fix..() method of the public level: -1 default 1 method will be called 0 method will not be called)#"
)
.def_property("FixTailMode",
[](ShapeFix_Wire& self){return self.FixTailMode();} ,
[](ShapeFix_Wire& self, Standard_Integer val){self.FixTailMode() = val;}, R"#(None)#"
)
;
// Class ShapeFix_Wireframe from ./opencascade/ShapeFix_Wireframe.hxx
klass = m.attr("ShapeFix_Wireframe");
// nested enums
static_cast<py::class_<ShapeFix_Wireframe ,opencascade::handle<ShapeFix_Wireframe> , ShapeFix_Root >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TopoDS_Shape & >() , py::arg("shape") )
// custom constructors
// methods
.def("ClearStatuses",
(void (ShapeFix_Wireframe::*)() ) static_cast<void (ShapeFix_Wireframe::*)() >(&ShapeFix_Wireframe::ClearStatuses),
R"#(Clears all statuses)#"
)
.def("Load",
(void (ShapeFix_Wireframe::*)( const TopoDS_Shape & ) ) static_cast<void (ShapeFix_Wireframe::*)( const TopoDS_Shape & ) >(&ShapeFix_Wireframe::Load),
R"#(Loads a shape, resets statuses)#" , py::arg("shape")
)
.def("FixWireGaps",
(Standard_Boolean (ShapeFix_Wireframe::*)() ) static_cast<Standard_Boolean (ShapeFix_Wireframe::*)() >(&ShapeFix_Wireframe::FixWireGaps),
R"#(Fixes gaps between ends of curves of adjacent edges (both 3d and pcurves) in wires If precision is 0.0, uses Precision::Confusion().)#"
)
.def("FixSmallEdges",
(Standard_Boolean (ShapeFix_Wireframe::*)() ) static_cast<Standard_Boolean (ShapeFix_Wireframe::*)() >(&ShapeFix_Wireframe::FixSmallEdges),
R"#(Fixes small edges in shape by merging adjacent edges If precision is 0.0, uses Precision::Confusion().)#"
)
.def("CheckSmallEdges",
(Standard_Boolean (ShapeFix_Wireframe::*)( NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> & , NCollection_DataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , NCollection_DataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> & ) ) static_cast<Standard_Boolean (ShapeFix_Wireframe::*)( NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> & , NCollection_DataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , NCollection_DataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> & ) >(&ShapeFix_Wireframe::CheckSmallEdges),
R"#(Auxiliary tool for FixSmallEdges which checks for small edges and fills the maps. Returns True if at least one small edge has been found.)#" , py::arg("theSmallEdges"), py::arg("theEdgeToFaces"), py::arg("theFaceWithSmall"), py::arg("theMultyEdges")
)
.def("MergeSmallEdges",
(Standard_Boolean (ShapeFix_Wireframe::*)( NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> & , NCollection_DataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , NCollection_DataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> & , const Standard_Boolean , const Standard_Real ) ) static_cast<Standard_Boolean (ShapeFix_Wireframe::*)( NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> & , NCollection_DataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , NCollection_DataMap<TopoDS_Shape, TopTools_ListOfShape, TopTools_ShapeMapHasher> & , NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher> & , const Standard_Boolean , const Standard_Real ) >(&ShapeFix_Wireframe::MergeSmallEdges),
R"#(Auxiliary tool for FixSmallEdges which merges small edges. If theModeDrop is equal to Standard_True then small edges, which cannot be connected with adjacent edges are dropped. Otherwise they are kept. theLimitAngle specifies maximum allowed tangency discontinuity between adjacent edges. If theLimitAngle is equal to -1, this angle is not taken into account.)#" , py::arg("theSmallEdges"), py::arg("theEdgeToFaces"), py::arg("theFaceWithSmall"), py::arg("theMultyEdges"), py::arg("theModeDrop")=static_cast<const Standard_Boolean>(Standard_False), py::arg("theLimitAngle")=static_cast<const Standard_Real>(- 1)
)
.def("StatusWireGaps",
(Standard_Boolean (ShapeFix_Wireframe::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wireframe::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wireframe::StatusWireGaps),
R"#(Decodes the status of the last FixWireGaps. OK - No gaps were found DONE1 - Some gaps in 3D were fixed DONE2 - Some gaps in 2D were fixed FAIL1 - Failed to fix some gaps in 3D FAIL2 - Failed to fix some gaps in 2D)#" , py::arg("status")
)
.def("StatusSmallEdges",
(Standard_Boolean (ShapeFix_Wireframe::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wireframe::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wireframe::StatusSmallEdges),
R"#(Decodes the status of the last FixSmallEdges. OK - No small edges were found DONE1 - Some small edges were fixed FAIL1 - Failed to fix some small edges)#" , py::arg("status")
)
.def("Shape",
(TopoDS_Shape (ShapeFix_Wireframe::*)() ) static_cast<TopoDS_Shape (ShapeFix_Wireframe::*)() >(&ShapeFix_Wireframe::Shape),
R"#(None)#"
)
.def("SetLimitAngle",
(void (ShapeFix_Wireframe::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Wireframe::*)( const Standard_Real ) >(&ShapeFix_Wireframe::SetLimitAngle),
R"#(Set limit angle for merging edges.)#" , py::arg("theLimitAngle")
)
.def("LimitAngle",
(Standard_Real (ShapeFix_Wireframe::*)() const) static_cast<Standard_Real (ShapeFix_Wireframe::*)() const>(&ShapeFix_Wireframe::LimitAngle),
R"#(Get limit angle for merging edges.)#"
)
.def("StatusWireGaps",
(Standard_Boolean (ShapeFix_Wireframe::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wireframe::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wireframe::StatusWireGaps),
R"#(Decodes the status of the last FixWireGaps. OK - No gaps were found DONE1 - Some gaps in 3D were fixed DONE2 - Some gaps in 2D were fixed FAIL1 - Failed to fix some gaps in 3D FAIL2 - Failed to fix some gaps in 2D)#" , py::arg("status")
)
.def("StatusSmallEdges",
(Standard_Boolean (ShapeFix_Wireframe::*)( const ShapeExtend_Status ) const) static_cast<Standard_Boolean (ShapeFix_Wireframe::*)( const ShapeExtend_Status ) const>(&ShapeFix_Wireframe::StatusSmallEdges),
R"#(Decodes the status of the last FixSmallEdges. OK - No small edges were found DONE1 - Some small edges were fixed FAIL1 - Failed to fix some small edges)#" , py::arg("status")
)
.def("Shape",
(TopoDS_Shape (ShapeFix_Wireframe::*)() ) static_cast<TopoDS_Shape (ShapeFix_Wireframe::*)() >(&ShapeFix_Wireframe::Shape),
R"#(None)#"
)
.def("SetLimitAngle",
(void (ShapeFix_Wireframe::*)( const Standard_Real ) ) static_cast<void (ShapeFix_Wireframe::*)( const Standard_Real ) >(&ShapeFix_Wireframe::SetLimitAngle),
R"#(Set limit angle for merging edges.)#" , py::arg("theLimitAngle")
)
.def("LimitAngle",
(Standard_Real (ShapeFix_Wireframe::*)() const) static_cast<Standard_Real (ShapeFix_Wireframe::*)() const>(&ShapeFix_Wireframe::LimitAngle),
R"#(Get limit angle for merging edges.)#"
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&ShapeFix_Wireframe::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&ShapeFix_Wireframe::get_type_descriptor),
R"#(None)#"
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def_property("ModeDropSmallEdges",
[](ShapeFix_Wireframe& self){return self.ModeDropSmallEdges();} ,
[](ShapeFix_Wireframe& self, Standard_Boolean val){self.ModeDropSmallEdges() = val;}, R"#(Returns mode managing removing small edges.)#"
)
.def("DynamicType",
(const opencascade::handle<Standard_Type> & (ShapeFix_Wireframe::*)() const) static_cast<const opencascade::handle<Standard_Type> & (ShapeFix_Wireframe::*)() const>(&ShapeFix_Wireframe::DynamicType),
R"#(None)#"
)
.def_property("ModeDropSmallEdges",
[](ShapeFix_Wireframe& self){return self.ModeDropSmallEdges();} ,
[](ShapeFix_Wireframe& self, Standard_Boolean val){self.ModeDropSmallEdges() = val;}, R"#(Returns mode managing removing small edges.)#"
)
;
// functions
// ./opencascade/ShapeFix.hxx
// ./opencascade/ShapeFix_ComposeShell.hxx
// ./opencascade/ShapeFix_DataMapIteratorOfDataMapOfShapeBox2d.hxx
// ./opencascade/ShapeFix_DataMapOfShapeBox2d.hxx
// ./opencascade/ShapeFix_Edge.hxx
// ./opencascade/ShapeFix_EdgeConnect.hxx
// ./opencascade/ShapeFix_EdgeProjAux.hxx
// ./opencascade/ShapeFix_Face.hxx
// ./opencascade/ShapeFix_FaceConnect.hxx
// ./opencascade/ShapeFix_FixSmallFace.hxx
// ./opencascade/ShapeFix_FixSmallSolid.hxx
// ./opencascade/ShapeFix_FreeBounds.hxx
// ./opencascade/ShapeFix_IntersectionTool.hxx
// ./opencascade/ShapeFix_Root.hxx
// ./opencascade/ShapeFix_SequenceOfWireSegment.hxx
// ./opencascade/ShapeFix_Shape.hxx
// ./opencascade/ShapeFix_ShapeTolerance.hxx
// ./opencascade/ShapeFix_Shell.hxx
// ./opencascade/ShapeFix_Solid.hxx
// ./opencascade/ShapeFix_SplitCommonVertex.hxx
// ./opencascade/ShapeFix_SplitTool.hxx
// ./opencascade/ShapeFix_Wire.hxx
// ./opencascade/ShapeFix_WireSegment.hxx
// ./opencascade/ShapeFix_WireVertex.hxx
// ./opencascade/ShapeFix_Wireframe.hxx
// Additional functions
// operators
// register typdefs
register_template_NCollection_DataMap<TopoDS_Shape, Bnd_Box2d, TopTools_ShapeMapHasher>(m,"ShapeFix_DataMapOfShapeBox2d");
register_template_NCollection_Sequence<ShapeFix_WireSegment>(m,"ShapeFix_SequenceOfWireSegment");
// exceptions
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|