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 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601
|
import OCP.BRepMesh
from typing import *
from typing import Iterable as iterable
from typing import Iterator as iterator
from numpy import float64
_Shape = Tuple[int, ...]
import OCP.Geom2d
import OCP.TopLoc
import OCP.NCollection
import OCP.Geom
import BRepMesh_GeomTool
import OCP.TopAbs
import OCP.IMeshTools
import OCP.TColgp
import OCP.BRepAdaptor
import OCP.IMeshData
import OCP.Message
import OCP.Poly
import OCP.TColStd
import OCP.gp
import OCP.Standard
import OCP.BRepBuilderAPI
import OCP.TopoDS
import io
import OCP.Bnd
import OCP.TCollection
import OCP.GeomAbs
__all__ = [
"BRepMesh_Circle",
"BRepMesh_CircleInspector",
"BRepMesh_CircleTool",
"BRepMesh_Classifier",
"BRepMesh_CurveTessellator",
"BRepMesh_DataStructureOfDelaun",
"BRepMesh_Deflection",
"BRepMesh_DegreeOfFreedom",
"BRepMesh_DelabellaBaseMeshAlgo",
"BRepMesh_DelabellaMeshAlgoFactory",
"BRepMesh_DiscretFactory",
"BRepMesh_DiscretRoot",
"BRepMesh_OrientedEdge",
"BRepMesh_EdgeDiscret",
"BRepMesh_EdgeTessellationExtractor",
"BRepMesh_ExtrusionRangeSplitter",
"BRepMesh_FaceChecker",
"BRepMesh_FaceDiscret",
"BRepMesh_FactoryError",
"BRepMesh_FastDiscret",
"BRepMesh_GeomTool",
"BRepMesh_IncrementalMesh",
"BRepMesh_MeshAlgoFactory",
"BRepMesh_MeshTool",
"BRepMesh_ModelBuilder",
"BRepMesh_ModelHealer",
"BRepMesh_ModelPostProcessor",
"BRepMesh_ModelPreProcessor",
"BRepMesh_Edge",
"BRepMesh_PairOfIndex",
"BRepMesh_SelectorOfDataStructureOfDelaun",
"BRepMesh_ShapeTool",
"BRepMesh_ShapeVisitor",
"BRepMesh_Triangulator",
"BRepMesh_UndefinedRangeSplitter",
"BRepMesh_Vertex",
"BRepMesh_VertexInspector",
"BRepMesh_VertexTool",
"BRepMesh_Deleted",
"BRepMesh_FE_CANNOTCREATEALGO",
"BRepMesh_FE_FUNCTIONNOTFOUND",
"BRepMesh_FE_LIBRARYNOTFOUND",
"BRepMesh_FE_NOERROR",
"BRepMesh_Fixed",
"BRepMesh_Free",
"BRepMesh_Frontier",
"BRepMesh_InVolume",
"BRepMesh_OnCurve",
"BRepMesh_OnSurface"
]
class BRepMesh_Circle():
"""
Describes a 2d circle with a size of only 3 Standard_Real numbers instead of gp who needs 7 Standard_Real numbers.
"""
def Location(self) -> OCP.gp.gp_XY:
"""
Returns location of a circle.
"""
def Radius(self) -> float:
"""
Returns radius of a circle.
"""
def SetLocation(self,theLocation : OCP.gp.gp_XY) -> None:
"""
Sets location of a circle.
"""
def SetRadius(self,theRadius : float) -> None:
"""
Sets radius of a circle.
"""
@overload
def __init__(self,theLocation : OCP.gp.gp_XY,theRadius : float) -> None: ...
@overload
def __init__(self) -> None: ...
pass
class BRepMesh_CircleInspector(OCP.NCollection.NCollection_CellFilter_InspectorXY):
"""
Auxiliary class to find circles shot by the given point.
"""
def Bind(self,theIndex : int,theCircle : BRepMesh_Circle) -> None:
"""
Adds the circle to vector of circles at the given position.
"""
def Circle(self,theIndex : int) -> BRepMesh_Circle:
"""
Returns circle with the given index.
"""
def Circles(self) -> Any:
"""
Resutns vector of registered circles.
"""
@staticmethod
def Coord_s(i : int,thePnt : OCP.gp.gp_XY) -> float:
"""
Access to coordinate
"""
def GetShotCircles(self) -> Any:
"""
Returns list of circles shot by the reference point.
"""
def Inspect(self,theTargetIndex : int) -> OCP.NCollection.NCollection_CellFilter_Action:
"""
Performs inspection of a circle with the given index.
"""
@staticmethod
def IsEqual_s(theIndex : int,theTargetIndex : int) -> bool:
"""
Checks indices for equlity.
"""
def SetPoint(self,thePoint : OCP.gp.gp_XY) -> None:
"""
Set reference point to be checked.
"""
def Shift(self,thePnt : OCP.gp.gp_XY,theTol : float) -> OCP.gp.gp_XY:
"""
Auxiliary method to shift point by each coordinate on given value; useful for preparing a points range for Inspect with tolerance
"""
def __init__(self,theTolerance : float,theReservedSize : int,theAllocator : OCP.NCollection.NCollection_IncAllocator) -> None: ...
Dimension = 2
pass
class BRepMesh_CircleTool():
"""
Create sort and destroy the circles used in triangulation.
"""
@overload
def Bind(self,theIndex : int,theCircle : OCP.gp.gp_Circ2d) -> None:
"""
Binds the circle to the tool.
Computes circle on three points and bind it to the tool.
"""
@overload
def Bind(self,theIndex : int,thePoint1 : OCP.gp.gp_XY,thePoint2 : OCP.gp.gp_XY,thePoint3 : OCP.gp.gp_XY) -> bool: ...
def Delete(self,theIndex : int) -> None:
"""
Deletes a circle from the tool.
"""
def Init(self,arg1 : int) -> None:
"""
Initializes the tool.
"""
def IsEmpty(self) -> bool:
"""
Returns true if cell filter contains no circle.
"""
@staticmethod
def MakeCircle_s(thePoint1 : OCP.gp.gp_XY,thePoint2 : OCP.gp.gp_XY,thePoint3 : OCP.gp.gp_XY,theLocation : OCP.gp.gp_XY,theRadius : float) -> bool:
"""
Computes circle on three points.
"""
def MocBind(self,theIndex : int) -> None:
"""
Binds implicit zero circle.
"""
def Select(self,thePoint : OCP.gp.gp_XY) -> Any:
"""
Select the circles shot by the given point.
"""
@overload
def SetCellSize(self,theSize : float) -> None:
"""
Sets new size for cell filter.
Sets new size for cell filter.
"""
@overload
def SetCellSize(self,theSizeX : float,theSizeY : float) -> None: ...
def SetMinMaxSize(self,theMin : OCP.gp.gp_XY,theMax : OCP.gp.gp_XY) -> None:
"""
Sets limits of inspection area.
"""
@overload
def __init__(self,theReservedSize : int,theAllocator : OCP.NCollection.NCollection_IncAllocator) -> None: ...
@overload
def __init__(self,theAllocator : OCP.NCollection.NCollection_IncAllocator) -> None: ...
pass
class BRepMesh_Classifier(OCP.Standard.Standard_Transient):
"""
Auxiliary class intended for classification of points regarding internals of discrete face.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def Perform(self,thePoint : OCP.gp.gp_Pnt2d) -> OCP.TopAbs.TopAbs_State:
"""
Performs classification of the given point regarding to face internals.
"""
def RegisterWire(self,theWire : Any,theTolUV : tuple[floatfloat],theRangeU : tuple[floatfloat],theRangeV : tuple[floatfloat]) -> None:
"""
Registers wire specified by sequence of points for further classification of points.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_CurveTessellator(OCP.IMeshTools.IMeshTools_CurveTessellator, OCP.Standard.Standard_Transient):
"""
Auxiliary class performing tessellation of passed edge according to specified parameters.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def PointsNb(self) -> int:
"""
Returns number of tessellation points.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def Value(self,theIndex : int,thePoint : OCP.gp.gp_Pnt,theParameter : float) -> bool:
"""
Returns parameters of solution with the given index.
"""
@overload
def __init__(self,theEdge : OCP.IMeshData.IMeshData_Edge,theParameters : OCP.IMeshTools.IMeshTools_Parameters,theMinPointsNb : int=2) -> None: ...
@overload
def __init__(self,theEdge : OCP.IMeshData.IMeshData_Edge,theOrientation : OCP.TopAbs.TopAbs_Orientation,theFace : OCP.IMeshData.IMeshData_Face,theParameters : OCP.IMeshTools.IMeshTools_Parameters,theMinPointsNb : int=2) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_DataStructureOfDelaun(OCP.Standard.Standard_Transient):
"""
Describes the data structure necessary for the mesh algorithms in two dimensions plane or on surface by meshing in UV space.
"""
def AddElement(self,theElement : BRepMesh_Triangle) -> int:
"""
Adds element to the mesh if it is not already in the mesh.
"""
def AddLink(self,theLink : BRepMesh_Edge) -> int:
"""
Adds link to the mesh if it is not already in the mesh.
"""
def AddNode(self,theNode : BRepMesh_Vertex,isForceAdd : bool=False) -> int:
"""
Adds node to the mesh if it is not already in the mesh.
"""
def Allocator(self) -> OCP.NCollection.NCollection_IncAllocator:
"""
Returns memory allocator used by the structure.
"""
def ClearDeleted(self) -> None:
"""
Substitutes deleted items by the last one from corresponding map to have only non-deleted elements, links or nodes in the structure.
"""
def ClearDomain(self) -> None:
"""
Removes all elements.
"""
def Data(self) -> BRepMesh_VertexTool:
"""
Gives the data structure for initialization of cell size and tolerance.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def Dump(self,theFileNameStr : str) -> None:
"""
None
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def ElementsConnectedTo(self,theLinkIndex : int) -> BRepMesh_PairOfIndex:
"""
Returns indices of elements connected to the link with the given index.
"""
def ElementsOfDomain(self) -> Any:
"""
Returns map of indices of elements registered in mesh.
"""
def GetElement(self,theIndex : int) -> BRepMesh_Triangle:
"""
Get element by the index.
"""
def GetLink(self,theIndex : int) -> BRepMesh_Edge:
"""
Get link by the index.
"""
def GetNode(self,theIndex : int) -> BRepMesh_Vertex:
"""
Get node by the index.
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IndexOf(self,theLink : BRepMesh_Edge) -> int:
"""
Finds the index of the given node.
Finds the index of the given link.
"""
@overload
def IndexOf(self,theNode : BRepMesh_Vertex) -> int: ...
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def LinksConnectedTo(self,theIndex : int) -> Any:
"""
Get list of links attached to the node with the given index.
"""
def LinksOfDomain(self) -> Any:
"""
Returns map of indices of links registered in mesh.
"""
def NbElements(self) -> int:
"""
Returns number of links.
"""
def NbLinks(self) -> int:
"""
Returns number of links.
"""
def NbNodes(self) -> int:
"""
Returns number of nodes.
"""
def RemoveElement(self,theIndex : int) -> None:
"""
Removes element from the mesh.
"""
def RemoveLink(self,theIndex : int,isForce : bool=False) -> None:
"""
Removes link from the mesh in case if it has no connected elements and its type is Free.
"""
def RemoveNode(self,theIndex : int,isForce : bool=False) -> None:
"""
Removes node from the mesh in case if it has no connected links and its type is Free.
"""
def Statistics(self,theStream : io.BytesIO) -> None:
"""
Dumps information about this structure.
"""
def SubstituteElement(self,theIndex : int,theNewElement : BRepMesh_Triangle) -> bool:
"""
Substitutes the element with the given index by new one.
"""
def SubstituteLink(self,theIndex : int,theNewLink : BRepMesh_Edge) -> bool:
"""
Substitutes the link with the given index by new one.
"""
def SubstituteNode(self,theIndex : int,theNewNode : BRepMesh_Vertex) -> bool:
"""
Substitutes the node with the given index by new one.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __call__(self,theIndex : int) -> BRepMesh_Vertex:
"""
Alias for GetNode.
"""
def __init__(self,theAllocator : OCP.NCollection.NCollection_IncAllocator,theReservedNodeSize : int=100) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_Deflection(OCP.Standard.Standard_Transient):
"""
Auxiliary tool encompassing methods to compute deflection of shapes.
"""
@staticmethod
def ComputeAbsoluteDeflection_s(theShape : OCP.TopoDS.TopoDS_Shape,theRelativeDeflection : float,theMaxShapeSize : float) -> float:
"""
Returns absolute deflection for theShape with respect to the relative deflection and theMaxShapeSize.
"""
@staticmethod
@overload
def ComputeDeflection_s(theDEdge : OCP.IMeshData.IMeshData_Edge,theMaxShapeSize : float,theParameters : OCP.IMeshTools.IMeshTools_Parameters) -> None:
"""
Computes and updates deflection of the given discrete edge.
Computes and updates deflection of the given discrete wire.
Computes and updates deflection of the given discrete face.
"""
@staticmethod
@overload
def ComputeDeflection_s(theDWire : OCP.IMeshData.IMeshData_Wire,theParameters : OCP.IMeshTools.IMeshTools_Parameters) -> None: ...
@staticmethod
@overload
def ComputeDeflection_s(theDFace : OCP.IMeshData.IMeshData_Face,theParameters : OCP.IMeshTools.IMeshTools_Parameters) -> None: ...
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@staticmethod
def IsConsistent_s(theCurrent : float,theRequired : float,theAllowDecrease : bool,theRatio : float=0.1) -> bool:
"""
Checks if the deflection of current polygonal representation is consistent with the required deflection.
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_DegreeOfFreedom():
"""
None
Members:
BRepMesh_Free
BRepMesh_InVolume
BRepMesh_OnSurface
BRepMesh_OnCurve
BRepMesh_Fixed
BRepMesh_Frontier
BRepMesh_Deleted
"""
def __eq__(self,other : object) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
def __index__(self) -> int: ...
def __init__(self,value : int) -> None: ...
def __int__(self) -> int: ...
def __ne__(self,other : object) -> bool: ...
def __repr__(self) -> str: ...
def __setstate__(self,state : int) -> None: ...
def __str__(self) -> str: ...
@property
def name(self) -> None:
"""
:type: None
"""
@property
def value(self) -> int:
"""
:type: int
"""
BRepMesh_Deleted: OCP.BRepMesh.BRepMesh_DegreeOfFreedom # value = <BRepMesh_DegreeOfFreedom.BRepMesh_Deleted: 6>
BRepMesh_Fixed: OCP.BRepMesh.BRepMesh_DegreeOfFreedom # value = <BRepMesh_DegreeOfFreedom.BRepMesh_Fixed: 4>
BRepMesh_Free: OCP.BRepMesh.BRepMesh_DegreeOfFreedom # value = <BRepMesh_DegreeOfFreedom.BRepMesh_Free: 0>
BRepMesh_Frontier: OCP.BRepMesh.BRepMesh_DegreeOfFreedom # value = <BRepMesh_DegreeOfFreedom.BRepMesh_Frontier: 5>
BRepMesh_InVolume: OCP.BRepMesh.BRepMesh_DegreeOfFreedom # value = <BRepMesh_DegreeOfFreedom.BRepMesh_InVolume: 1>
BRepMesh_OnCurve: OCP.BRepMesh.BRepMesh_DegreeOfFreedom # value = <BRepMesh_DegreeOfFreedom.BRepMesh_OnCurve: 3>
BRepMesh_OnSurface: OCP.BRepMesh.BRepMesh_DegreeOfFreedom # value = <BRepMesh_DegreeOfFreedom.BRepMesh_OnSurface: 2>
__entries: dict # value = {'BRepMesh_Free': (<BRepMesh_DegreeOfFreedom.BRepMesh_Free: 0>, None), 'BRepMesh_InVolume': (<BRepMesh_DegreeOfFreedom.BRepMesh_InVolume: 1>, None), 'BRepMesh_OnSurface': (<BRepMesh_DegreeOfFreedom.BRepMesh_OnSurface: 2>, None), 'BRepMesh_OnCurve': (<BRepMesh_DegreeOfFreedom.BRepMesh_OnCurve: 3>, None), 'BRepMesh_Fixed': (<BRepMesh_DegreeOfFreedom.BRepMesh_Fixed: 4>, None), 'BRepMesh_Frontier': (<BRepMesh_DegreeOfFreedom.BRepMesh_Frontier: 5>, None), 'BRepMesh_Deleted': (<BRepMesh_DegreeOfFreedom.BRepMesh_Deleted: 6>, None)}
__members__: dict # value = {'BRepMesh_Free': <BRepMesh_DegreeOfFreedom.BRepMesh_Free: 0>, 'BRepMesh_InVolume': <BRepMesh_DegreeOfFreedom.BRepMesh_InVolume: 1>, 'BRepMesh_OnSurface': <BRepMesh_DegreeOfFreedom.BRepMesh_OnSurface: 2>, 'BRepMesh_OnCurve': <BRepMesh_DegreeOfFreedom.BRepMesh_OnCurve: 3>, 'BRepMesh_Fixed': <BRepMesh_DegreeOfFreedom.BRepMesh_Fixed: 4>, 'BRepMesh_Frontier': <BRepMesh_DegreeOfFreedom.BRepMesh_Frontier: 5>, 'BRepMesh_Deleted': <BRepMesh_DegreeOfFreedom.BRepMesh_Deleted: 6>}
pass
class BRepMesh_DelabellaBaseMeshAlgo():
"""
Class provides base functionality to build face triangulation using Delabella project. Performs generation of mesh using raw data from model.
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_DelabellaMeshAlgoFactory(OCP.IMeshTools.IMeshTools_MeshAlgoFactory, OCP.Standard.Standard_Transient):
"""
Implementation of IMeshTools_MeshAlgoFactory providing Delabella-based algorithms of different complexity depending on type of target surface.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetAlgo(self,theSurfaceType : OCP.GeomAbs.GeomAbs_SurfaceType,theParameters : OCP.IMeshTools.IMeshTools_Parameters) -> OCP.IMeshTools.IMeshTools_MeshAlgo:
"""
Creates instance of meshing algorithm for the given type of surface.
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_DiscretFactory():
"""
This class intended to setup / retrieve default triangulation algorithm. Use BRepMesh_DiscretFactory::Get() static method to retrieve global Factory instance. Use BRepMesh_DiscretFactory::Discret() method to retrieve meshing tool.
"""
def DefaultName(self) -> OCP.TCollection.TCollection_AsciiString:
"""
Returns name for current meshing algorithm.
"""
def Discret(self,theShape : OCP.TopoDS.TopoDS_Shape,theLinDeflection : float,theAngDeflection : float) -> BRepMesh_DiscretRoot:
"""
Returns triangulation algorithm instance.
"""
def ErrorStatus(self) -> BRepMesh_FactoryError:
"""
Returns error status for last meshing algorithm switch.
"""
def FunctionName(self) -> OCP.TCollection.TCollection_AsciiString:
"""
Returns function name that should be exported by plugin.
"""
@staticmethod
def Get_s() -> BRepMesh_DiscretFactory:
"""
Returns the global factory instance.
"""
def Names(self) -> OCP.TColStd.TColStd_MapOfAsciiString:
"""
Returns the list of registered meshing algorithms.
"""
def SetDefault(self,theName : OCP.TCollection.TCollection_AsciiString,theFuncName : OCP.TCollection.TCollection_AsciiString=OCP.TCollection.TCollection_AsciiString) -> bool:
"""
Setup meshing algorithm that should be created by this Factory. Returns TRUE if requested tool is available. On fail Factory will continue to use previous algo. Call ::ErrorStatus() method to retrieve fault reason.
"""
def SetDefaultName(self,theName : OCP.TCollection.TCollection_AsciiString) -> bool:
"""
Setup meshing algorithm by name. Returns TRUE if requested tool is available. On fail Factory will continue to use previous algo.
"""
def SetFunctionName(self,theFuncName : OCP.TCollection.TCollection_AsciiString) -> bool:
"""
Advanced function. Changes function name to retrieve from plugin. Returns TRUE if requested tool is available. On fail Factory will continue to use previous algo.
"""
pass
class BRepMesh_DiscretRoot(OCP.Standard.Standard_Transient):
"""
This is a common interface for meshing algorithms instantiated by Mesh Factory and implemented by plugins.This is a common interface for meshing algorithms instantiated by Mesh Factory and implemented by plugins.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def IsDone(self) -> bool:
"""
Returns true if triangualtion was performed and has success.
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def Perform(self,theRange : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> None:
"""
Compute triangulation for set shape.
"""
def SetShape(self,theShape : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Set the shape to triangulate.
"""
def Shape(self) -> OCP.TopoDS.TopoDS_Shape:
"""
None
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_OrientedEdge():
"""
Light weighted structure representing simple link.
"""
def FirstNode(self) -> int:
"""
Returns index of first node of the Link.
"""
def IsEqual(self,theOther : BRepMesh_OrientedEdge) -> bool:
"""
Checks this and other edge for equality.
"""
def LastNode(self) -> int:
"""
Returns index of last node of the Link.
"""
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theFirstNode : int,theLastNode : int) -> None: ...
pass
class BRepMesh_EdgeDiscret(OCP.IMeshTools.IMeshTools_ModelAlgo, OCP.Standard.Standard_Transient):
"""
Class implements functionality of edge discret tool. Performs check of the edges for existing Poly_PolygonOnTriangulation. In case if it fits specified deflection, restores data structure using it, else clears edges from outdated data.
"""
@staticmethod
def CreateEdgeTessellationExtractor_s(theDEdge : OCP.IMeshData.IMeshData_Edge,theDFace : OCP.IMeshData.IMeshData_Face) -> OCP.IMeshTools.IMeshTools_CurveTessellator:
"""
Creates instance of tessellation extractor.
"""
@staticmethod
@overload
def CreateEdgeTessellator_s(theDEdge : OCP.IMeshData.IMeshData_Edge,theParameters : OCP.IMeshTools.IMeshTools_Parameters,theMinPointsNb : int=2) -> OCP.IMeshTools.IMeshTools_CurveTessellator:
"""
Creates instance of free edge tessellator.
Creates instance of edge tessellator.
"""
@staticmethod
@overload
def CreateEdgeTessellator_s(theDEdge : OCP.IMeshData.IMeshData_Edge,theOrientation : OCP.TopAbs.TopAbs_Orientation,theDFace : OCP.IMeshData.IMeshData_Face,theParameters : OCP.IMeshTools.IMeshTools_Parameters,theMinPointsNb : int=2) -> OCP.IMeshTools.IMeshTools_CurveTessellator: ...
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def Perform(self,theModel : OCP.IMeshData.IMeshData_Model,theParameters : OCP.IMeshTools.IMeshTools_Parameters,theRange : OCP.Message.Message_ProgressRange) -> bool:
"""
Exceptions protected processing of the given model.
"""
@staticmethod
def Tessellate2d_s(theDEdge : OCP.IMeshData.IMeshData_Edge,theUpdateEnds : bool) -> None:
"""
Updates 2d discrete edge model using tessellation of 3D curve.
"""
@staticmethod
def Tessellate3d_s(theDEdge : OCP.IMeshData.IMeshData_Edge,theTessellator : OCP.IMeshTools.IMeshTools_CurveTessellator,theUpdateEnds : bool) -> None:
"""
Updates 3d discrete edge model using the given tessellation tool.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_EdgeTessellationExtractor(OCP.IMeshTools.IMeshTools_CurveTessellator, OCP.Standard.Standard_Transient):
"""
Auxiliary class implements functionality retrieving tessellated representation of an edge stored in polygon.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def PointsNb(self) -> int:
"""
Returns number of tessellation points.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def Value(self,theIndex : int,thePoint : OCP.gp.gp_Pnt,theParameter : float) -> bool:
"""
Returns parameters of solution with the given index.
"""
def __init__(self,theEdge : OCP.IMeshData.IMeshData_Edge,theFace : OCP.IMeshData.IMeshData_Face) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_ExtrusionRangeSplitter():
"""
Auxiliary class analysing extrusion surface in order to generate internal nodes.
"""
def __init__(self) -> None: ...
pass
class BRepMesh_FaceChecker(OCP.Standard.Standard_Transient):
"""
Auxiliary class checking wires of target face for self-intersections. Explodes wires of discrete face on sets of segments using tessellation data stored in model. Each segment is then checked for intersection with other ones. All collisions are registered and returned as result of check.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetIntersectingEdges(self) -> Any:
"""
Returns intersecting edges.
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def Perform(self) -> bool:
"""
Performs check wires of the face for intersections.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self,theFace : OCP.IMeshData.IMeshData_Face,theParameters : OCP.IMeshTools.IMeshTools_Parameters) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_FaceDiscret(OCP.IMeshTools.IMeshTools_ModelAlgo, OCP.Standard.Standard_Transient):
"""
Class implements functionality starting triangulation of model's faces. Each face is processed separately and can be executed in parallel mode. Uses mesh algo factory passed as initializer to create instance of triangulation algorithm according to type of surface of target face.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def Perform(self,theModel : OCP.IMeshData.IMeshData_Model,theParameters : OCP.IMeshTools.IMeshTools_Parameters,theRange : OCP.Message.Message_ProgressRange) -> bool:
"""
Exceptions protected processing of the given model.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self,theAlgoFactory : OCP.IMeshTools.IMeshTools_MeshAlgoFactory) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_FactoryError():
"""
None
Members:
BRepMesh_FE_NOERROR
BRepMesh_FE_LIBRARYNOTFOUND
BRepMesh_FE_FUNCTIONNOTFOUND
BRepMesh_FE_CANNOTCREATEALGO
"""
def __eq__(self,other : object) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
def __index__(self) -> int: ...
def __init__(self,value : int) -> None: ...
def __int__(self) -> int: ...
def __ne__(self,other : object) -> bool: ...
def __repr__(self) -> str: ...
def __setstate__(self,state : int) -> None: ...
def __str__(self) -> str: ...
@property
def name(self) -> None:
"""
:type: None
"""
@property
def value(self) -> int:
"""
:type: int
"""
BRepMesh_FE_CANNOTCREATEALGO: OCP.BRepMesh.BRepMesh_FactoryError # value = <BRepMesh_FactoryError.BRepMesh_FE_CANNOTCREATEALGO: 3>
BRepMesh_FE_FUNCTIONNOTFOUND: OCP.BRepMesh.BRepMesh_FactoryError # value = <BRepMesh_FactoryError.BRepMesh_FE_FUNCTIONNOTFOUND: 2>
BRepMesh_FE_LIBRARYNOTFOUND: OCP.BRepMesh.BRepMesh_FactoryError # value = <BRepMesh_FactoryError.BRepMesh_FE_LIBRARYNOTFOUND: 1>
BRepMesh_FE_NOERROR: OCP.BRepMesh.BRepMesh_FactoryError # value = <BRepMesh_FactoryError.BRepMesh_FE_NOERROR: 0>
__entries: dict # value = {'BRepMesh_FE_NOERROR': (<BRepMesh_FactoryError.BRepMesh_FE_NOERROR: 0>, None), 'BRepMesh_FE_LIBRARYNOTFOUND': (<BRepMesh_FactoryError.BRepMesh_FE_LIBRARYNOTFOUND: 1>, None), 'BRepMesh_FE_FUNCTIONNOTFOUND': (<BRepMesh_FactoryError.BRepMesh_FE_FUNCTIONNOTFOUND: 2>, None), 'BRepMesh_FE_CANNOTCREATEALGO': (<BRepMesh_FactoryError.BRepMesh_FE_CANNOTCREATEALGO: 3>, None)}
__members__: dict # value = {'BRepMesh_FE_NOERROR': <BRepMesh_FactoryError.BRepMesh_FE_NOERROR: 0>, 'BRepMesh_FE_LIBRARYNOTFOUND': <BRepMesh_FactoryError.BRepMesh_FE_LIBRARYNOTFOUND: 1>, 'BRepMesh_FE_FUNCTIONNOTFOUND': <BRepMesh_FactoryError.BRepMesh_FE_FUNCTIONNOTFOUND: 2>, 'BRepMesh_FE_CANNOTCREATEALGO': <BRepMesh_FactoryError.BRepMesh_FE_CANNOTCREATEALGO: 3>}
pass
class BRepMesh_FastDiscret():
"""
None
"""
def __init__(self) -> None: ...
pass
class BRepMesh_GeomTool():
"""
Tool class accumulating common geometrical functions as well as functionality using shape geometry to produce data necessary for tessellation. General aim is to calculate discretization points for the given curve or iso curve of surface according to the specified parameters.
"""
class IntFlag_e():
"""
Enumerates states of segments intersection check.
Members:
NoIntersection
Cross
EndPointTouch
PointOnSegment
Glued
Same
"""
def __eq__(self,other : object) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
def __index__(self) -> int: ...
def __init__(self,value : int) -> None: ...
def __int__(self) -> int: ...
def __ne__(self,other : object) -> bool: ...
def __repr__(self) -> str: ...
def __setstate__(self,state : int) -> None: ...
def __str__(self) -> str: ...
@property
def name(self) -> None:
"""
:type: None
"""
@property
def value(self) -> int:
"""
:type: int
"""
Cross: OCP.BRepMesh.IntFlag_e # value = <IntFlag_e.Cross: 1>
EndPointTouch: OCP.BRepMesh.IntFlag_e # value = <IntFlag_e.EndPointTouch: 2>
Glued: OCP.BRepMesh.IntFlag_e # value = <IntFlag_e.Glued: 4>
NoIntersection: OCP.BRepMesh.IntFlag_e # value = <IntFlag_e.NoIntersection: 0>
PointOnSegment: OCP.BRepMesh.IntFlag_e # value = <IntFlag_e.PointOnSegment: 3>
Same: OCP.BRepMesh.IntFlag_e # value = <IntFlag_e.Same: 5>
__entries: dict # value = {'NoIntersection': (<IntFlag_e.NoIntersection: 0>, None), 'Cross': (<IntFlag_e.Cross: 1>, None), 'EndPointTouch': (<IntFlag_e.EndPointTouch: 2>, None), 'PointOnSegment': (<IntFlag_e.PointOnSegment: 3>, None), 'Glued': (<IntFlag_e.Glued: 4>, None), 'Same': (<IntFlag_e.Same: 5>, None)}
__members__: dict # value = {'NoIntersection': <IntFlag_e.NoIntersection: 0>, 'Cross': <IntFlag_e.Cross: 1>, 'EndPointTouch': <IntFlag_e.EndPointTouch: 2>, 'PointOnSegment': <IntFlag_e.PointOnSegment: 3>, 'Glued': <IntFlag_e.Glued: 4>, 'Same': <IntFlag_e.Same: 5>}
pass
def AddPoint(self,thePoint : OCP.gp.gp_Pnt,theParam : float,theIsReplace : bool=True) -> int:
"""
Adds point to already calculated points (or replaces existing).
"""
@staticmethod
def IntSegSeg_s(theStartPnt1 : OCP.gp.gp_XY,theEndPnt1 : OCP.gp.gp_XY,theStartPnt2 : OCP.gp.gp_XY,theEndPnt2 : OCP.gp.gp_XY,isConsiderEndPointTouch : bool,isConsiderPointOnSegment : bool,theIntPnt : OCP.gp.gp_Pnt2d) -> BRepMesh_GeomTool.IntFlag_e:
"""
Checks intersection between the two segments. Checks that intersection point lies within ranges of both segments.
"""
def NbPoints(self) -> int:
"""
Returns number of discretization points.
"""
@staticmethod
def Normal_s(theSurface : OCP.BRepAdaptor.BRepAdaptor_Surface,theParamU : float,theParamV : float,thePoint : OCP.gp.gp_Pnt,theNormal : OCP.gp.gp_Dir) -> bool:
"""
Computes normal to the given surface at the specified position in parametric space.
"""
@staticmethod
def SquareDeflectionOfSegment_s(theFirstPoint : OCP.gp.gp_Pnt,theLastPoint : OCP.gp.gp_Pnt,theMidPoint : OCP.gp.gp_Pnt) -> float:
"""
Compute deflection of the given segment.
"""
@overload
def Value(self,theIndex : int,theIsoParam : float,theParam : float,thePoint : OCP.gp.gp_Pnt,theUV : OCP.gp.gp_Pnt2d) -> bool:
"""
Gets parameters of discretization point with the given index.
Gets parameters of discretization point with the given index.
"""
@overload
def Value(self,theIndex : int,theSurface : OCP.BRepAdaptor.BRepAdaptor_Surface,theParam : float,thePoint : OCP.gp.gp_Pnt,theUV : OCP.gp.gp_Pnt2d) -> bool: ...
@overload
def __init__(self,theCurve : OCP.BRepAdaptor.BRepAdaptor_Curve,theFirstParam : float,theLastParam : float,theLinDeflection : float,theAngDeflection : float,theMinPointsNb : int=2,theMinSize : float=1e-07) -> None: ...
@overload
def __init__(self,theSurface : OCP.BRepAdaptor.BRepAdaptor_Surface,theIsoType : OCP.GeomAbs.GeomAbs_IsoType,theParamIso : float,theFirstParam : float,theLastParam : float,theLinDeflection : float,theAngDeflection : float,theMinPointsNb : int=2,theMinSize : float=1e-07) -> None: ...
Cross: OCP.BRepMesh.IntFlag_e # value = <IntFlag_e.Cross: 1>
EndPointTouch: OCP.BRepMesh.IntFlag_e # value = <IntFlag_e.EndPointTouch: 2>
Glued: OCP.BRepMesh.IntFlag_e # value = <IntFlag_e.Glued: 4>
NoIntersection: OCP.BRepMesh.IntFlag_e # value = <IntFlag_e.NoIntersection: 0>
PointOnSegment: OCP.BRepMesh.IntFlag_e # value = <IntFlag_e.PointOnSegment: 3>
Same: OCP.BRepMesh.IntFlag_e # value = <IntFlag_e.Same: 5>
pass
class BRepMesh_IncrementalMesh(BRepMesh_DiscretRoot, OCP.Standard.Standard_Transient):
"""
Builds the mesh of a shape with respect of their correctly triangulated parts
"""
def ChangeParameters(self) -> OCP.IMeshTools.IMeshTools_Parameters:
"""
Returns modifiable meshing parameters
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def GetStatusFlags(self) -> int:
"""
Returns accumulated status flags faced during meshing.
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def IsDone(self) -> bool:
"""
Returns true if triangualtion was performed and has success.
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def IsModified(self) -> bool:
"""
Returns modified flag.
"""
@staticmethod
def IsParallelDefault_s() -> bool:
"""
Returns multi-threading usage flag set by default in Discret() static method (thus applied only to Mesh Factories).
"""
def Parameters(self) -> OCP.IMeshTools.IMeshTools_Parameters:
"""
Returns meshing parameters
"""
@overload
def Perform(self,theRange : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> None:
"""
Performs meshing of the shape.
Performs meshing using custom context;
"""
@overload
def Perform(self,theContext : OCP.IMeshTools.IMeshTools_Context,theRange : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> None: ...
@staticmethod
def SetParallelDefault_s(isInParallel : bool) -> None:
"""
Setup multi-threading usage flag set by default in Discret() static method (thus applied only to Mesh Factories).
"""
def SetShape(self,theShape : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Set the shape to triangulate.
"""
def Shape(self) -> OCP.TopoDS.TopoDS_Shape:
"""
None
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
@overload
def __init__(self,theShape : OCP.TopoDS.TopoDS_Shape,theParameters : OCP.IMeshTools.IMeshTools_Parameters,theRange : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> None: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theShape : OCP.TopoDS.TopoDS_Shape,theLinDeflection : float,isRelative : bool=False,theAngDeflection : float=0.5,isInParallel : bool=False) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_MeshAlgoFactory(OCP.IMeshTools.IMeshTools_MeshAlgoFactory, OCP.Standard.Standard_Transient):
"""
Default implementation of IMeshTools_MeshAlgoFactory providing algorithms of different complexity depending on type of target surface.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetAlgo(self,theSurfaceType : OCP.GeomAbs.GeomAbs_SurfaceType,theParameters : OCP.IMeshTools.IMeshTools_Parameters) -> OCP.IMeshTools.IMeshTools_MeshAlgo:
"""
Creates instance of meshing algorithm for the given type of surface.
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_MeshTool(OCP.Standard.Standard_Transient):
"""
Auxiliary tool providing API for manipulation with BRepMesh_DataStructureOfDelaun.
"""
def AddAndLegalizeTriangle(self,thePoint1 : int,thePoint2 : int,thePoint3 : int) -> None:
"""
Adds new triangle with specified nodes to mesh. Legalizes triangle in case if it violates circle criteria.
"""
def AddLink(self,theFirstNode : int,theLastNode : int) -> tuple[int, bool]:
"""
Adds new link to mesh. Updates link index and link orientation parameters.
"""
def CleanFrontierLinks(self) -> None:
"""
Cleans frontier links from triangles to the right.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DumpTriangles(self,theFileName : str,theTriangles : Any) -> None:
"""
Dumps triangles to specified file.
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
@overload
def EraseFreeLinks(self,theLinks : Any) -> None:
"""
Erases all links that have no elements connected to them.
Erases links from the specified map that have no elements connected to them.
"""
@overload
def EraseFreeLinks(self) -> None: ...
def EraseItemsConnectedTo(self,theNodeIndex : int) -> None:
"""
Erases all elements connected to the specified artificial node. In addition, erases the artificial node itself.
"""
def EraseTriangle(self,theTriangleIndex : int,theLoopEdges : Any) -> None:
"""
Erases triangle with the given index and adds the free edges into the map. When an edge is suppressed more than one time it is destroyed.
"""
def EraseTriangles(self,theTriangles : Any,theLoopEdges : Any) -> None:
"""
Erases the given set of triangles. Fills map of loop edges forming the contour surrounding the erased triangles.
"""
def GetEdgesByType(self,theEdgeType : BRepMesh_DegreeOfFreedom) -> Any:
"""
Gives the list of edges with type defined by input parameter.
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def GetStructure(self) -> BRepMesh_DataStructureOfDelaun:
"""
Returns data structure manipulated by this tool.
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def Legalize(self,theLinkIndex : int) -> None:
"""
Performs legalization of triangles connected to the specified link.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self,theStructure : BRepMesh_DataStructureOfDelaun) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_ModelBuilder(OCP.IMeshTools.IMeshTools_ModelBuilder, OCP.Message.Message_Algorithm, OCP.Standard.Standard_Transient):
"""
Class implements interface representing tool for discrete model building.
"""
@overload
def AddStatus(self,theOther : OCP.Message.Message_Algorithm) -> None:
"""
Add statuses to this algorithm from other algorithm (including messages)
Add statuses to this algorithm from other algorithm, but only those items are moved that correspond to statuses set in theStatus
"""
@overload
def AddStatus(self,theStatus : OCP.Message.Message_ExecStatus,theOther : OCP.Message.Message_Algorithm) -> None: ...
def ChangeStatus(self) -> OCP.Message.Message_ExecStatus:
"""
Returns exec status of algorithm
Returns exec status of algorithm
"""
def ClearStatus(self) -> None:
"""
Clear exec status of algorithm
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetMessageNumbers(self,theStatus : OCP.Message.Message_Status) -> OCP.TColStd.TColStd_HPackedMapOfInteger:
"""
Return the numbers associated with the indicated status; Null handle if no such status or no numbers associated with it
"""
def GetMessageStrings(self,theStatus : OCP.Message.Message_Status) -> OCP.TColStd.TColStd_HSequenceOfHExtendedString:
"""
Return the strings associated with the indicated status; Null handle if no such status or no strings associated with it
"""
def GetMessenger(self) -> OCP.Message.Message_Messenger:
"""
Returns messenger of algorithm. The returned handle is always non-null and can be used for sending messages.
Returns messenger of algorithm. The returned handle is always non-null and can be used for sending messages.
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def GetStatus(self) -> OCP.Message.Message_ExecStatus:
"""
Returns copy of exec status of algorithm
Returns copy of exec status of algorithm
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def Perform(self,theShape : OCP.TopoDS.TopoDS_Shape,theParameters : OCP.IMeshTools.IMeshTools_Parameters) -> OCP.IMeshData.IMeshData_Model:
"""
Exceptions protected method to create discrete model for the given shape. Returns nullptr in case of failure.
"""
@staticmethod
@overload
def PrepareReport_s(theError : OCP.TColStd.TColStd_HPackedMapOfInteger,theMaxCount : int) -> OCP.TCollection.TCollection_ExtendedString:
"""
Prepares a string containing a list of integers contained in theError map, but not more than theMaxCount
Prepares a string containing a list of names contained in theReportSeq sequence, but not more than theMaxCount
"""
@staticmethod
@overload
def PrepareReport_s(theReportSeq : OCP.TColStd.TColStd_SequenceOfHExtendedString,theMaxCount : int) -> OCP.TCollection.TCollection_ExtendedString: ...
def SendMessages(self,theTraceLevel : OCP.Message.Message_Gravity=Message_Gravity.Message_Warning,theMaxCount : int=20) -> None:
"""
Convenient variant of SendStatusMessages() with theFilter having defined all WARN, ALARM, and FAIL (but not DONE) status flags
"""
def SendStatusMessages(self,theFilter : OCP.Message.Message_ExecStatus,theTraceLevel : OCP.Message.Message_Gravity=Message_Gravity.Message_Warning,theMaxCount : int=20) -> None:
"""
Print messages for all status flags that have been set during algorithm execution, excluding statuses that are NOT set in theFilter.
"""
def SetMessenger(self,theMsgr : OCP.Message.Message_Messenger) -> None:
"""
Sets messenger to algorithm
"""
@overload
def SetStatus(self,theStat : OCP.Message.Message_Status,theStr : OCP.TCollection.TCollection_HAsciiString,noRepetitions : bool=True) -> None:
"""
Sets status with no parameter
Sets status with integer parameter
Sets status with string parameter. If noRepetitions is True, the parameter will be added only if it has not been yet recorded for the same status flag
Sets status with string parameter If noRepetitions is True, the parameter will be added only if it has not been yet recorded for the same status flag
Sets status with string parameter If noRepetitions is True, the parameter will be added only if it has not been yet recorded for the same status flag
Sets status with string parameter If noRepetitions is True, the parameter will be added only if it has not been yet recorded for the same status flag
Sets status with string parameter If noRepetitions is True, the parameter will be added only if it has not been yet recorded for the same status flag
Sets status with preformatted message. This message will be used directly to report the status; automatic generation of status messages will be disabled for it.
Sets status with string parameter. If noRepetitions is True, the parameter will be added only if it has not been yet recorded for the same status flag
Sets status with string parameter If noRepetitions is True, the parameter will be added only if it has not been yet recorded for the same status flag
Sets status with string parameter If noRepetitions is True, the parameter will be added only if it has not been yet recorded for the same status flag
Sets status with string parameter If noRepetitions is True, the parameter will be added only if it has not been yet recorded for the same status flag
"""
@overload
def SetStatus(self,theStat : OCP.Message.Message_Status,theStr : str,noRepetitions : bool) -> None: ...
@overload
def SetStatus(self,theStat : OCP.Message.Message_Status,theStr : OCP.TCollection.TCollection_AsciiString,noRepetitions : bool=True) -> None: ...
@overload
def SetStatus(self,theStat : OCP.Message.Message_Status,theStr : OCP.TCollection.TCollection_ExtendedString,noRepetitions : bool) -> None: ...
@overload
def SetStatus(self,theStat : OCP.Message.Message_Status) -> None: ...
@overload
def SetStatus(self,theStat : OCP.Message.Message_Status,theStr : OCP.TCollection.TCollection_HAsciiString,noRepetitions : bool) -> None: ...
@overload
def SetStatus(self,theStat : OCP.Message.Message_Status,theMsg : OCP.Message.Message_Msg) -> None: ...
@overload
def SetStatus(self,theStat : OCP.Message.Message_Status,theInt : int) -> None: ...
@overload
def SetStatus(self,theStat : OCP.Message.Message_Status,theStr : OCP.TCollection.TCollection_HExtendedString,noRepetitions : bool=True) -> None: ...
@overload
def SetStatus(self,theStat : OCP.Message.Message_Status,theStr : str,noRepetitions : bool=True) -> None: ...
@overload
def SetStatus(self,theStat : OCP.Message.Message_Status,theStr : OCP.TCollection.TCollection_AsciiString,noRepetitions : bool) -> None: ...
@overload
def SetStatus(self,theStat : OCP.Message.Message_Status,theStr : OCP.TCollection.TCollection_ExtendedString,noRepetitions : bool=True) -> None: ...
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_ModelHealer(OCP.IMeshTools.IMeshTools_ModelAlgo, OCP.Standard.Standard_Transient):
"""
Class implements functionality of model healer tool. Iterates over model's faces and checks consistency of their wires, i.e.whether wires are closed and do not contain self - intersections. In case if wire contains disconnected parts, ends of adjacent edges forming the gaps are connected in parametric space forcibly. The notion of this operation is to create correct discrete model defined relatively parametric space of target face taking into account connectivity and tolerances of 3D space only. This means that there are no specific computations are made for the sake of determination of U and V tolerance. Registers intersections on edges forming the face's shape and tries to amplify discrete representation by decreasing of deflection for the target edge. Checks can be performed in parallel mode.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def Perform(self,theModel : OCP.IMeshData.IMeshData_Model,theParameters : OCP.IMeshTools.IMeshTools_Parameters,theRange : OCP.Message.Message_ProgressRange) -> bool:
"""
Exceptions protected processing of the given model.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_ModelPostProcessor(OCP.IMeshTools.IMeshTools_ModelAlgo, OCP.Standard.Standard_Transient):
"""
Class implements functionality of model post-processing tool. Stores polygons on triangulations to TopoDS_Edge.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def Perform(self,theModel : OCP.IMeshData.IMeshData_Model,theParameters : OCP.IMeshTools.IMeshTools_Parameters,theRange : OCP.Message.Message_ProgressRange) -> bool:
"""
Exceptions protected processing of the given model.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_ModelPreProcessor(OCP.IMeshTools.IMeshTools_ModelAlgo, OCP.Standard.Standard_Transient):
"""
Class implements functionality of model pre-processing tool. Nullifies existing polygonal data in case if model elements have IMeshData_Outdated status.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def Perform(self,theModel : OCP.IMeshData.IMeshData_Model,theParameters : OCP.IMeshTools.IMeshTools_Parameters,theRange : OCP.Message.Message_ProgressRange) -> bool:
"""
Exceptions protected processing of the given model.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_Edge(BRepMesh_OrientedEdge):
"""
Light weighted structure representing link of the mesh.
"""
def FirstNode(self) -> int:
"""
Returns index of first node of the Link.
"""
def IsEqual(self,theOther : BRepMesh_Edge) -> bool:
"""
Checks for equality with another edge.
"""
def IsSameOrientation(self,theOther : BRepMesh_Edge) -> bool:
"""
Checks if the given edge and this one have the same orientation.
"""
def LastNode(self) -> int:
"""
Returns index of last node of the Link.
"""
def Movability(self) -> BRepMesh_DegreeOfFreedom:
"""
Returns movability flag of the Link.
"""
def SetMovability(self,theMovability : BRepMesh_DegreeOfFreedom) -> None:
"""
Sets movability flag of the Link.
"""
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theFirstNode : int,theLastNode : int,theMovability : BRepMesh_DegreeOfFreedom) -> None: ...
pass
class BRepMesh_PairOfIndex():
"""
This class represents a pair of integer indices to store element indices connected to link. It is restricted to store more than two indices in it.
"""
def Append(self,theIndex : int) -> None:
"""
Appends index to the pair.
"""
def Clear(self) -> None:
"""
Clears indices.
"""
def Extent(self) -> int:
"""
Returns number of initialized indices.
"""
def FirstIndex(self) -> int:
"""
Returns first index of pair.
"""
def Index(self,thePairPos : int) -> int:
"""
Returns index corresponding to the given position in the pair.
"""
def IsEmpty(self) -> bool:
"""
Returns is pair is empty.
"""
def LastIndex(self) -> int:
"""
Returns last index of pair
"""
def Prepend(self,theIndex : int) -> None:
"""
Prepends index to the pair.
"""
def RemoveIndex(self,thePairPos : int) -> None:
"""
Remove index from the given position.
"""
def SetIndex(self,thePairPos : int,theIndex : int) -> None:
"""
Sets index corresponding to the given position in the pair.
"""
def __init__(self) -> None: ...
pass
class BRepMesh_SelectorOfDataStructureOfDelaun(OCP.Standard.Standard_Transient):
"""
Describes a selector and an iterator on a selector of components of a mesh.
"""
def AddNeighbours(self) -> None:
"""
Adds a level of neighbours by edge the selector.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def Elements(self) -> Any:
"""
Returns selected elements.
"""
def FrontierLinks(self) -> Any:
"""
Gives the list of incices of frontier links.
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def Initialize(self,theMesh : BRepMesh_DataStructureOfDelaun) -> None:
"""
Initializes selector by the mesh.
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def Links(self) -> Any:
"""
Returns selected links.
"""
def NeighboursByEdgeOf(self,theElement : BRepMesh_Triangle) -> None:
"""
Selects all neighboring elements by links of the given element.
"""
@overload
def NeighboursOf(self,arg1 : BRepMesh_SelectorOfDataStructureOfDelaun) -> None:
"""
Selects all neighboring elements of the given node.
Selects all neighboring elements of the given link.
Selects all neighboring elements of the given element.
Adds a level of neighbours by edge to the selector.
"""
@overload
def NeighboursOf(self,theLink : BRepMesh_Edge) -> None: ...
@overload
def NeighboursOf(self,theNode : BRepMesh_Vertex) -> None: ...
@overload
def NeighboursOf(self,theElement : BRepMesh_Triangle) -> None: ...
def NeighboursOfElement(self,theElementIndex : int) -> None:
"""
Selects all neighboring elements by nodes of the given element.
"""
def NeighboursOfLink(self,theLinkIndex : int) -> None:
"""
Selects all neighboring elements of link with the given index.
"""
def NeighboursOfNode(self,theNodeIndex : int) -> None:
"""
Selects all neighboring elements of node with the given index.
"""
def Nodes(self) -> Any:
"""
Returns selected nodes.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
@overload
def __init__(self,theMesh : BRepMesh_DataStructureOfDelaun) -> None: ...
@overload
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_ShapeTool(OCP.Standard.Standard_Transient):
"""
Auxiliary class providing functionality to compute, retrieve and store data to TopoDS and model shape.
"""
@staticmethod
def AddInFace_s(theFace : OCP.TopoDS.TopoDS_Face,theTriangulation : OCP.Poly.Poly_Triangulation) -> None:
"""
Stores the given triangulation into the given face.
"""
@staticmethod
def BoxMaxDimension_s(theBox : OCP.Bnd.Bnd_Box) -> tuple[float]:
"""
Gets the maximum dimension of the given bounding box. If the given bounding box is void leaves the resulting value unchanged.
"""
@staticmethod
def CheckAndUpdateFlags_s(theEdge : OCP.IMeshData.IMeshData_Edge,thePCurve : OCP.IMeshData.IMeshData_PCurve) -> None:
"""
Checks same parameter, same range and degenerativity attributes using geometrical data of the given edge and updates edge model by computed parameters in case of worst case - it can drop flags same parameter and same range to False but never to True if it is already set to False. In contrary, it can also drop degenerated flag to True, but never to False if it is already set to True.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
@staticmethod
def MaxFaceTolerance_s(theFace : OCP.TopoDS.TopoDS_Face) -> float:
"""
Returns maximum tolerance of the given face. Considers tolerances of edges and vertices contained in the given face.
"""
@staticmethod
@overload
def NullifyEdge_s(theEdge : OCP.TopoDS.TopoDS_Edge,theTriangulation : OCP.Poly.Poly_Triangulation,theLocation : OCP.TopLoc.TopLoc_Location) -> None:
"""
Nullifies polygon on triangulation stored in the edge.
Nullifies 3d polygon stored in the edge.
"""
@staticmethod
@overload
def NullifyEdge_s(theEdge : OCP.TopoDS.TopoDS_Edge,theLocation : OCP.TopLoc.TopLoc_Location) -> None: ...
@staticmethod
def NullifyFace_s(theFace : OCP.TopoDS.TopoDS_Face) -> None:
"""
Nullifies triangulation stored in the face.
"""
@staticmethod
@overload
def Range_s(theEdge : OCP.TopoDS.TopoDS_Edge,theCurve : OCP.Geom.Geom_Curve,theFirstParam : float,theLastParam : float,isConsiderOrientation : bool=False) -> bool:
"""
Gets the parametric range of the given edge on the given face.
Gets the 3d range of the given edge.
"""
@staticmethod
@overload
def Range_s(theEdge : OCP.TopoDS.TopoDS_Edge,theFace : OCP.TopoDS.TopoDS_Face,thePCurve : OCP.Geom2d.Geom2d_Curve,theFirstParam : float,theLastParam : float,isConsiderOrientation : bool=False) -> bool: ...
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
@staticmethod
def UVPoints_s(theEdge : OCP.TopoDS.TopoDS_Edge,theFace : OCP.TopoDS.TopoDS_Face,theFirstPoint2d : OCP.gp.gp_Pnt2d,theLastPoint2d : OCP.gp.gp_Pnt2d,isConsiderOrientation : bool=False) -> bool:
"""
Gets the strict UV locations of the extremities of the edge using pcurve.
"""
@staticmethod
@overload
def UpdateEdge_s(theEdge : OCP.TopoDS.TopoDS_Edge,thePolygon : OCP.Poly.Poly_Polygon3D) -> None:
"""
Updates the given edge by the given tessellated representation.
Updates the given edge by the given tessellated representation.
Updates the given seam edge by the given tessellated representations.
"""
@staticmethod
@overload
def UpdateEdge_s(theEdge : OCP.TopoDS.TopoDS_Edge,thePolygon1 : OCP.Poly.Poly_PolygonOnTriangulation,thePolygon2 : OCP.Poly.Poly_PolygonOnTriangulation,theTriangulation : OCP.Poly.Poly_Triangulation,theLocation : OCP.TopLoc.TopLoc_Location) -> None: ...
@staticmethod
@overload
def UpdateEdge_s(theEdge : OCP.TopoDS.TopoDS_Edge,thePolygon : OCP.Poly.Poly_PolygonOnTriangulation,theTriangulation : OCP.Poly.Poly_Triangulation,theLocation : OCP.TopLoc.TopLoc_Location) -> None: ...
@staticmethod
def UseLocation_s(thePnt : OCP.gp.gp_Pnt,theLoc : OCP.TopLoc.TopLoc_Location) -> OCP.gp.gp_Pnt:
"""
Applies location to the given point and return result.
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_ShapeVisitor(OCP.IMeshTools.IMeshTools_ShapeVisitor, OCP.Standard.Standard_Transient):
"""
Builds discrete model of a shape by adding faces and free edges. Computes deflection for corresponded shape and checks whether it fits existing polygonal representation. If not, cleans shape from outdated info.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
@overload
def Visit(self,theFace : OCP.TopoDS.TopoDS_Face) -> None:
"""
Handles TopoDS_Face object.
Handles TopoDS_Edge object.
"""
@overload
def Visit(self,theEdge : OCP.TopoDS.TopoDS_Edge) -> None: ...
def __init__(self,theModel : OCP.IMeshData.IMeshData_Model) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepMesh_Triangulator():
"""
Auxiliary tool to generate triangulation
"""
def Perform(self,thePolyTriangles : Any) -> bool:
"""
Performs triangulation of source wires and stores triangles the output list.
"""
def SetMessenger(self,theMess : OCP.Message.Message_Messenger) -> None:
"""
Set messenger for output information without this Message::DefaultMessenger() will be used
"""
@staticmethod
def ToPolyTriangulation_s(theNodes : OCP.TColgp.TColgp_Array1OfPnt,thePolyTriangles : Any) -> OCP.Poly.Poly_Triangulation:
"""
Performs conversion of the given list of triangles to Poly_Triangulation.
"""
def __init__(self,theXYZs : OCP.BRepBuilderAPI.VectorOfPoint,theWires : Any,theNorm : OCP.gp.gp_Dir) -> None: ...
pass
class BRepMesh_UndefinedRangeSplitter():
"""
Auxiliary class provides safe value for surfaces that looks like NURBS but has no poles or other characteristics.
"""
def __init__(self) -> None: ...
pass
class BRepMesh_Vertex():
"""
Light weighted structure representing vertex of the mesh in parametric space. Vertex could be associated with 3d point stored in external map.
"""
def ChangeCoord(self) -> OCP.gp.gp_XY:
"""
Returns position of the vertex in parametric space for modification.
"""
def Coord(self) -> OCP.gp.gp_XY:
"""
Returns position of the vertex in parametric space.
"""
def Initialize(self,theUV : OCP.gp.gp_XY,theLocation3d : int,theMovability : BRepMesh_DegreeOfFreedom) -> None:
"""
Initializes vertex associated with point in 3d space.
"""
def IsEqual(self,theOther : BRepMesh_Vertex) -> bool:
"""
Checks for equality with another vertex.
"""
def Location3d(self) -> int:
"""
Returns index of 3d point associated with the vertex.
"""
def Movability(self) -> BRepMesh_DegreeOfFreedom:
"""
Returns movability of the vertex.
"""
def SetMovability(self,theMovability : BRepMesh_DegreeOfFreedom) -> None:
"""
Sets movability of the vertex.
"""
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theUV : OCP.gp.gp_XY,theLocation3d : int,theMovability : BRepMesh_DegreeOfFreedom) -> None: ...
@overload
def __init__(self,theU : float,theV : float,theMovability : BRepMesh_DegreeOfFreedom) -> None: ...
pass
class BRepMesh_VertexInspector(OCP.NCollection.NCollection_CellFilter_InspectorXY):
"""
Class intended for fast searching of the coincidence points.
"""
def Add(self,theVertex : BRepMesh_Vertex) -> int:
"""
Registers the given vertex.
"""
def ChangeVertices(self) -> Any:
"""
Returns set of mesh vertices for modification.
"""
def Clear(self) -> None:
"""
Clear inspector's internal data structures.
"""
@staticmethod
def Coord_s(i : int,thePnt : OCP.gp.gp_XY) -> float:
"""
Access to coordinate
"""
def Delete(self,theIndex : int) -> None:
"""
Deletes vertex with the given index.
"""
def GetCoincidentPoint(self) -> int:
"""
Returns index of point coinciding with regerence one.
"""
def GetListOfDelPoints(self) -> Any:
"""
Returns list with indexes of vertices that have movability attribute equal to BRepMesh_Deleted and can be replaced with another node.
"""
def GetVertex(self,theIndex : int) -> BRepMesh_Vertex:
"""
Returns vertex with the given index.
"""
def Inspect(self,theTargetIndex : int) -> OCP.NCollection.NCollection_CellFilter_Action:
"""
Performs inspection of a point with the given index.
"""
@staticmethod
def IsEqual_s(theIndex : int,theTargetIndex : int) -> bool:
"""
Checks indices for equlity.
"""
def NbVertices(self) -> int:
"""
Returns number of registered vertices.
"""
def SetPoint(self,thePoint : OCP.gp.gp_XY) -> None:
"""
Set reference point to be checked.
"""
@overload
def SetTolerance(self,theTolerance : float) -> None:
"""
Sets the tolerance to be used for identification of coincident vertices equal for both dimensions.
Sets the tolerance to be used for identification of coincident vertices.
"""
@overload
def SetTolerance(self,theToleranceX : float,theToleranceY : float) -> None: ...
def Shift(self,thePnt : OCP.gp.gp_XY,theTol : float) -> OCP.gp.gp_XY:
"""
Auxiliary method to shift point by each coordinate on given value; useful for preparing a points range for Inspect with tolerance
"""
def Vertices(self) -> Any:
"""
Returns set of mesh vertices.
"""
def __init__(self,theAllocator : OCP.NCollection.NCollection_IncAllocator) -> None: ...
Dimension = 2
pass
class BRepMesh_VertexTool(OCP.Standard.Standard_Transient):
"""
Describes data structure intended to keep mesh nodes defined in UV space and implements functionality providing their uniqueness regarding their position.
"""
def Add(self,theVertex : BRepMesh_Vertex,isForceAdd : bool) -> int:
"""
Adds vertex with empty data to the tool.
"""
def ChangeVertices(self) -> Any:
"""
Returns set of mesh vertices.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DeleteVertex(self,theIndex : int) -> None:
"""
Deletes vertex with the given index from the tool.
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def Extent(self) -> int:
"""
Returns a number of vertices.
"""
def FindIndex(self,theVertex : BRepMesh_Vertex) -> int:
"""
Returns index of the given vertex.
"""
def FindKey(self,theIndex : int) -> BRepMesh_Vertex:
"""
Returns vertex by the given index.
"""
def GetListOfDelNodes(self) -> Any:
"""
Returns the list with indexes of vertices that have movability attribute equal to BRepMesh_Deleted and can be replaced with another node.
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def GetTolerance(self) -> tuple[float, float]:
"""
Gets the tolerance to be used for identification of coincident vertices.
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def IsEmpty(self) -> bool:
"""
Returns True when the map contains no keys.
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def RemoveLast(self) -> None:
"""
Remove last node from the structure.
"""
@overload
def SetCellSize(self,theSize : float) -> None:
"""
Sets new size of cell for cellfilter equal in both directions.
Sets new size of cell for cellfilter.
"""
@overload
def SetCellSize(self,theSizeX : float,theSizeY : float) -> None: ...
@overload
def SetTolerance(self,theTolerance : float) -> None:
"""
Sets the tolerance to be used for identification of coincident vertices equal for both dimensions.
Sets the tolerance to be used for identification of coincident vertices.
"""
@overload
def SetTolerance(self,theToleranceX : float,theToleranceY : float) -> None: ...
def Statistics(self,theStream : io.BytesIO) -> None:
"""
Prints statistics.
"""
def Substitute(self,theIndex : int,theVertex : BRepMesh_Vertex) -> None:
"""
Substitutes vertex with the given by the given vertex with attributes.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def Vertices(self) -> Any:
"""
Returns set of mesh vertices.
"""
def __init__(self,theAllocator : OCP.NCollection.NCollection_IncAllocator) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
BRepMesh_Deleted: OCP.BRepMesh.BRepMesh_DegreeOfFreedom # value = <BRepMesh_DegreeOfFreedom.BRepMesh_Deleted: 6>
BRepMesh_FE_CANNOTCREATEALGO: OCP.BRepMesh.BRepMesh_FactoryError # value = <BRepMesh_FactoryError.BRepMesh_FE_CANNOTCREATEALGO: 3>
BRepMesh_FE_FUNCTIONNOTFOUND: OCP.BRepMesh.BRepMesh_FactoryError # value = <BRepMesh_FactoryError.BRepMesh_FE_FUNCTIONNOTFOUND: 2>
BRepMesh_FE_LIBRARYNOTFOUND: OCP.BRepMesh.BRepMesh_FactoryError # value = <BRepMesh_FactoryError.BRepMesh_FE_LIBRARYNOTFOUND: 1>
BRepMesh_FE_NOERROR: OCP.BRepMesh.BRepMesh_FactoryError # value = <BRepMesh_FactoryError.BRepMesh_FE_NOERROR: 0>
BRepMesh_Fixed: OCP.BRepMesh.BRepMesh_DegreeOfFreedom # value = <BRepMesh_DegreeOfFreedom.BRepMesh_Fixed: 4>
BRepMesh_Free: OCP.BRepMesh.BRepMesh_DegreeOfFreedom # value = <BRepMesh_DegreeOfFreedom.BRepMesh_Free: 0>
BRepMesh_Frontier: OCP.BRepMesh.BRepMesh_DegreeOfFreedom # value = <BRepMesh_DegreeOfFreedom.BRepMesh_Frontier: 5>
BRepMesh_InVolume: OCP.BRepMesh.BRepMesh_DegreeOfFreedom # value = <BRepMesh_DegreeOfFreedom.BRepMesh_InVolume: 1>
BRepMesh_OnCurve: OCP.BRepMesh.BRepMesh_DegreeOfFreedom # value = <BRepMesh_DegreeOfFreedom.BRepMesh_OnCurve: 3>
BRepMesh_OnSurface: OCP.BRepMesh.BRepMesh_DegreeOfFreedom # value = <BRepMesh_DegreeOfFreedom.BRepMesh_OnSurface: 2>
|