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
|
import OCP.ShapeAnalysis
from typing import *
from typing import Iterable as iterable
from typing import Iterator as iterator
from numpy import float64
_Shape = Tuple[int, ...]
import OCP.TopTools
import OCP.Geom2d
import OCP.TopLoc
import OCP.NCollection
import OCP.Geom
import OCP.TColgp
import OCP.IntRes2d
import OCP.TColStd
import OCP.gp
import OCP.Standard
import OCP.Adaptor3d
import OCP.GeomAdaptor
import OCP.TopoDS
import io
import OCP.ShapeExtend
import OCP.Bnd
__all__ = [
"ShapeAnalysis",
"ShapeAnalysis_BoxBndTree",
"ShapeAnalysis_CanonicalRecognition",
"ShapeAnalysis_CheckSmallFace",
"ShapeAnalysis_Curve",
"ShapeAnalysis_DataMapOfShapeListOfReal",
"ShapeAnalysis_Edge",
"ShapeAnalysis_FreeBoundData",
"ShapeAnalysis_FreeBounds",
"ShapeAnalysis_FreeBoundsProperties",
"ShapeAnalysis_Geom",
"ShapeAnalysis_SequenceOfFreeBounds",
"ShapeAnalysis_HSequenceOfFreeBounds",
"ShapeAnalysis_ShapeContents",
"ShapeAnalysis_ShapeTolerance",
"ShapeAnalysis_Shell",
"ShapeAnalysis_Surface",
"ShapeAnalysis_TransferParameters",
"ShapeAnalysis_TransferParametersProj",
"ShapeAnalysis_Wire",
"ShapeAnalysis_WireOrder",
"ShapeAnalysis_WireVertex"
]
class ShapeAnalysis():
"""
This package is intended to analyze geometrical objects and topological shapes. Analysis domain includes both exploring geometrical and topological properties of shapes and checking their conformance to Open CASCADE requirements. The directions of analysis provided by tools of this package are: computing quantities of subshapes, computing parameters of points on curve and surface, computing surface singularities, checking edge and wire consistency, checking edges order in the wire, checking face bounds orientation, checking small faces, analyzing shape tolerances, analyzing of free bounds of the shape.
"""
@staticmethod
def AdjustByPeriod_s(Val : float,ToVal : float,Period : float) -> float:
"""
Returns a shift required to move point <Val> to the range [ToVal-Period/2,ToVal+Period/2]. This shift will be the divisible by Period. Intended for adjusting parameters on periodic surfaces.
"""
@staticmethod
def AdjustToPeriod_s(Val : float,ValMin : float,ValMax : float) -> float:
"""
Returns a shift required to move point <Val> to the range [ValMin,ValMax]. This shift will be the divisible by Period with Period = ValMax - ValMin. Intended for adjusting parameters on periodic surfaces.
"""
@staticmethod
def ContourArea_s(theWire : OCP.TopoDS.TopoDS_Wire) -> float:
"""
Returns a total area of 3d wire
"""
@staticmethod
def FindBounds_s(shape : OCP.TopoDS.TopoDS_Shape,V1 : OCP.TopoDS.TopoDS_Vertex,V2 : OCP.TopoDS.TopoDS_Vertex) -> None:
"""
Finds the start and end vertices of the shape Shape can be of the following type: vertex: V1 and V2 are the same and equal to <shape>, edge : V1 is start and V2 is end vertex (see ShapeAnalysis_Edge methods FirstVertex and LastVertex), wire : V1 is start vertex of the first edge, V2 is end vertex of the last edge (also see ShapeAnalysis_Edge). If wire contains no edges V1 and V2 are nullified If none of the above V1 and V2 are nullified
"""
@staticmethod
def GetFaceUVBounds_s(F : OCP.TopoDS.TopoDS_Face) -> tuple[float, float, float, float]:
"""
Computes exact UV bounds of all wires on the face
"""
@staticmethod
def IsOuterBound_s(face : OCP.TopoDS.TopoDS_Face) -> bool:
"""
Returns True if <F> has outer bound.
"""
@staticmethod
def OuterWire_s(theFace : OCP.TopoDS.TopoDS_Face) -> OCP.TopoDS.TopoDS_Wire:
"""
Returns positively oriented wire in the face. If there is no such wire - returns the last wire of the face.
"""
@staticmethod
def TotCross2D_s(sewd : OCP.ShapeExtend.ShapeExtend_WireData,aFace : OCP.TopoDS.TopoDS_Face) -> float:
"""
Returns a total area of 2d wire
"""
def __init__(self) -> None: ...
pass
class ShapeAnalysis_BoxBndTree():
"""
The algorithm of unbalanced binary tree of overlapped bounding boxes.
"""
def Add(self,theObj : int,theBnd : OCP.Bnd.Bnd_Box) -> bool:
"""
Update the tree with a new object and its bounding box.
"""
def Allocator(self) -> OCP.NCollection.NCollection_BaseAllocator:
"""
Recommended to be used only in sub-classes.
"""
def Clear(self,aNewAlloc : OCP.NCollection.NCollection_BaseAllocator=None) -> None:
"""
Clears the contents of the tree.
"""
def IsEmpty(self) -> bool:
"""
None
"""
def __bool__(self) -> bool: ...
@overload
def __init__(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator) -> None: ...
@overload
def __init__(self) -> None: ...
pass
class ShapeAnalysis_CanonicalRecognition():
"""
This class provides operators for analysis surfaces and curves of shapes in order to find out more simple geometry entities, which could replace existing complex (for exampe, BSpline) geometry objects with given tolerance.
"""
def ClearStatus(self) -> None:
"""
Returns status to be equal 0.
"""
def GetGap(self) -> float:
"""
Returns deviation between input geometry entity and analytical entity
"""
def GetShape(self) -> OCP.TopoDS.TopoDS_Shape:
"""
Returns input shape
"""
def GetStatus(self) -> int:
"""
Returns status of operation. Current meaning of possible values of status: -1 - algorithm is not initalazed by shape 0 - no errors 1 - error during any operation (usually - because of wrong input data) Any operation (calling any methods like IsPlane(...), ...) can be performed when current staue is equal 0. If after any operation status != 0, it is necessary to set it 0 by method ClearStatus() before calling other operation.
"""
def IsCircle(self,theTol : float,theCirc : OCP.gp.gp_Circ) -> bool:
"""
Returns true if the underlined curve can be represent by circle with tolerance theTol and sets in theCirc the result circle.
"""
def IsCone(self,theTol : float,theCone : OCP.gp.gp_Cone) -> bool:
"""
Returns true if the underlined surface can be represent by conical one with tolerance theTol and sets in theCone the result conical surface.
"""
def IsCylinder(self,theTol : float,theCyl : OCP.gp.gp_Cylinder) -> bool:
"""
Returns true if the underlined surface can be represent by cylindrical one with tolerance theTol and sets in theCyl the result cylinrical surface.
"""
def IsEllipse(self,theTol : float,theElips : OCP.gp.gp_Elips) -> bool:
"""
Returns true if the underlined curve can be represent by ellipse with tolerance theTol and sets in theCirc the result ellipse.
"""
def IsLine(self,theTol : float,theLin : OCP.gp.gp_Lin) -> bool:
"""
Returns true if the underlined curve can be represent by line with tolerance theTol and sets in theLin the result line.
"""
def IsPlane(self,theTol : float,thePln : OCP.gp.gp_Pln) -> bool:
"""
Returns true if the underlined surface can be represent by plane with tolerance theTol and sets in thePln the result plane.
"""
def IsSphere(self,theTol : float,theSphere : OCP.gp.gp_Sphere) -> bool:
"""
Returns true if the underlined surface can be represent by spherical one with tolerance theTol and sets in theSphere the result spherical surface.
"""
def SetShape(self,theShape : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Sets shape
"""
@overload
def __init__(self,theShape : OCP.TopoDS.TopoDS_Shape) -> None: ...
@overload
def __init__(self) -> None: ...
pass
class ShapeAnalysis_CheckSmallFace():
"""
Analysis of the face size
"""
def CheckPin(self,F : OCP.TopoDS.TopoDS_Face,whatrow : int,sence : int) -> bool:
"""
Checks if a Face has a pin, which can be edited No singularity : no pin, returns 0 If there is a pin, checked topics, with returned value : - 0 : nothing to do more - 1 : "smooth", i.e. not a really sharp pin -> diagnostic "SmoothPin" - 2 : stretched pin, i.e. is possible to relimit the face by another vertex, so that this vertex still gives a pin -> diagnostic "StretchedPin" with location of vertex (Pnt)
"""
def CheckPinEdges(self,theFirstEdge : OCP.TopoDS.TopoDS_Edge,theSecondEdge : OCP.TopoDS.TopoDS_Edge,coef1 : float,coef2 : float,toler : float) -> bool:
"""
None
"""
def CheckPinFace(self,F : OCP.TopoDS.TopoDS_Face,mapEdges : OCP.TopTools.TopTools_DataMapOfShapeShape,toler : float=-1.0) -> bool:
"""
None
"""
def CheckSingleStrip(self,F : OCP.TopoDS.TopoDS_Face,E1 : OCP.TopoDS.TopoDS_Edge,E2 : OCP.TopoDS.TopoDS_Edge,tol : float=-1.0) -> bool:
"""
Checks if a Face is a single strip, i.e. brings two great edges which are confused on their whole length, possible other edges are small or null length
"""
def CheckSplittingVertices(self,F : OCP.TopoDS.TopoDS_Face,MapEdges : OCP.TopTools.TopTools_DataMapOfShapeListOfShape,MapParam : ShapeAnalysis_DataMapOfShapeListOfReal,theAllVert : OCP.TopoDS.TopoDS_Compound) -> int:
"""
Checks if a Face brings vertices which split it, either confused with non adjacent vertices, or confused with their projection on non adjacent edges Returns the count of found splitting vertices Each vertex then brings a diagnostic "SplittingVertex", with data : "Face" for the face, "Edge" for the split edge
"""
def CheckSpotFace(self,F : OCP.TopoDS.TopoDS_Face,tol : float=-1.0) -> bool:
"""
Acts as IsSpotFace, but records in <infos> a diagnostic "SpotFace" with the Pnt as value (data "Location")
"""
def CheckStripEdges(self,E1 : OCP.TopoDS.TopoDS_Edge,E2 : OCP.TopoDS.TopoDS_Edge,tol : float,dmax : float) -> bool:
"""
Checks if two edges define a strip, i.e. distance maxi below tolerance, given or some of those of E1 and E2
"""
def CheckStripFace(self,F : OCP.TopoDS.TopoDS_Face,E1 : OCP.TopoDS.TopoDS_Edge,E2 : OCP.TopoDS.TopoDS_Edge,tol : float=-1.0) -> bool:
"""
Checks if a Face is as a Strip Returns 0 if not or non determined, 1 if in U, 2 if in V By default, considers the tolerance zone of its edges A given value <tol> may be given to check a strip of max this width
"""
def CheckTwisted(self,F : OCP.TopoDS.TopoDS_Face,paramu : float,paramv : float) -> bool:
"""
Checks if a Face is twisted (apart from checking Pin, i.e. it does not give information on pin, only "it is twisted")
"""
def FindStripEdges(self,F : OCP.TopoDS.TopoDS_Face,E1 : OCP.TopoDS.TopoDS_Edge,E2 : OCP.TopoDS.TopoDS_Edge,tol : float,dmax : float) -> bool:
"""
Searches for two and only two edges up tolerance Returns True if OK, false if not 2 edges If True, returns the two edges and their maximum distance
"""
def IsSpotFace(self,F : OCP.TopoDS.TopoDS_Face,spot : OCP.gp.gp_Pnt,spotol : float,tol : float=-1.0) -> int:
"""
Checks if a Face is as a Spot Returns 0 if not, 1 if yes, 2 if yes and all vertices are the same By default, considers the tolerance zone of its vertices A given value <tol> may be given to check a spot of this size If a Face is a Spot, its location is returned in <spot>, and <spotol> returns an equivalent tolerance, which is computed as half of max dimension of min-max box of the face
"""
def IsStripSupport(self,F : OCP.TopoDS.TopoDS_Face,tol : float=-1.0) -> bool:
"""
Checks if a Face lies on a Surface which is a strip So the Face is a strip. But a Face may be a strip elsewhere ..
"""
def SetTolerance(self,tol : float) -> None:
"""
Sets a fixed Tolerance to check small face By default, local tolerance zone is considered Sets a fixed MaxTolerance to check small face Sets a fixed Tolerance to check small face By default, local tolerance zone is considered Unset fixed tolerance, comes back to local tolerance zones Unset fixed tolerance, comes back to local tolerance zones
Sets a fixed Tolerance to check small face By default, local tolerance zone is considered Sets a fixed MaxTolerance to check small face Sets a fixed Tolerance to check small face By default, local tolerance zone is considered Unset fixed tolerance, comes back to local tolerance zones Unset fixed tolerance, comes back to local tolerance zones
"""
def Status(self,status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
Returns the status of last call to Perform() ShapeExtend_OK : face was OK, nothing done ShapeExtend_DONE1: some wires are fixed ShapeExtend_DONE2: orientation of wires fixed ShapeExtend_DONE3: missing seam added ShapeExtend_DONE4: small area wire removed ShapeExtend_DONE5: natural bounds added ShapeExtend_FAIL1: some fails during fixing wires ShapeExtend_FAIL2: cannot fix orientation of wires ShapeExtend_FAIL3: cannot add missing seam ShapeExtend_FAIL4: cannot remove small area wire
Returns the status of last call to Perform() ShapeExtend_OK : face was OK, nothing done ShapeExtend_DONE1: some wires are fixed ShapeExtend_DONE2: orientation of wires fixed ShapeExtend_DONE3: missing seam added ShapeExtend_DONE4: small area wire removed ShapeExtend_DONE5: natural bounds added ShapeExtend_FAIL1: some fails during fixing wires ShapeExtend_FAIL2: cannot fix orientation of wires ShapeExtend_FAIL3: cannot add missing seam ShapeExtend_FAIL4: cannot remove small area wire
"""
def StatusPin(self,status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def StatusPinEdges(self,status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def StatusPinFace(self,status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def StatusSplitVert(self,status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def StatusSpot(self,status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def StatusStrip(self,status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def StatusTwisted(self,status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def Tolerance(self) -> float:
"""
Returns the tolerance to check small faces, negative value if local tolerances zones are to be considered
Returns the tolerance to check small faces, negative value if local tolerances zones are to be considered
"""
def __init__(self) -> None: ...
pass
class ShapeAnalysis_Curve():
"""
Analyzing tool for 2d or 3d curve. Computes parameters of projected point onto a curve.
"""
def FillBndBox(self,C2d : OCP.Geom2d.Geom2d_Curve,First : float,Last : float,NPoints : int,Exact : bool,Box : OCP.Bnd.Bnd_Box2d) -> None:
"""
Computes a boundary box on segment of curve C2d from First to Last. This is done by taking NPoints points from the curve and, if Exact is True, by searching for exact extrema. All these points are added to Box.
"""
@staticmethod
@overload
def GetSamplePoints_s(curve : OCP.Geom.Geom_Curve,first : float,last : float,seq : OCP.TColgp.TColgp_SequenceOfPnt) -> bool:
"""
Returns sample points which will serve as linearisation of the2d curve in range (first, last) The distribution of sample points is consystent with what is used by BRepTopAdaptor_FClass2d
Returns sample points which will serve as linearisation of the curve in range (first, last)
"""
@staticmethod
@overload
def GetSamplePoints_s(curve : OCP.Geom2d.Geom2d_Curve,first : float,last : float,seq : OCP.TColgp.TColgp_SequenceOfPnt2d) -> bool: ...
@staticmethod
def IsClosed_s(curve : OCP.Geom.Geom_Curve,preci : float=-1.0) -> bool:
"""
Tells if the Curve is closed with given precision. If <preci> < 0 then Precision::Confusion is used.
"""
@staticmethod
@overload
def IsPeriodic_s(curve : OCP.Geom.Geom_Curve) -> bool:
"""
This method was implemented as fix for changes in trimmed curve behaviour. For the moment trimmed curve returns false anyway. So it is necessary to adapt all Data exchange tools for this behaviour. Current implementation takes into account that curve may be offset.
The same as for Curve3d.
"""
@staticmethod
@overload
def IsPeriodic_s(curve : OCP.Geom2d.Geom2d_Curve) -> bool: ...
@staticmethod
@overload
def IsPlanar_s(pnts : OCP.TColgp.TColgp_Array1OfPnt,Normal : OCP.gp.gp_XYZ,preci : float=0.0) -> bool:
"""
Checks if points are planar with given preci. If Normal has not zero modulus, checks with given normal
Checks if curve is planar with given preci. If Normal has not zero modulus, checks with given normal
"""
@staticmethod
@overload
def IsPlanar_s(curve : OCP.Geom.Geom_Curve,Normal : OCP.gp.gp_XYZ,preci : float=0.0) -> bool: ...
@overload
def NextProject(self,paramPrev : float,C3D : OCP.Adaptor3d.Adaptor3d_Curve,P3D : OCP.gp.gp_Pnt,preci : float,proj : OCP.gp.gp_Pnt,param : float) -> float:
"""
Projects a Point on a Curve using Newton method. <paramPrev> is taken as the first approximation of solution. If Newton algorithm fails the method Project() is used. If AdjustToEnds is True, point will be adjusted to the end of the curve if distance is less than <preci>
Projects a Point on a Curve using Newton method. <paramPrev> is taken as the first approximation of solution. If Newton algorithm fails the method Project() is used.
"""
@overload
def NextProject(self,paramPrev : float,C3D : OCP.Geom.Geom_Curve,P3D : OCP.gp.gp_Pnt,preci : float,proj : OCP.gp.gp_Pnt,param : float,cf : float,cl : float,AdjustToEnds : bool=True) -> float: ...
@overload
def Project(self,C3D : OCP.Geom.Geom_Curve,P3D : OCP.gp.gp_Pnt,preci : float,proj : OCP.gp.gp_Pnt,param : float,cf : float,cl : float,AdjustToEnds : bool=True) -> float:
"""
Projects a Point on a Curve. Computes the projected point and its parameter on the curve. <preci> is used as 3d precision (hence, 0 will produce reject unless exact confusion). The number of iterations is limited. If AdjustToEnds is True, point will be adjusted to the end of the curve if distance is less than <preci>
Projects a Point on a Curve. Computes the projected point and its parameter on the curve. <preci> is used as 3d precision (hence, 0 will produce reject unless exact confusion). The number of iterations is limited.
Projects a Point on a Curve, but parameters are limited between <cf> and <cl>. The range [cf, cl] is extended with help of Adaptor3d on the basis of 3d precision <preci>. If AdjustToEnds is True, point will be adjusted to the end of the curve if distance is less than <preci>
"""
@overload
def Project(self,C3D : OCP.Geom.Geom_Curve,P3D : OCP.gp.gp_Pnt,preci : float,proj : OCP.gp.gp_Pnt,param : float,AdjustToEnds : bool=True) -> float: ...
@overload
def Project(self,C3D : OCP.Adaptor3d.Adaptor3d_Curve,P3D : OCP.gp.gp_Pnt,preci : float,proj : OCP.gp.gp_Pnt,param : float,AdjustToEnds : bool=True) -> float: ...
def ProjectAct(self,C3D : OCP.Adaptor3d.Adaptor3d_Curve,P3D : OCP.gp.gp_Pnt,preci : float,proj : OCP.gp.gp_Pnt,param : float) -> float:
"""
None
"""
def SelectForwardSeam(self,C1 : OCP.Geom2d.Geom2d_Curve,C2 : OCP.Geom2d.Geom2d_Curve) -> int:
"""
Defines which pcurve (C1 or C2) should be chosen for FORWARD seam edge.
"""
def ValidateRange(self,Crv : OCP.Geom.Geom_Curve,First : float,Last : float,prec : float) -> bool:
"""
Validate parameters First and Last for the given curve in order to make them valid for creation of edge. This includes: - limiting range [First,Last] by range of curve - adjusting range [First,Last] for periodic (or closed) curve if Last < First Returns True if parameters are OK or are successfully corrected, or False if parameters cannot be corrected. In the latter case, parameters are reset to range of curve.
"""
def __init__(self) -> None: ...
pass
class ShapeAnalysis_DataMapOfShapeListOfReal(OCP.NCollection.NCollection_BaseMap):
"""
Purpose: The DataMap is a Map to store keys with associated Items. See Map from NCollection for a discussion about the number of buckets.
"""
def Allocator(self) -> OCP.NCollection.NCollection_BaseAllocator:
"""
Returns attached allocator
"""
def Assign(self,theOther : ShapeAnalysis_DataMapOfShapeListOfReal) -> ShapeAnalysis_DataMapOfShapeListOfReal:
"""
Assignment. This method does not change the internal allocator.
"""
def Bind(self,theKey : OCP.TopoDS.TopoDS_Shape,theItem : OCP.TColStd.TColStd_ListOfReal) -> bool:
"""
Bind binds Item to Key in map.
"""
def Bound(self,theKey : OCP.TopoDS.TopoDS_Shape,theItem : OCP.TColStd.TColStd_ListOfReal) -> OCP.TColStd.TColStd_ListOfReal:
"""
Bound binds Item to Key in map.
"""
def ChangeFind(self,theKey : OCP.TopoDS.TopoDS_Shape) -> OCP.TColStd.TColStd_ListOfReal:
"""
ChangeFind returns mofifiable Item by Key. Raises if Key was not bound
"""
def ChangeSeek(self,theKey : OCP.TopoDS.TopoDS_Shape) -> OCP.TColStd.TColStd_ListOfReal:
"""
ChangeSeek returns modifiable pointer to Item by Key. Returns NULL is Key was not bound.
"""
@overload
def Clear(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator) -> None:
"""
Clear data. If doReleaseMemory is false then the table of buckets is not released and will be reused.
Clear data and reset allocator
"""
@overload
def Clear(self,doReleaseMemory : bool=False) -> None: ...
def Exchange(self,theOther : ShapeAnalysis_DataMapOfShapeListOfReal) -> None:
"""
Exchange the content of two maps without re-allocations. Notice that allocators will be swapped as well!
"""
def Extent(self) -> int:
"""
Extent
"""
@overload
def Find(self,theKey : OCP.TopoDS.TopoDS_Shape,theValue : OCP.TColStd.TColStd_ListOfReal) -> bool:
"""
Find returns the Item for Key. Raises if Key was not bound
Find Item for key with copying.
"""
@overload
def Find(self,theKey : OCP.TopoDS.TopoDS_Shape) -> OCP.TColStd.TColStd_ListOfReal: ...
def IsBound(self,theKey : OCP.TopoDS.TopoDS_Shape) -> bool:
"""
IsBound
"""
def IsEmpty(self) -> bool:
"""
IsEmpty
"""
def NbBuckets(self) -> int:
"""
NbBuckets
"""
def ReSize(self,N : int) -> None:
"""
ReSize
"""
def Seek(self,theKey : OCP.TopoDS.TopoDS_Shape) -> OCP.TColStd.TColStd_ListOfReal:
"""
Seek returns pointer to Item by Key. Returns NULL is Key was not bound.
"""
def Size(self) -> int:
"""
Size
"""
def Statistics(self,S : io.BytesIO) -> None:
"""
Statistics
"""
def UnBind(self,theKey : OCP.TopoDS.TopoDS_Shape) -> bool:
"""
UnBind removes Item Key pair from map
"""
def __call__(self,theKey : OCP.TopoDS.TopoDS_Shape) -> OCP.TColStd.TColStd_ListOfReal: ...
@overload
def __init__(self,theOther : ShapeAnalysis_DataMapOfShapeListOfReal) -> None: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theNbBuckets : int,theAllocator : OCP.NCollection.NCollection_BaseAllocator=None) -> None: ...
def __iter__(self) -> Iterator[OCP.TColStd.TColStd_ListOfReal]: ...
def __len__(self) -> int: ...
pass
class ShapeAnalysis_Edge():
"""
Tool for analyzing the edge. Queries geometrical representations of the edge (3d curve, pcurve on the given face or surface) and topological sub-shapes (bounding vertices). Provides methods for analyzing geometry and topology consistency (3d and pcurve(s) consistency, their adjacency to the vertices).
"""
@overload
def BoundUV(self,edge : OCP.TopoDS.TopoDS_Edge,face : OCP.TopoDS.TopoDS_Face,first : OCP.gp.gp_Pnt2d,last : OCP.gp.gp_Pnt2d) -> bool:
"""
None
Returns the ends of pcurve Calls method PCurve with <orient> equal to True
"""
@overload
def BoundUV(self,edge : OCP.TopoDS.TopoDS_Edge,surface : OCP.Geom.Geom_Surface,location : OCP.TopLoc.TopLoc_Location,first : OCP.gp.gp_Pnt2d,last : OCP.gp.gp_Pnt2d) -> bool: ...
@overload
def CheckCurve3dWithPCurve(self,edge : OCP.TopoDS.TopoDS_Edge,face : OCP.TopoDS.TopoDS_Face) -> bool:
"""
None
Checks mutual orientation of 3d curve and pcurve on the analysis of curves bounding points
"""
@overload
def CheckCurve3dWithPCurve(self,edge : OCP.TopoDS.TopoDS_Edge,surface : OCP.Geom.Geom_Surface,location : OCP.TopLoc.TopLoc_Location) -> bool: ...
def CheckOverlapping(self,theEdge1 : OCP.TopoDS.TopoDS_Edge,theEdge2 : OCP.TopoDS.TopoDS_Edge,theTolOverlap : float,theDomainDist : float=0.0) -> bool:
"""
Checks the first edge is overlapped with second edge. If distance between two edges is less then theTolOverlap edges are overlapped. theDomainDis - length of part of edges on which edges are overlapped.
"""
def CheckPCurveRange(self,theFirst : float,theLast : float,thePC : OCP.Geom2d.Geom2d_Curve) -> bool:
"""
Checks possibility for pcurve thePC to have range [theFirst, theLast] (edge range) having respect to real first, last parameters of thePC
"""
@overload
def CheckSameParameter(self,theEdge : OCP.TopoDS.TopoDS_Edge,theFace : OCP.TopoDS.TopoDS_Face,theMaxdev : float,theNbControl : int=23) -> bool:
"""
Checks the edge to be SameParameter. Calculates the maximal deviation between 3d curve and each pcurve of the edge on <NbControl> equidistant points (the same algorithm as in BRepCheck; default value is 23 as in BRepCheck). This deviation is returned in <maxdev> parameter. If deviation is greater than tolerance of the edge (i.e. incorrect flag) returns False, else returns True.
Checks the edge to be SameParameter. Calculates the maximal deviation between 3d curve and each pcurve of the edge on <NbControl> equidistant points (the same algorithm as in BRepCheck; default value is 23 as in BRepCheck). This deviation is returned in <maxdev> parameter. If deviation is greater than tolerance of the edge (i.e. incorrect flag) returns False, else returns True.
"""
@overload
def CheckSameParameter(self,edge : OCP.TopoDS.TopoDS_Edge,maxdev : float,NbControl : int=23) -> bool: ...
@overload
def CheckVertexTolerance(self,edge : OCP.TopoDS.TopoDS_Edge,face : OCP.TopoDS.TopoDS_Face,toler1 : float,toler2 : float) -> bool:
"""
None
Checks if it is necessary to increase tolerances of the edge vertices to comprise the ends of 3d curve and pcurve on the given face (first method) or all pcurves stored in an edge (second one) toler1 returns necessary tolerance for first vertex, toler2 returns necessary tolerance for last vertex.
"""
@overload
def CheckVertexTolerance(self,edge : OCP.TopoDS.TopoDS_Edge,toler1 : float,toler2 : float) -> bool: ...
def CheckVerticesWithCurve3d(self,edge : OCP.TopoDS.TopoDS_Edge,preci : float=-1.0,vtx : int=0) -> bool:
"""
Checks the start and/or end vertex of the edge for matching with 3d curve with the given precision. <vtx> = 1 : start vertex only <vtx> = 2 : end vertex only <vtx> = 0 : both (default) If preci < 0 the vertices are considered with their own tolerances, else with the given <preci>.
"""
@overload
def CheckVerticesWithPCurve(self,edge : OCP.TopoDS.TopoDS_Edge,face : OCP.TopoDS.TopoDS_Face,preci : float=-1.0,vtx : int=0) -> bool:
"""
None
Checks the start and/or end vertex of the edge for matching with pcurve with the given precision. <vtx> = 1 : start vertex <vtx> = 2 : end vertex <vtx> = 0 : both If preci < 0 the vertices are considered with their own tolerances, else with the given <preci>.
"""
@overload
def CheckVerticesWithPCurve(self,edge : OCP.TopoDS.TopoDS_Edge,surface : OCP.Geom.Geom_Surface,location : OCP.TopLoc.TopLoc_Location,preci : float=-1.0,vtx : int=0) -> bool: ...
def Curve3d(self,edge : OCP.TopoDS.TopoDS_Edge,C3d : OCP.Geom.Geom_Curve,cf : float,cl : float,orient : bool=True) -> bool:
"""
Returns the 3d curve and bounding parameteres for the edge Returns False if no 3d curve. If <orient> is True (default), takes orientation into account: if the edge is reversed, cf and cl are toggled
"""
def FirstVertex(self,edge : OCP.TopoDS.TopoDS_Edge) -> OCP.TopoDS.TopoDS_Vertex:
"""
Returns start vertex of the edge (taking edge orientation into account).
"""
@overload
def GetEndTangent2d(self,edge : OCP.TopoDS.TopoDS_Edge,surface : OCP.Geom.Geom_Surface,location : OCP.TopLoc.TopLoc_Location,atEnd : bool,pos : OCP.gp.gp_Pnt2d,tang : OCP.gp.gp_Vec2d,dparam : float=0.0) -> bool:
"""
None
Returns tangent of the edge pcurve at its start (if atEnd is False) or end (if True), regarding the orientation of edge. If edge is REVERSED, tangent is reversed before return. Returns True if pcurve is available and tangent is computed and is not null, else False.
"""
@overload
def GetEndTangent2d(self,edge : OCP.TopoDS.TopoDS_Edge,face : OCP.TopoDS.TopoDS_Face,atEnd : bool,pos : OCP.gp.gp_Pnt2d,tang : OCP.gp.gp_Vec2d,dparam : float=0.0) -> bool: ...
def HasCurve3d(self,edge : OCP.TopoDS.TopoDS_Edge) -> bool:
"""
Tells if the edge has a 3d curve
"""
@overload
def HasPCurve(self,edge : OCP.TopoDS.TopoDS_Edge,face : OCP.TopoDS.TopoDS_Face) -> bool:
"""
Tells if the Edge has a pcurve on the face.
Tells if the edge has a pcurve on the surface (with location).
"""
@overload
def HasPCurve(self,edge : OCP.TopoDS.TopoDS_Edge,surface : OCP.Geom.Geom_Surface,location : OCP.TopLoc.TopLoc_Location) -> bool: ...
def IsClosed3d(self,edge : OCP.TopoDS.TopoDS_Edge) -> bool:
"""
Gives True if the edge has a 3d curve, this curve is closed, and the edge has the same vertex at start and end
"""
@overload
def IsSeam(self,edge : OCP.TopoDS.TopoDS_Edge,face : OCP.TopoDS.TopoDS_Face) -> bool:
"""
None
Returns True if the edge has two pcurves on one surface
"""
@overload
def IsSeam(self,edge : OCP.TopoDS.TopoDS_Edge,surface : OCP.Geom.Geom_Surface,location : OCP.TopLoc.TopLoc_Location) -> bool: ...
def LastVertex(self,edge : OCP.TopoDS.TopoDS_Edge) -> OCP.TopoDS.TopoDS_Vertex:
"""
Returns end vertex of the edge (taking edge orientation into account).
"""
@overload
def PCurve(self,edge : OCP.TopoDS.TopoDS_Edge,surface : OCP.Geom.Geom_Surface,location : OCP.TopLoc.TopLoc_Location,C2d : OCP.Geom2d.Geom2d_Curve,cf : float,cl : float,orient : bool=True) -> bool:
"""
None
Returns the pcurve and bounding parameteres for the edge lying on the surface. Returns False if the edge has no pcurve on this surface. If <orient> is True (default), takes orientation into account: if the edge is reversed, cf and cl are toggled
"""
@overload
def PCurve(self,edge : OCP.TopoDS.TopoDS_Edge,face : OCP.TopoDS.TopoDS_Face,C2d : OCP.Geom2d.Geom2d_Curve,cf : float,cl : float,orient : bool=True) -> bool: ...
def Status(self,status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
Returns the status (in the form of True/False) of last Check
"""
def __init__(self) -> None: ...
pass
class ShapeAnalysis_FreeBoundData(OCP.Standard.Standard_Transient):
"""
This class is intended to represent free bound and to store its properties.This class is intended to represent free bound and to store its properties.This class is intended to represent free bound and to store its properties.
"""
def AddNotch(self,notch : OCP.TopoDS.TopoDS_Wire,width : float) -> None:
"""
Adds notch on the contour with its maximum width
"""
def Area(self) -> float:
"""
Returns area of the contour
Returns area of the contour
"""
def Clear(self) -> None:
"""
Clears all properties of the contour. Contour bound itself is not cleared.
"""
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 FreeBound(self) -> OCP.TopoDS.TopoDS_Wire:
"""
Returns contour
Returns contour
"""
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 NbNotches(self) -> int:
"""
Returns number of notches on the contour
Returns number of notches on the contour
"""
def Notch(self,index : int) -> OCP.TopoDS.TopoDS_Wire:
"""
Returns notch on the contour
Returns notch on the contour
"""
@overload
def NotchWidth(self,index : int) -> float:
"""
Returns maximum width of notch specified by its rank number on the contour
Returns maximum width of notch specified as TopoDS_Wire on the contour
"""
@overload
def NotchWidth(self,notch : OCP.TopoDS.TopoDS_Wire) -> float: ...
def Notches(self) -> OCP.TopTools.TopTools_HSequenceOfShape:
"""
Returns sequence of notches on the contour
Returns sequence of notches on the contour
"""
def Perimeter(self) -> float:
"""
Returns perimeter of the contour
Returns perimeter of the contour
"""
def Ratio(self) -> float:
"""
Returns ratio of average length to average width of the contour
Returns ratio of average length to average width of the contour
"""
def SetArea(self,area : float) -> None:
"""
Sets area of the contour
Sets area of the contour
"""
def SetFreeBound(self,freebound : OCP.TopoDS.TopoDS_Wire) -> None:
"""
Sets contour
Sets contour
"""
def SetPerimeter(self,perimeter : float) -> None:
"""
Sets perimeter of the contour
Sets perimeter of the contour
"""
def SetRatio(self,ratio : float) -> None:
"""
Sets ratio of average length to average width of the contour
Sets ratio of average length to average width of the contour
"""
def SetWidth(self,width : float) -> None:
"""
Sets average width of the contour
Sets average width of the contour
"""
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 Width(self) -> float:
"""
Returns average width of the contour
Returns average width of the contour
"""
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,freebound : OCP.TopoDS.TopoDS_Wire) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class ShapeAnalysis_FreeBounds():
"""
This class is intended to output free bounds of the shape.
"""
@staticmethod
def ConnectEdgesToWires_s(edges : OCP.TopTools.TopTools_HSequenceOfShape,toler : float,shared : bool,wires : OCP.TopTools.TopTools_HSequenceOfShape) -> None:
"""
Builds sequnce of <wires> out of sequence of not sorted <edges>. Tries to build wires of maximum length. Building a wire is stopped when no edges can be connected to it at its head or at its tail.
"""
@staticmethod
@overload
def ConnectWiresToWires_s(iwires : OCP.TopTools.TopTools_HSequenceOfShape,toler : float,shared : bool,owires : OCP.TopTools.TopTools_HSequenceOfShape) -> None:
"""
None
Builds sequnce of <owires> out of sequence of not sorted <iwires>. Tries to build wires of maximum length. Building a wire is stopped when no wires can be connected to it at its head or at its tail.
"""
@staticmethod
@overload
def ConnectWiresToWires_s(iwires : OCP.TopTools.TopTools_HSequenceOfShape,toler : float,shared : bool,owires : OCP.TopTools.TopTools_HSequenceOfShape,vertices : OCP.TopTools.TopTools_DataMapOfShapeShape) -> None: ...
@staticmethod
def DispatchWires_s(wires : OCP.TopTools.TopTools_HSequenceOfShape,closed : OCP.TopoDS.TopoDS_Compound,open : OCP.TopoDS.TopoDS_Compound) -> None:
"""
Dispatches sequence of <wires> into two compounds <closed> for closed wires and <open> for open wires. If a compound is not empty wires are added into it.
"""
def GetClosedWires(self) -> OCP.TopoDS.TopoDS_Compound:
"""
Returns compound of closed wires out of free edges.
Returns compound of closed wires out of free edges.
"""
def GetOpenWires(self) -> OCP.TopoDS.TopoDS_Compound:
"""
Returns compound of open wires out of free edges.
Returns compound of open wires out of free edges.
"""
@staticmethod
def SplitWires_s(wires : OCP.TopTools.TopTools_HSequenceOfShape,toler : float,shared : bool,closed : OCP.TopTools.TopTools_HSequenceOfShape,open : OCP.TopTools.TopTools_HSequenceOfShape) -> None:
"""
Extracts closed sub-wires out of <wires> and adds them to <closed>, open wires remained after extraction are put into <open>. If <shared> is True extraction is performed only when edges share the same vertex. If <shared> is False connection is performed only when ends of the edges are at distance less than <toler>.
"""
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,shape : OCP.TopoDS.TopoDS_Shape,splitclosed : bool=False,splitopen : bool=True,checkinternaledges : bool=False) -> None: ...
@overload
def __init__(self,shape : OCP.TopoDS.TopoDS_Shape,toler : float,splitclosed : bool=False,splitopen : bool=True) -> None: ...
pass
class ShapeAnalysis_FreeBoundsProperties():
"""
This class is intended to calculate shape free bounds properties. This class provides the following functionalities: - calculates area of the contour, - calculates perimeter of the contour, - calculates ratio of average length to average width of the contour, - estimates average width of contour, - finds the notches (narrow 'V'-like sub-contour) on the contour.
"""
def CheckContours(self,prec : float=0.0) -> bool:
"""
None
"""
@overload
def CheckNotches(self,fbData : ShapeAnalysis_FreeBoundData,prec : float=0.0) -> bool:
"""
None
None
None
"""
@overload
def CheckNotches(self,prec : float=0.0) -> bool: ...
@overload
def CheckNotches(self,freebound : OCP.TopoDS.TopoDS_Wire,num : int,notch : OCP.TopoDS.TopoDS_Wire,distMax : float,prec : float=0.0) -> bool: ...
def ClosedFreeBound(self,index : int) -> ShapeAnalysis_FreeBoundData:
"""
Returns properties of closed free bound specified by its rank number
Returns properties of closed free bound specified by its rank number
"""
def ClosedFreeBounds(self) -> ShapeAnalysis_HSequenceOfFreeBounds:
"""
Returns all closed free bounds
Returns all closed free bounds
"""
def DispatchBounds(self) -> bool:
"""
None
"""
def FillProperties(self,fbData : ShapeAnalysis_FreeBoundData,prec : float=0.0) -> bool:
"""
None
"""
@overload
def Init(self,shape : OCP.TopoDS.TopoDS_Shape,tolerance : float,splitclosed : bool=False,splitopen : bool=False) -> None:
"""
Initializes the object with given parameters. <shape> should be a compound of faces.
Initializes the object with given parameters. <shape> should be a compound of shells.
"""
@overload
def Init(self,shape : OCP.TopoDS.TopoDS_Shape,splitclosed : bool=False,splitopen : bool=False) -> None: ...
def IsLoaded(self) -> bool:
"""
Returns True if shape is loaded
Returns True if shape is loaded
"""
def NbClosedFreeBounds(self) -> int:
"""
Returns number of closed free bounds
Returns number of closed free bounds
"""
def NbFreeBounds(self) -> int:
"""
Returns number of free bounds
Returns number of free bounds
"""
def NbOpenFreeBounds(self) -> int:
"""
Returns number of open free bounds
Returns number of open free bounds
"""
def OpenFreeBound(self,index : int) -> ShapeAnalysis_FreeBoundData:
"""
Returns properties of open free bound specified by its rank number
Returns properties of open free bound specified by its rank number
"""
def OpenFreeBounds(self) -> ShapeAnalysis_HSequenceOfFreeBounds:
"""
Returns all open free bounds
Returns all open free bounds
"""
def Perform(self) -> bool:
"""
Builds and analyzes free bounds of the shape. First calls ShapeAnalysis_FreeBounds for building free bounds. Then on each free bound computes its properties: - area of the contour, - perimeter of the contour, - ratio of average length to average width of the contour, - average width of contour, - notches on the contour and for each notch - maximum width of the notch.
"""
def Shape(self) -> OCP.TopoDS.TopoDS_Shape:
"""
Returns shape
Returns shape
"""
def Tolerance(self) -> float:
"""
Returns tolerance
Returns tolerance
"""
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,shape : OCP.TopoDS.TopoDS_Shape,splitclosed : bool=False,splitopen : bool=False) -> None: ...
@overload
def __init__(self,shape : OCP.TopoDS.TopoDS_Shape,tolerance : float,splitclosed : bool=False,splitopen : bool=False) -> None: ...
pass
class ShapeAnalysis_Geom():
"""
Analyzing tool aimed to work on primitive geometrical objects
"""
@staticmethod
def NearestPlane_s(Pnts : OCP.TColgp.TColgp_Array1OfPnt,aPln : OCP.gp.gp_Pln,Dmax : float) -> bool:
"""
Builds a plane out of a set of points in array Returns in <dmax> the maximal distance between the produced plane and given points
"""
@staticmethod
def PositionTrsf_s(coefs : OCP.TColStd.TColStd_HArray2OfReal,trsf : OCP.gp.gp_Trsf,unit : float,prec : float) -> bool:
"""
Builds transformation object out of matrix. Matrix must be 3 x 4. Unit is used as multiplier.
"""
def __init__(self) -> None: ...
pass
class ShapeAnalysis_SequenceOfFreeBounds(OCP.NCollection.NCollection_BaseSequence):
"""
Purpose: Definition of a sequence of elements indexed by an Integer in range of 1..n
"""
def Allocator(self) -> OCP.NCollection.NCollection_BaseAllocator:
"""
Returns attached allocator
"""
@overload
def Append(self,theSeq : ShapeAnalysis_SequenceOfFreeBounds) -> None:
"""
Append one item
Append another sequence (making it empty)
"""
@overload
def Append(self,theItem : ShapeAnalysis_FreeBoundData) -> None: ...
def Assign(self,theOther : ShapeAnalysis_SequenceOfFreeBounds) -> ShapeAnalysis_SequenceOfFreeBounds:
"""
Replace this sequence by the items of theOther. This method does not change the internal allocator.
"""
def ChangeFirst(self) -> ShapeAnalysis_FreeBoundData:
"""
First item access
"""
def ChangeLast(self) -> ShapeAnalysis_FreeBoundData:
"""
Last item access
"""
def ChangeValue(self,theIndex : int) -> ShapeAnalysis_FreeBoundData:
"""
Variable item access by theIndex
"""
def Clear(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator=None) -> None:
"""
Clear the items out, take a new allocator if non null
"""
def Exchange(self,I : int,J : int) -> None:
"""
Exchange two members
"""
def First(self) -> ShapeAnalysis_FreeBoundData:
"""
First item access
"""
@overload
def InsertAfter(self,theIndex : int,theItem : ShapeAnalysis_FreeBoundData) -> None:
"""
InsertAfter theIndex another sequence (making it empty)
InsertAfter theIndex theItem
"""
@overload
def InsertAfter(self,theIndex : int,theSeq : ShapeAnalysis_SequenceOfFreeBounds) -> None: ...
@overload
def InsertBefore(self,theIndex : int,theSeq : ShapeAnalysis_SequenceOfFreeBounds) -> None:
"""
InsertBefore theIndex theItem
InsertBefore theIndex another sequence (making it empty)
"""
@overload
def InsertBefore(self,theIndex : int,theItem : ShapeAnalysis_FreeBoundData) -> None: ...
def IsEmpty(self) -> bool:
"""
Empty query
"""
def Last(self) -> ShapeAnalysis_FreeBoundData:
"""
Last item access
"""
def Length(self) -> int:
"""
Number of items
"""
def Lower(self) -> int:
"""
Method for consistency with other collections.
"""
@overload
def Prepend(self,theItem : ShapeAnalysis_FreeBoundData) -> None:
"""
Prepend one item
Prepend another sequence (making it empty)
"""
@overload
def Prepend(self,theSeq : ShapeAnalysis_SequenceOfFreeBounds) -> None: ...
@overload
def Remove(self,theIndex : int) -> None:
"""
Remove one item
Remove range of items
"""
@overload
def Remove(self,theFromIndex : int,theToIndex : int) -> None: ...
def Reverse(self) -> None:
"""
Reverse sequence
"""
def SetValue(self,theIndex : int,theItem : ShapeAnalysis_FreeBoundData) -> None:
"""
Set item value by theIndex
"""
def Size(self) -> int:
"""
Number of items
"""
def Split(self,theIndex : int,theSeq : ShapeAnalysis_SequenceOfFreeBounds) -> None:
"""
Split in two sequences
"""
def Upper(self) -> int:
"""
Method for consistency with other collections.
"""
def Value(self,theIndex : int) -> ShapeAnalysis_FreeBoundData:
"""
Constant item access by theIndex
"""
def __bool__(self) -> bool: ...
def __call__(self,theIndex : int) -> ShapeAnalysis_FreeBoundData:
"""
Constant operator()
Variable operator()
"""
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theOther : ShapeAnalysis_SequenceOfFreeBounds) -> None: ...
@overload
def __init__(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator) -> None: ...
def __iter__(self) -> Iterator[ShapeAnalysis_FreeBoundData]: ...
def __len__(self) -> int: ...
@staticmethod
def delNode_s(theNode : NCollection_SeqNode,theAl : OCP.NCollection.NCollection_BaseAllocator) -> None:
"""
Static deleter to be passed to BaseSequence
"""
pass
class ShapeAnalysis_HSequenceOfFreeBounds(ShapeAnalysis_SequenceOfFreeBounds, OCP.NCollection.NCollection_BaseSequence, OCP.Standard.Standard_Transient):
def Allocator(self) -> OCP.NCollection.NCollection_BaseAllocator:
"""
Returns attached allocator
"""
@overload
def Append(self,theSequence : ShapeAnalysis_SequenceOfFreeBounds) -> None:
"""
None
None
"""
@overload
def Append(self,theItem : ShapeAnalysis_FreeBoundData) -> None: ...
def Assign(self,theOther : ShapeAnalysis_SequenceOfFreeBounds) -> ShapeAnalysis_SequenceOfFreeBounds:
"""
Replace this sequence by the items of theOther. This method does not change the internal allocator.
"""
def ChangeFirst(self) -> ShapeAnalysis_FreeBoundData:
"""
First item access
"""
def ChangeLast(self) -> ShapeAnalysis_FreeBoundData:
"""
Last item access
"""
def ChangeSequence(self) -> ShapeAnalysis_SequenceOfFreeBounds:
"""
None
"""
def ChangeValue(self,theIndex : int) -> ShapeAnalysis_FreeBoundData:
"""
Variable item access by theIndex
"""
def Clear(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator=None) -> None:
"""
Clear the items out, take a new allocator if non null
"""
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 Exchange(self,I : int,J : int) -> None:
"""
Exchange two members
"""
def First(self) -> ShapeAnalysis_FreeBoundData:
"""
First item access
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def InsertAfter(self,theIndex : int,theItem : ShapeAnalysis_FreeBoundData) -> None:
"""
InsertAfter theIndex another sequence (making it empty)
InsertAfter theIndex theItem
"""
@overload
def InsertAfter(self,theIndex : int,theSeq : ShapeAnalysis_SequenceOfFreeBounds) -> None: ...
@overload
def InsertBefore(self,theIndex : int,theSeq : ShapeAnalysis_SequenceOfFreeBounds) -> None:
"""
InsertBefore theIndex theItem
InsertBefore theIndex another sequence (making it empty)
"""
@overload
def InsertBefore(self,theIndex : int,theItem : ShapeAnalysis_FreeBoundData) -> None: ...
def IsEmpty(self) -> bool:
"""
Empty query
"""
@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 Last(self) -> ShapeAnalysis_FreeBoundData:
"""
Last item access
"""
def Length(self) -> int:
"""
Number of items
"""
def Lower(self) -> int:
"""
Method for consistency with other collections.
"""
@overload
def Prepend(self,theItem : ShapeAnalysis_FreeBoundData) -> None:
"""
Prepend one item
Prepend another sequence (making it empty)
"""
@overload
def Prepend(self,theSeq : ShapeAnalysis_SequenceOfFreeBounds) -> None: ...
@overload
def Remove(self,theIndex : int) -> None:
"""
Remove one item
Remove range of items
"""
@overload
def Remove(self,theFromIndex : int,theToIndex : int) -> None: ...
def Reverse(self) -> None:
"""
Reverse sequence
"""
def Sequence(self) -> ShapeAnalysis_SequenceOfFreeBounds:
"""
None
"""
def SetValue(self,theIndex : int,theItem : ShapeAnalysis_FreeBoundData) -> None:
"""
Set item value by theIndex
"""
def Size(self) -> int:
"""
Number of items
"""
def Split(self,theIndex : int,theSeq : ShapeAnalysis_SequenceOfFreeBounds) -> None:
"""
Split in two sequences
"""
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 Upper(self) -> int:
"""
Method for consistency with other collections.
"""
def Value(self,theIndex : int) -> ShapeAnalysis_FreeBoundData:
"""
Constant item access by theIndex
"""
def __bool__(self) -> bool: ...
def __call__(self,theIndex : int) -> ShapeAnalysis_FreeBoundData:
"""
Constant operator()
Variable operator()
"""
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theOther : ShapeAnalysis_SequenceOfFreeBounds) -> None: ...
def __iter__(self) -> Iterator[ShapeAnalysis_FreeBoundData]: ...
def __len__(self) -> int: ...
@staticmethod
def delNode_s(theNode : NCollection_SeqNode,theAl : OCP.NCollection.NCollection_BaseAllocator) -> None:
"""
Static deleter to be passed to BaseSequence
"""
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class ShapeAnalysis_ShapeContents():
"""
Dumps shape contents
"""
def BigSplineSec(self) -> OCP.TopTools.TopTools_HSequenceOfShape:
"""
None
"""
def Clear(self) -> None:
"""
Clears all accumulated statistics
"""
def ClearFlags(self) -> None:
"""
Clears all flags
"""
def IndirectSec(self) -> OCP.TopTools.TopTools_HSequenceOfShape:
"""
None
"""
def NbBSplibeSurf(self) -> int:
"""
None
"""
def NbBezierSurf(self) -> int:
"""
None
"""
def NbBigSplines(self) -> int:
"""
None
"""
def NbC0Curves(self) -> int:
"""
None
"""
def NbC0Surfaces(self) -> int:
"""
None
"""
def NbEdges(self) -> int:
"""
None
"""
def NbFaceWithSevWires(self) -> int:
"""
None
"""
def NbFaces(self) -> int:
"""
None
"""
def NbFreeEdges(self) -> int:
"""
None
"""
def NbFreeFaces(self) -> int:
"""
None
"""
def NbFreeWires(self) -> int:
"""
None
"""
def NbIndirectSurf(self) -> int:
"""
None
"""
def NbNoPCurve(self) -> int:
"""
None
"""
def NbOffsetCurves(self) -> int:
"""
None
"""
def NbOffsetSurf(self) -> int:
"""
None
"""
def NbSharedEdges(self) -> int:
"""
None
"""
def NbSharedFaces(self) -> int:
"""
None
"""
def NbSharedFreeEdges(self) -> int:
"""
None
"""
def NbSharedFreeWires(self) -> int:
"""
None
"""
def NbSharedShells(self) -> int:
"""
None
"""
def NbSharedSolids(self) -> int:
"""
None
"""
def NbSharedVertices(self) -> int:
"""
None
"""
def NbSharedWires(self) -> int:
"""
None
"""
def NbShells(self) -> int:
"""
None
"""
def NbSolids(self) -> int:
"""
None
"""
def NbSolidsWithVoids(self) -> int:
"""
None
"""
def NbTrimSurf(self) -> int:
"""
None
"""
def NbTrimmedCurve2d(self) -> int:
"""
None
"""
def NbTrimmedCurve3d(self) -> int:
"""
None
"""
def NbVertices(self) -> int:
"""
None
"""
def NbWireWithSevSeams(self) -> int:
"""
None
"""
def NbWireWitnSeam(self) -> int:
"""
None
"""
def NbWires(self) -> int:
"""
None
"""
def OffsetCurveSec(self) -> OCP.TopTools.TopTools_HSequenceOfShape:
"""
None
"""
def OffsetSurfaceSec(self) -> OCP.TopTools.TopTools_HSequenceOfShape:
"""
None
"""
def Perform(self,shape : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Counts quantities of sun-shapes in shape and stores sub-shapes according to flags
"""
def Trimmed2dSec(self) -> OCP.TopTools.TopTools_HSequenceOfShape:
"""
None
"""
def Trimmed3dSec(self) -> OCP.TopTools.TopTools_HSequenceOfShape:
"""
None
"""
def __init__(self) -> None: ...
@property
def ModifyBigSplineMode(self) -> bool:
"""
:type: bool
"""
@ModifyBigSplineMode.setter
def ModifyBigSplineMode(self, arg1: bool) -> None:
pass
@property
def ModifyIndirectMode(self) -> bool:
"""
:type: bool
"""
@ModifyIndirectMode.setter
def ModifyIndirectMode(self, arg1: bool) -> None:
pass
@property
def ModifyOffestSurfaceMode(self) -> bool:
"""
None
:type: bool
"""
@ModifyOffestSurfaceMode.setter
def ModifyOffestSurfaceMode(self, arg1: bool) -> None:
"""
None
"""
@property
def ModifyOffsetCurveMode(self) -> bool:
"""
:type: bool
"""
@ModifyOffsetCurveMode.setter
def ModifyOffsetCurveMode(self, arg1: bool) -> None:
pass
@property
def ModifyOffsetSurfaceMode(self) -> bool:
"""
:type: bool
"""
@ModifyOffsetSurfaceMode.setter
def ModifyOffsetSurfaceMode(self, arg1: bool) -> None:
pass
@property
def ModifyTrimmed2dMode(self) -> bool:
"""
:type: bool
"""
@ModifyTrimmed2dMode.setter
def ModifyTrimmed2dMode(self, arg1: bool) -> None:
pass
@property
def ModifyTrimmed3dMode(self) -> bool:
"""
:type: bool
"""
@ModifyTrimmed3dMode.setter
def ModifyTrimmed3dMode(self, arg1: bool) -> None:
pass
pass
class ShapeAnalysis_ShapeTolerance():
"""
Tool for computing shape tolerances (minimal, maximal, average), finding shape with tolerance matching given criteria, setting or limitating tolerances.
"""
def AddTolerance(self,shape : OCP.TopoDS.TopoDS_Shape,type : OCP.TopAbs.TopAbs_ShapeEnum=TopAbs_ShapeEnum.TopAbs_SHAPE) -> None:
"""
Adds data on new Shape to compute Cumulated Tolerance (prepares three computations : maximal, average, minimal)
"""
def GlobalTolerance(self,mode : int) -> float:
"""
Returns the computed tolerance according to the <mode> <mode> = 0 : average <mode> > 0 : maximal <mode> < 0 : minimal
"""
def InTolerance(self,shape : OCP.TopoDS.TopoDS_Shape,valmin : float,valmax : float,type : OCP.TopAbs.TopAbs_ShapeEnum=TopAbs_ShapeEnum.TopAbs_SHAPE) -> OCP.TopTools.TopTools_HSequenceOfShape:
"""
Determines which shapes have a tolerance within a given interval <type> is interpreted as in the method Tolerance
"""
def InitTolerance(self) -> None:
"""
Initializes computation of cumulated tolerance
"""
def OverTolerance(self,shape : OCP.TopoDS.TopoDS_Shape,value : float,type : OCP.TopAbs.TopAbs_ShapeEnum=TopAbs_ShapeEnum.TopAbs_SHAPE) -> OCP.TopTools.TopTools_HSequenceOfShape:
"""
Determines which shapes have a tolerance over the given value <type> is interpreted as in the method Tolerance
"""
def Tolerance(self,shape : OCP.TopoDS.TopoDS_Shape,mode : int,type : OCP.TopAbs.TopAbs_ShapeEnum=TopAbs_ShapeEnum.TopAbs_SHAPE) -> float:
"""
Determines a tolerance from the ones stored in a shape Remark : calls InitTolerance and AddTolerance, hence, can be used to start a series for cumulating tolerance <mode> = 0 : returns the average value between sub-shapes, <mode> > 0 : returns the maximal found, <mode> < 0 : returns the minimal found. <type> defines what kinds of sub-shapes to consider: SHAPE (default) : all : VERTEX, EDGE, FACE, VERTEX : only vertices, EDGE : only edges, FACE : only faces, SHELL : combined SHELL + FACE, for each face (and containing shell), also checks EDGE and VERTEX
"""
def __init__(self) -> None: ...
pass
class ShapeAnalysis_Shell():
"""
This class provides operators to analyze edges orientation in the shell.
"""
def BadEdges(self) -> OCP.TopoDS.TopoDS_Compound:
"""
Returns the list of bad edges as a Compound It is empty (not null) if no edge are recorded as bad
"""
def CheckOrientedShells(self,shape : OCP.TopoDS.TopoDS_Shape,alsofree : bool=False,checkinternaledges : bool=False) -> bool:
"""
Checks if shells fulfill orientation condition, i.e. if each edge is, either present once (free edge) or twice (connected edge) but with different orientations (FORWARD/REVERSED) Edges which do not fulfill these conditions are bad
"""
def Clear(self) -> None:
"""
Clears data about loaded shells and performed checks
"""
def FreeEdges(self) -> OCP.TopoDS.TopoDS_Compound:
"""
Returns the list of free (not connected) edges as a Compound It is empty (not null) if no edge are recorded as free
"""
def HasBadEdges(self) -> bool:
"""
Tells if at least one edge is recorded as bad
"""
def HasConnectedEdges(self) -> bool:
"""
Tells if at least one edge is connected (shared twice or more)
"""
def HasFreeEdges(self) -> bool:
"""
Tells if at least one edge is recorded as free (not connected)
"""
def IsLoaded(self,shape : OCP.TopoDS.TopoDS_Shape) -> bool:
"""
Tells if a shape is loaded (only shells are checked)
"""
def LoadShells(self,shape : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Adds shells contained in the <shape> to the list of loaded shells
"""
def Loaded(self,num : int) -> OCP.TopoDS.TopoDS_Shape:
"""
Returns a loaded shape specified by its rank number. Returns null shape if <num> is out of range
"""
def NbLoaded(self) -> int:
"""
Returns the actual number of loaded shapes (i.e. shells)
"""
def __init__(self) -> None: ...
pass
class ShapeAnalysis_Surface(OCP.Standard.Standard_Transient):
"""
Complements standard tool Geom_Surface by providing additional functionality for detection surface singularities, checking spatial surface closure and computing projections of 3D points onto a surface.Complements standard tool Geom_Surface by providing additional functionality for detection surface singularities, checking spatial surface closure and computing projections of 3D points onto a surface.
"""
def Adaptor3d(self) -> OCP.GeomAdaptor.GeomAdaptor_Surface:
"""
Returns the Adaptor. Creates it if not yet done.
"""
def Bounds(self) -> tuple[float, float, float, float]:
"""
Returns the bounds of the surface (from Bounds from Surface, but buffered)
Returns the bounds of the surface (from Bounds from Surface, but buffered)
"""
def ComputeBoundIsos(self) -> None:
"""
Computes bound isos (protected against exceptions)
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def DegeneratedValues(self,P3d : OCP.gp.gp_Pnt,preci : float,firstP2d : OCP.gp.gp_Pnt2d,lastP2d : OCP.gp.gp_Pnt2d,firstpar : float,lastpar : float,forward : bool=True) -> bool:
"""
Returns True if there is at least one surface iso-line which is considered as degenerated with <preci> and distance between P3d and corresponding singular point is less than <preci> (like IsDegenerated). Returns characteristics of the first found boundary matching those criteria.
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def Gap(self) -> float:
"""
Returns 3D distance found by one of the following methods. IsDegenerated, DegeneratedValues, ProjectDegenerated (distance between 3D point and found or last (if not found) singularity), IsUClosed, IsVClosed (minimum value of precision to consider the surface to be closed), ValueOfUV (distance between 3D point and found solution).
Returns 3D distance found by one of the following methods. IsDegenerated, DegeneratedValues, ProjectDegenerated (distance between 3D point and found or last (if not found) singularity), IsUClosed, IsVClosed (minimum value of precision to consider the surface to be closed), ValueOfUV (distance between 3D point and found solution).
"""
def GetBoxUF(self) -> OCP.Bnd.Bnd_Box:
"""
None
"""
def GetBoxUL(self) -> OCP.Bnd.Bnd_Box:
"""
None
"""
def GetBoxVF(self) -> OCP.Bnd.Bnd_Box:
"""
None
"""
def GetBoxVL(self) -> OCP.Bnd.Bnd_Box:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def HasSingularities(self,preci : float) -> bool:
"""
Returns True if the surface has singularities for the given precision (i.e. if there are surface singularities with sizes not greater than precision).
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def Init(self,other : ShapeAnalysis_Surface) -> None:
"""
Loads existing surface
Reads all the data from another Surface, without recomputing
"""
@overload
def Init(self,S : OCP.Geom.Geom_Surface) -> None: ...
@overload
def IsDegenerated(self,p2d1 : OCP.gp.gp_Pnt2d,p2d2 : OCP.gp.gp_Pnt2d,tol : float,ratio : float) -> bool:
"""
Returns True if there is at least one surface boundary which is considered as degenerated with <preci> and distance between P3d and corresponding singular point is less than <preci>
Returns True if straight pcurve going from point p2d1 to p2d2 is degenerate, i.e. lies in the singularity of the surface. NOTE: it uses another method of detecting singularity than used by ComputeSingularities() et al.! For that, maximums of distances between points p2d1, p2d2 and 0.5*(p2d1+p2d2) and between corresponding 3d points are computed. The pcurve (p2d1, p2d2) is considered as degenerate if: - max distance in 3d is less than <tol> - max distance in 2d is at least <ratio> times greater than the Resolution computed from max distance in 3d (max3d < tol && max2d > ratio * Resolution(max3d)) NOTE: <ratio> should be >1 (e.g. 10)
"""
@overload
def IsDegenerated(self,P3d : OCP.gp.gp_Pnt,preci : float) -> bool: ...
@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 IsUClosed(self,preci : float=-1.0) -> bool:
"""
Tells if the Surface is spatially closed in U with given precision. If <preci> < 0 then Precision::Confusion is used. If Geom_Surface says that the surface is U-closed, this method also says this. Otherwise additional analysis is performed, comparing given precision with the following distances: - periodic B-Splines are closed, - polinomial B-Spline with boundary multiplicities degree+1 and Bezier - maximum distance between poles, - rational B-Spline or one with boundary multiplicities not degree+1 - maximum distance computed at knots and their middles, - surface of extrusion - distance between ends of basis curve, - other (RectangularTrimmed and Offset) - maximum distance computed at 100 equi-distanted points.
"""
def IsVClosed(self,preci : float=-1.0) -> bool:
"""
Tells if the Surface is spatially closed in V with given precision. If <preci> < 0 then Precision::Confusion is used. If Geom_Surface says that the surface is V-closed, this method also says this. Otherwise additional analysis is performed, comparing given precision with the following distances: - periodic B-Splines are closed, - polinomial B-Spline with boundary multiplicities degree+1 and Bezier - maximum distance between poles, - rational B-Spline or one with boundary multiplicities not degree+1 - maximum distance computed at knots and their middles, - surface of revolution - distance between ends of basis curve, - other (RectangularTrimmed and Offset) - maximum distance computed at 100 equi-distanted points.
"""
def NbSingularities(self,preci : float) -> int:
"""
Returns the number of singularities for the given precision (i.e. number of surface singularities with sizes not greater than precision).
"""
def NextValueOfUV(self,p2dPrev : OCP.gp.gp_Pnt2d,P3D : OCP.gp.gp_Pnt,preci : float,maxpreci : float=-1.0) -> OCP.gp.gp_Pnt2d:
"""
Projects a point P3D on the surface. Does the same thing as ValueOfUV but tries to optimize computations by taking into account previous point <p2dPrev>: makes a step by UV and tries Newton algorithm. If <maxpreci> >0. and distance between solution and P3D is greater than <maxpreci>, that solution is considered as bad, and ValueOfUV() is used. If not succeeded, calls ValueOfUV()
"""
@overload
def ProjectDegenerated(self,P3d : OCP.gp.gp_Pnt,preci : float,neighbour : OCP.gp.gp_Pnt2d,result : OCP.gp.gp_Pnt2d) -> bool:
"""
Projects a point <P3d> on a singularity by computing one of the coordinates of preliminary computed <result>.
Checks points at the beginning (direct is True) or end (direct is False) of array <points> to lie in singularity of surface, and if yes, adjusts the indeterminate 2d coordinate of these points by nearest point which is not in singularity. Returns True if some points were adjusted.
"""
@overload
def ProjectDegenerated(self,nbrPnt : int,points : OCP.TColgp.TColgp_SequenceOfPnt,pnt2d : OCP.TColgp.TColgp_SequenceOfPnt2d,preci : float,direct : bool) -> bool: ...
def SetDomain(self,U1 : float,U2 : float,V1 : float,V2 : float) -> None:
"""
None
"""
def Singularity(self,num : int,preci : float,P3d : OCP.gp.gp_Pnt,firstP2d : OCP.gp.gp_Pnt2d,lastP2d : OCP.gp.gp_Pnt2d,firstpar : float,lastpar : float,uisodeg : bool) -> bool:
"""
Returns the characteristics of the singularity specified by its rank number <num>. That means, that it is not necessary for <num> to be in the range [1, NbSingularities] but must be not greater than possible (see ComputeSingularities). The returned characteristics are: preci: the smallest precision with which the iso-line is considered as degenerated, P3d: 3D point of singularity (middle point of the surface iso-line), firstP2d and lastP2d: first and last 2D points of the iso-line in parametrical surface, firstpar and lastpar: first and last parameters of the iso-line in parametrical surface, uisodeg: if the degenerated iso-line is U-iso (True) or V-iso (False). Returns False if <num> is out of range, else returns True.
"""
def Surface(self) -> OCP.Geom.Geom_Surface:
"""
Returns a surface being analyzed
Returns a surface being analyzed
"""
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 TrueAdaptor3d(self) -> OCP.GeomAdaptor.GeomAdaptor_Surface:
"""
Returns the Adaptor (may be Null if method Adaptor() was not called)
Returns the Adaptor (may be Null if method Adaptor() was not called)
"""
def UCloseVal(self) -> float:
"""
Returns minimum value to consider the surface as U-closed
Returns minimum value to consider the surface as U-closed
"""
def UIso(self,U : float) -> OCP.Geom.Geom_Curve:
"""
Returns a U-Iso. Null if not possible or failed Remark : bound isos are buffered
"""
def UVFromIso(self,P3D : OCP.gp.gp_Pnt,preci : float,U : float,V : float) -> float:
"""
Tries a refinement of an already computed couple (U,V) by using projecting 3D point on iso-lines: 1. boundaries of the surface, 2. iso-lines passing through (U,V) 3. iteratively received iso-lines passing through new U and new V (number of iterations is limited by 5 in each direction) Returns the best resulting distance between P3D and Value(U,V) in the case of success. Else, returns a very great value
"""
def VCloseVal(self) -> float:
"""
Returns minimum value to consider the surface as V-closed
Returns minimum value to consider the surface as V-closed
"""
def VIso(self,V : float) -> OCP.Geom.Geom_Curve:
"""
Returns a V-Iso. Null if not possible or failed Remark : bound isos are buffered
"""
@overload
def Value(self,u : float,v : float) -> OCP.gp.gp_Pnt:
"""
Returns a 3D point specified by parameters in surface parametrical space
Returns a 3d point specified by a point in surface parametrical space
Returns a 3D point specified by parameters in surface parametrical space
Returns a 3d point specified by a point in surface parametrical space
"""
@overload
def Value(self,p2d : OCP.gp.gp_Pnt2d) -> OCP.gp.gp_Pnt: ...
def ValueOfUV(self,P3D : OCP.gp.gp_Pnt,preci : float) -> OCP.gp.gp_Pnt2d:
"""
Computes the parameters in the surface parametrical space of 3D point. The result is parameters of the point projected onto the surface. This method enhances functionality provided by the standard tool GeomAPI_ProjectPointOnSurface by treatment of cases when the projected point is near to the surface boundaries and when this standard tool fails.
"""
def __init__(self,S : OCP.Geom.Geom_Surface) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class ShapeAnalysis_TransferParameters(OCP.Standard.Standard_Transient):
"""
This tool is used for transferring parameters from 3d curve of the edge to pcurve and vice versa.This tool is used for transferring parameters from 3d curve of the edge to pcurve and vice versa.This tool is used for transferring parameters from 3d curve of the edge to pcurve and vice versa.
"""
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 Init(self,E : OCP.TopoDS.TopoDS_Edge,F : OCP.TopoDS.TopoDS_Face) -> None:
"""
Initialize a tool with edge and face
"""
@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 IsSameRange(self) -> bool:
"""
Returns True if 3d curve of edge and pcurve are SameRange (in default implementation, if myScale == 1 and myShift == 0)
"""
@overload
def Perform(self,Param : float,To2d : bool) -> float:
"""
Transfers parameters given by sequence Params from 3d curve to pcurve (if To2d is True) or back (if To2d is False)
Transfers parameter given by sequence Params from 3d curve to pcurve (if To2d is True) or back (if To2d is False)
"""
@overload
def Perform(self,Params : OCP.TColStd.TColStd_HSequenceOfReal,To2d : bool) -> OCP.TColStd.TColStd_HSequenceOfReal: ...
def SetMaxTolerance(self,maxtol : float) -> None:
"""
Sets maximal tolerance to use linear recomputation of parameters.
"""
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 TransferRange(self,newEdge : OCP.TopoDS.TopoDS_Edge,prevPar : float,currPar : float,To2d : bool) -> None:
"""
Recomputes range of curves from NewEdge. If Is2d equals True parameters are recomputed by curve2d else by curve3d.
"""
@overload
def __init__(self,E : OCP.TopoDS.TopoDS_Edge,F : OCP.TopoDS.TopoDS_Face) -> 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 ShapeAnalysis_TransferParametersProj(ShapeAnalysis_TransferParameters, OCP.Standard.Standard_Transient):
"""
This tool is used for transferring parameters from 3d curve of the edge to pcurve and vice versa. This tool transfers parameters with help of projection points from curve 3d on curve 2d and vice versaThis tool is used for transferring parameters from 3d curve of the edge to pcurve and vice versa. This tool transfers parameters with help of projection points from curve 3d on curve 2d and vice versaThis tool is used for transferring parameters from 3d curve of the edge to pcurve and vice versa. This tool transfers parameters with help of projection points from curve 3d on curve 2d and vice versa
"""
@staticmethod
@overload
def CopyNMVertex_s(theVert : OCP.TopoDS.TopoDS_Vertex,toedge : OCP.TopoDS.TopoDS_Edge,fromedge : OCP.TopoDS.TopoDS_Edge) -> OCP.TopoDS.TopoDS_Vertex:
"""
Make a copy of non-manifold vertex theVert (i.e. create new TVertex and replace PointRepresentations for this vertex from fromedge to toedge. Other representations were copied)
Make a copy of non-manifold vertex theVert (i.e. create new TVertex and replace PointRepresentations for this vertex from fromFace to toFace. Other representations were copied)
"""
@staticmethod
@overload
def CopyNMVertex_s(theVert : OCP.TopoDS.TopoDS_Vertex,toFace : OCP.TopoDS.TopoDS_Face,fromFace : OCP.TopoDS.TopoDS_Face) -> OCP.TopoDS.TopoDS_Vertex: ...
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 Init(self,E : OCP.TopoDS.TopoDS_Edge,F : OCP.TopoDS.TopoDS_Face) -> None:
"""
None
"""
@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 IsSameRange(self) -> bool:
"""
Returns False;
"""
@overload
def Perform(self,Papams : OCP.TColStd.TColStd_HSequenceOfReal,To2d : bool) -> OCP.TColStd.TColStd_HSequenceOfReal:
"""
Transfers parameters given by sequence Params from 3d curve to pcurve (if To2d is True) or back (if To2d is False)
Transfers parameter given by Param from 3d curve to pcurve (if To2d is True) or back (if To2d is False)
"""
@overload
def Perform(self,Param : float,To2d : bool) -> float: ...
def SetMaxTolerance(self,maxtol : float) -> None:
"""
Sets maximal tolerance to use linear recomputation of parameters.
"""
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 TransferRange(self,newEdge : OCP.TopoDS.TopoDS_Edge,prevPar : float,currPar : float,Is2d : bool) -> None:
"""
Recomputes range of curves from NewEdge. If Is2d equals True parameters are recomputed by curve2d else by curve3d.
"""
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,E : OCP.TopoDS.TopoDS_Edge,F : OCP.TopoDS.TopoDS_Face) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
@property
def ForceProjection(self) -> bool:
"""
Returns modifiable flag forcing projection If it is False (default), projection is done only if edge is not SameParameter or if tolerance of edge is greater than MaxTolerance()
:type: bool
"""
@ForceProjection.setter
def ForceProjection(self, arg1: bool) -> None:
"""
Returns modifiable flag forcing projection If it is False (default), projection is done only if edge is not SameParameter or if tolerance of edge is greater than MaxTolerance()
"""
pass
class ShapeAnalysis_Wire(OCP.Standard.Standard_Transient):
"""
This class provides analysis of a wire to be compliant to CAS.CADE requirements.This class provides analysis of a wire to be compliant to CAS.CADE requirements.This class provides analysis of a wire to be compliant to CAS.CADE requirements.
"""
def CheckClosed(self,prec : float=0.0) -> bool:
"""
Checks if wire is closed, performs CheckConnected, CheckDegenerated and CheckLacking for the first and the last edges Returns: True if at least one check returned True Status: FAIL1 or DONE1: see CheckConnected FAIL2 or DONE2: see CheckDegenerated
"""
@overload
def CheckConnected(self,num : int,prec : float=0.0) -> bool:
"""
Calls to CheckConnected for each edge Returns: True if at least one pair of disconnected edges (not sharing the same vertex) was detected
Checks connected edges (num-th and preceding). Tests with starting preci from <SBWD> or with <prec> if it is greater. Considers Vertices. Returns: False if edges are connected by the common vertex, else True Status : OK : Vertices (end of num-1 th edge and start on num-th one) are already the same DONE1 : Absolutely confused (gp::Resolution) DONE2 : Confused at starting <preci> from <SBWD> DONE3 : Confused at <prec> but not <preci> FAIL1 : Not confused FAIL2 : Not confused but confused with <preci> if reverse num-th edge
"""
@overload
def CheckConnected(self,prec : float=0.0) -> bool: ...
def CheckCurveGap(self,num : int=0) -> bool:
"""
Checks gap between points on 3D curve and points on surface generated by pcurve of the num-th edge. The distance can be queried by MinDistance3d.
"""
def CheckCurveGaps(self) -> bool:
"""
None
"""
@overload
def CheckDegenerated(self) -> bool:
"""
Calls to CheckDegenerated for each edge Returns: True if at least one incorrect degenerated edge was detected
Checks for degenerated edge between two adjacent ones. Fills parameters dgnr1 and dgnr2 with points in parametric space that correspond to the singularity (either gap that needs to be filled by degenerated edge or that already filled) Returns: False if no singularity or edge is already degenerated, otherwise True Status: OK : No surface singularity, or edge is already degenerated DONE1: Degenerated edge should be inserted (gap in 2D) DONE2: Edge <num> should be made degenerated (recompute pcurve and set the flag) FAIL1: One of edges neighbouring to degenerated one has no pcurve FAIL2: Edge marked as degenerated and has no pcurve but singularity is not detected
Checks for degenerated edge between two adjacent ones. Remark : Calls previous function Status : See the function above for details
"""
@overload
def CheckDegenerated(self,num : int,dgnr1 : OCP.gp.gp_Pnt2d,dgnr2 : OCP.gp.gp_Pnt2d) -> bool: ...
@overload
def CheckDegenerated(self,num : int) -> bool: ...
def CheckEdgeCurves(self) -> bool:
"""
Checks edges geometry (consistency of 2d and 3d senses, adjasment of curves to the vertices, etc.). The order of the checks : Call ShapeAnalysis_Wire to check: ShapeAnalysis_Edge::CheckCurve3dWithPCurve (1), ShapeAnalysis_Edge::CheckVertcesWithPCurve (2), ShapeAnalysis_Edge::CheckVertcesWithCurve3d (3), CheckSeam (4) Additional: CheckGap3d (5), CheckGap2d (6), ShapeAnalysis_Edge::CheckSameParameter (7) Returns: True if at least one check returned True Remark: The numbers in brackets show with what DONEi or FAILi the status can be queried
"""
def CheckGap2d(self,num : int=0) -> bool:
"""
Checks gap between edges in 2D (pcurves). Checks the distance between ends of pcurves of the num-th and preceding edge. The distance can be queried by MinDistance2d.
"""
def CheckGap3d(self,num : int=0) -> bool:
"""
Checks gap between edges in 3D (3d curves). Checks the distance between ends of 3d curves of the num-th and preceding edge. The distance can be queried by MinDistance3d.
"""
def CheckGaps2d(self) -> bool:
"""
None
"""
def CheckGaps3d(self) -> bool:
"""
None
"""
@overload
def CheckIntersectingEdges(self,num1 : int,num2 : int) -> bool:
"""
Checks two adjacent edges for intersecting. Intersection is reported only if intersection point is not enclosed by the common end vertex of the edges. Returns: True if intersection is found. If returns True it also fills the sequences of intersection points, corresponding 3d points, and errors for them (half-distances between intersection points in 3d calculated from one and from another edge) Status: FAIL1 : No pcurve FAIL2 : No vertices DONE1 : Self-intersection found
Checks two adjacent edges for intersecting. Remark : Calls the previous method Status : See the function above for details
Checks i-th and j-th edges for intersecting. Remark : See the previous method for details
Checks i-th and j-th edges for intersecting. Remark : Calls previous method. Status : See the function above for details
"""
@overload
def CheckIntersectingEdges(self,num : int,points2d : OCP.IntRes2d.IntRes2d_SequenceOfIntersectionPoint,points3d : OCP.TColgp.TColgp_SequenceOfPnt,errors : OCP.TColStd.TColStd_SequenceOfReal) -> bool: ...
@overload
def CheckIntersectingEdges(self,num1 : int,num2 : int,points2d : OCP.IntRes2d.IntRes2d_SequenceOfIntersectionPoint,points3d : OCP.TColgp.TColgp_SequenceOfPnt,errors : OCP.TColStd.TColStd_SequenceOfReal) -> bool: ...
@overload
def CheckIntersectingEdges(self,num : int) -> bool: ...
@overload
def CheckLacking(self) -> bool:
"""
Calls to CheckLacking for each edge Returns: True if at least one lacking edge was detected
Checks if there is a gap in 2d between edges, not comprised by the tolerance of their common vertex. If <Tolerance> is greater than 0. and less than tolerance of the vertex, then this value is used for check. Returns: True if not closed gap was detected p2d1 and p2d2 are the endpoint of <num-1>th edge and start of the <num>th edge in 2d. Status: OK: No edge is lacking (3d and 2d connection) FAIL1: edges have no vertices (at least one of them) FAIL2: edges are neither connected by common vertex, nor have coincided vertices FAIL1: edges have no pcurves DONE1: the gap is detected which cannot be closed by the tolerance of the common vertex (or with value of <Tolerance>) DONE2: is set (together with DONE1) if gap is detected and the vector (p2d2 - p2d1) goes in direction opposite to the pcurves of the edges (if angle is more than 0.9*PI).
Checks if there is a gap in 2D between edges and not comprised by vertex tolerance The value of SBWD.thepreci is used. Returns: False if no edge should be inserted Status: OK : No edge is lacking (3d and 2d connection) DONE1 : The vertex tolerance should be increased only (2d gap is small) DONE2 : Edge can be inserted (3d and 2d gaps are large enough)
"""
@overload
def CheckLacking(self,num : int,Tolerance : float=0.0) -> bool: ...
@overload
def CheckLacking(self,num : int,Tolerance : float,p2d1 : OCP.gp.gp_Pnt2d,p2d2 : OCP.gp.gp_Pnt2d) -> bool: ...
def CheckLoop(self,aMapLoopVertices : OCP.TopTools.TopTools_IndexedMapOfShape,aMapVertexEdges : OCP.TopTools.TopTools_DataMapOfShapeListOfShape,aMapSmallEdges : OCP.TopTools.TopTools_MapOfShape,aMapSeemEdges : OCP.TopTools.TopTools_MapOfShape) -> bool:
"""
Checks existence of loop on wire and return vertices which are loop vertices (vertices belonging to a few pairs of edges)
"""
def CheckNotchedEdges(self,num : int,shortNum : int,param : float,Tolerance : float=0.0) -> bool:
"""
Detects a notch
"""
@overload
def CheckOrder(self,sawo : ShapeAnalysis_WireOrder,isClosed : bool=True,theMode3D : bool=True,theModeBoth : bool=False) -> bool:
"""
Calls CheckOrder and returns False if wire is already ordered (tail-to-head), True otherwise Flag <isClosed> defines if the wire is closed or not Flag <mode3d> defines which mode is used (3d or 2d)
Analyzes the order of the edges in the wire, uses class WireOrder for that purpose. Flag <isClosed> defines if the wire is closed or not Flag <theMode3D> defines 3D or 2d mode. Flag <theModeBoth> defines miscible mode and the flag <theMode3D> is ignored. Returns False if wire is already ordered (tail-to-head), True otherwise. Use returned WireOrder object for deeper analysis. Status: OK : the same edges orientation, the same edges sequence DONE1: the same edges orientation, not the same edges sequence DONE2: as DONE1 and gaps more than myPrecision DONE3: not the same edges orientation (some need to be reversed) DONE4: as DONE3 and gaps more than myPrecision FAIL : algorithm failed (could not detect order)
"""
@overload
def CheckOrder(self,isClosed : bool=True,mode3d : bool=True) -> bool: ...
def CheckOuterBound(self,APIMake : bool=True) -> bool:
"""
Checks if wire defines an outer bound on the face Uses ShapeAnalysis::IsOuterBound for analysis If <APIMake> is True uses BRepAPI_MakeWire to build the wire, if False (to be used only when edges share common vertices) uses BRep_Builder to build the wire
"""
@overload
def CheckSeam(self,num : int) -> bool:
"""
Checks if a seam pcurves are correct oriented Returns: False (status OK) if given edge is not a seam or if it is OK C1 - current pcurve for FORWARD edge, C2 - current pcurve for REVERSED edge (if returns True they should be swapped for the seam), cf, cl - first and last parameters on curves Status: OK : Pcurves are correct or edge is not seam DONE : Seam pcurves should be swapped
Checks if a seam pcurves are correct oriented See previous functions for details
"""
@overload
def CheckSeam(self,num : int,C1 : OCP.Geom2d.Geom2d_Curve,C2 : OCP.Geom2d.Geom2d_Curve,cf : float,cl : float) -> bool: ...
@overload
def CheckSelfIntersectingEdge(self,num : int,points2d : OCP.IntRes2d.IntRes2d_SequenceOfIntersectionPoint,points3d : OCP.TColgp.TColgp_SequenceOfPnt) -> bool:
"""
Checks if num-th edge is self-intersecting. Self-intersection is reported only if intersection point lies outside of both end vertices of the edge. Returns: True if edge is self-intersecting. If returns True it also fills the sequences of intersection points and corresponding 3d points (only that are not enclosed by a vertices) Status: FAIL1 : No pcurve FAIL2 : No vertices DONE1 : Self-intersection found
None
"""
@overload
def CheckSelfIntersectingEdge(self,num : int) -> bool: ...
def CheckSelfIntersection(self) -> bool:
"""
Checks self-intersection of the wire (considering pcurves) Looks for self-intersecting edges and each pair of intersecting edges. Warning: It does not check each edge with any other one (only each two adjacent edges) The order of the checks : CheckSelfIntersectingEdge, CheckIntersectingEdges Returns: True if at least one check returned True Status: FAIL1 or DONE1 - see CheckSelfIntersectingEdge FAIL2 or DONE2 - see CheckIntersectingEdges
"""
@overload
def CheckShapeConnect(self,tailhead : float,tailtail : float,headtail : float,headhead : float,shape : OCP.TopoDS.TopoDS_Shape,prec : float=0.0) -> bool:
"""
Checks with what orientation <shape> (wire or edge) can be connected to the wire. Tests distances with starting <preci> from <SBWD> (close confusion), but if given <prec> is greater, tests with <prec> (coarse confusion). The smallest found distance can be returned by MinDistance3d
The same as previous CheckShapeConnect but is more advanced. It returns the distances between each end of <sbwd> and each end of <shape>. For example, <tailhead> stores distance between tail of <sbwd> and head of <shape> Remark: First method CheckShapeConnect calls this one
"""
@overload
def CheckShapeConnect(self,shape : OCP.TopoDS.TopoDS_Shape,prec : float=0.0) -> bool: ...
@overload
def CheckSmall(self,precsmall : float=0.0) -> bool:
"""
Calls to CheckSmall for each edge Returns: True if at least one small edge was detected
Checks if an edge has a length not greater than myPreci or precsmall (if it is smaller) Returns: False if its length is greater than precision Status: OK : edge is not small or degenerated DONE1: edge is small, vertices are the same DONE2: edge is small, vertices are not the same FAIL : no 3d curve and pcurve
"""
@overload
def CheckSmall(self,num : int,precsmall : float=0.0) -> bool: ...
def CheckSmallArea(self,theWire : OCP.TopoDS.TopoDS_Wire) -> bool:
"""
Checks if wire has parametric area less than precision.
"""
def CheckTail(self,theEdge1 : OCP.TopoDS.TopoDS_Edge,theEdge2 : OCP.TopoDS.TopoDS_Edge,theMaxSine : float,theMaxWidth : float,theMaxTolerance : float,theEdge11 : OCP.TopoDS.TopoDS_Edge,theEdge12 : OCP.TopoDS.TopoDS_Edge,theEdge21 : OCP.TopoDS.TopoDS_Edge,theEdge22 : OCP.TopoDS.TopoDS_Edge) -> bool:
"""
None
"""
def ClearStatuses(self) -> None:
"""
Unsets all the status and distance fields wire, face and precision are not cleared
"""
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 Face(self) -> OCP.TopoDS.TopoDS_Face:
"""
Returns the working face
Returns the working face
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def Init(self,sbwd : OCP.ShapeExtend.ShapeExtend_WireData,face : OCP.TopoDS.TopoDS_Face,precision : float) -> None:
"""
Initializes the object with standard TopoDS_Wire, face and precision
Initializes the object with WireData object, face and precision
"""
@overload
def Init(self,wire : OCP.TopoDS.TopoDS_Wire,face : OCP.TopoDS.TopoDS_Face,precision : float) -> None: ...
@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 IsLoaded(self) -> bool:
"""
Returns True if wire is loaded and has number of edges >0
Returns True if wire is loaded and has number of edges >0
"""
def IsReady(self) -> bool:
"""
Returns True if IsLoaded and underlying face is not null
Returns True if IsLoaded and underlying face is not null
"""
def LastCheckStatus(self,Status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
Querying the status of the LAST performed 'Advanced' checking procedure
Querying the status of the LAST performed 'Advanced' checking procedure
"""
@overload
def Load(self,sbwd : OCP.ShapeExtend.ShapeExtend_WireData) -> None:
"""
Loads the object with standard TopoDS_Wire
Loads the object with WireData object
"""
@overload
def Load(self,wire : OCP.TopoDS.TopoDS_Wire) -> None: ...
def MaxDistance2d(self) -> float:
"""
Returns the last maximal distance in 2D-UV computed by CheckContinuity2d
Returns the last maximal distance in 2D-UV computed by CheckContinuity2d
"""
def MaxDistance3d(self) -> float:
"""
Returns the last maximal distance in 3D computed by CheckOrientation, CheckConnected, CheckContinuity3d, CheckVertex, CheckNewVertex, CheckSameParameter
Returns the last maximal distance in 3D computed by CheckOrientation, CheckConnected, CheckContinuity3d, CheckVertex, CheckNewVertex, CheckSameParameter
"""
def MinDistance2d(self) -> float:
"""
Returns the last lowest distance in 2D-UV computed by CheckContinuity2d
Returns the last lowest distance in 2D-UV computed by CheckContinuity2d
"""
def MinDistance3d(self) -> float:
"""
Returns the last lowest distance in 3D computed by CheckOrientation, CheckConnected, CheckContinuity3d, CheckVertex, CheckNewVertex
Returns the last lowest distance in 3D computed by CheckOrientation, CheckConnected, CheckContinuity3d, CheckVertex, CheckNewVertex
"""
def NbEdges(self) -> int:
"""
Returns the number of edges in the wire, or 0 if it is not loaded
Returns the number of edges in the wire, or 0 if it is not loaded
"""
def Perform(self) -> bool:
"""
Performs all the checks in the following order : CheckOrder, CheckSmall, CheckConnected, CheckEdgeCurves, CheckDegenerated, CheckSelfIntersection, CheckLacking, CheckClosed Returns: True if at least one method returned True; For deeper analysis use Status...(status) methods
"""
def Precision(self) -> float:
"""
Returns the value of precision
Returns the value of precision
"""
def SetFace(self,face : OCP.TopoDS.TopoDS_Face) -> None:
"""
Loads the face the wire lies on
"""
def SetPrecision(self,precision : float) -> None:
"""
None
"""
@overload
def SetSurface(self,surface : OCP.Geom.Geom_Surface) -> None:
"""
Loads the surface the wire lies on
Loads the surface the wire lies on
"""
@overload
def SetSurface(self,surface : OCP.Geom.Geom_Surface,location : OCP.TopLoc.TopLoc_Location) -> None: ...
def StatusClosed(self,Status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def StatusConnected(self,Status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def StatusCurveGaps(self,Status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def StatusDegenerated(self,Status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def StatusEdgeCurves(self,Status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def StatusGaps2d(self,Status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def StatusGaps3d(self,Status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def StatusLacking(self,Status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def StatusLoop(self,Status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def StatusOrder(self,Status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def StatusSelfIntersection(self,Status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def StatusSmall(self,Status : OCP.ShapeExtend.ShapeExtend_Status) -> bool:
"""
None
None
"""
def Surface(self) -> ShapeAnalysis_Surface:
"""
Returns the working surface
Returns the working surface
"""
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 WireData(self) -> OCP.ShapeExtend.ShapeExtend_WireData:
"""
Returns wire object being analyzed
Returns wire object being analyzed
"""
@overload
def __init__(self,wire : OCP.TopoDS.TopoDS_Wire,face : OCP.TopoDS.TopoDS_Face,precision : float) -> None: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,sbwd : OCP.ShapeExtend.ShapeExtend_WireData,face : OCP.TopoDS.TopoDS_Face,precision : float) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class ShapeAnalysis_WireOrder():
"""
This class is intended to control and, if possible, redefine the order of a list of edges which define a wire Edges are not given directly, but as their bounds (start,end)
"""
@overload
def Add(self,theStart2d : OCP.gp.gp_XY,theEnd2d : OCP.gp.gp_XY) -> None:
"""
Adds a couple of points 3D (start, end)
Adds a couple of points 2D (start, end)
Adds a couple of points 3D and 2D (start, end)
"""
@overload
def Add(self,theStart3d : OCP.gp.gp_XYZ,theEnd3d : OCP.gp.gp_XYZ) -> None: ...
@overload
def Add(self,theStart3d : OCP.gp.gp_XYZ,theEnd3d : OCP.gp.gp_XYZ,theStart2d : OCP.gp.gp_XY,theEnd2d : OCP.gp.gp_XY) -> None: ...
def Chain(self,num : int) -> tuple[int, int]:
"""
Returns, for the chain n0 num, starting and ending numbers of edges. In the list of ordered edges (see Ordered for originals)
"""
def Clear(self) -> None:
"""
Clears the list of edges, but not mode and tol
"""
def Couple(self,num : int) -> tuple[int, int]:
"""
Returns, for the couple n0 num, the two implied edges In the list of ordered edges
"""
def Gap(self,num : int=0) -> float:
"""
Returns the gap between a couple and its preceding <num> is considered ordered If <num> = 0 (D), returns the greatest gap found
"""
def IsDone(self) -> bool:
"""
Tells if Perform has been done Else, the following methods returns original values
"""
def NbChains(self) -> int:
"""
Returns the count of computed chains
"""
def NbCouples(self) -> int:
"""
Returns the count of computed couples
"""
def NbEdges(self) -> int:
"""
Returns the count of added couples of points (one per edges)
"""
def Ordered(self,theIdx : int) -> int:
"""
Returns the number of original edge which correspond to the newly ordered number <n> Warning : the returned value is NEGATIVE if edge should be reversed
"""
def Perform(self,closed : bool=True) -> None:
"""
Computes the better order Optimised if the couples were already in order The criterium is : two couples in order if distance between end-prec and start-cur is less then starting tolerance <tol> Else, the smallest distance is reached Warning: Parameter <closed> not used
"""
def SetChains(self,gap : float) -> None:
"""
Determines the chains inside which successive edges have a gap less than a given value. Queried by NbChains and Chain
"""
def SetCouples(self,gap : float) -> None:
"""
Determines the couples of edges for which end and start fit inside a given gap. Queried by NbCouples and Couple Warning: function isn't implemented
"""
def SetMode(self,theMode3D : bool,theTolerance : float,theModeBoth : bool=False) -> None:
"""
Sets new values. Clears the edge list if the mode (<theMode3D> or <theModeBoth> ) changes. Clears the connexion list. Warning: Parameter <theTolerance> is not used in algorithm.
"""
def Status(self) -> int:
"""
Returns the status of the order (0 if not done) : 0 : all edges are direct and in sequence 1 : all edges are direct but some are not in sequence -1 : some edges are reversed, but no gap remain 3 : edges in sequence are just shifted in forward or reverse manner
"""
def Tolerance(self) -> float:
"""
Returns the working tolerance
"""
def XY(self,theIdx : int,theStart2D : OCP.gp.gp_XY,theEnd2D : OCP.gp.gp_XY) -> None:
"""
Returns the values of the couple <num>, as 2D values
"""
def XYZ(self,theIdx : int,theStart3D : OCP.gp.gp_XYZ,theEnd3D : OCP.gp.gp_XYZ) -> None:
"""
Returns the values of the couple <num>, as 3D values
"""
@overload
def __init__(self,theMode3D : bool,theTolerance : float,theModeBoth : bool=False) -> None: ...
@overload
def __init__(self) -> None: ...
@property
def KeepLoopsMode(self) -> bool:
"""
If this mode is True method perform does not sort edges of different loops. The resulting order is first loop, second one etc...
:type: bool
"""
@KeepLoopsMode.setter
def KeepLoopsMode(self, arg1: bool) -> None:
"""
If this mode is True method perform does not sort edges of different loops. The resulting order is first loop, second one etc...
"""
pass
class ShapeAnalysis_WireVertex():
"""
Analyzes and records status of vertices in a Wire
"""
def Analyze(self) -> None:
"""
None
"""
def Data(self,num : int,pos : OCP.gp.gp_XYZ,upre : float,ufol : float) -> int:
"""
Returns the recorded status for a vertex With its recorded position and parameters on both edges These values are relevant regarding the status: Status Meaning Position Preceding Following 0 Same no no no 1 SameCoord no no no 2 Close no no no 3 End yes no yes 4 Start yes yes no 5 Inters yes yes yes -1 Disjoined no no no
"""
@overload
def Init(self,swbd : OCP.ShapeExtend.ShapeExtend_WireData,preci : float) -> None:
"""
None
None
"""
@overload
def Init(self,wire : OCP.TopoDS.TopoDS_Wire,preci : float) -> None: ...
def IsDone(self) -> bool:
"""
Returns True if analysis was performed, else returns False
"""
@overload
def Load(self,wire : OCP.TopoDS.TopoDS_Wire) -> None:
"""
None
None
"""
@overload
def Load(self,sbwd : OCP.ShapeExtend.ShapeExtend_WireData) -> None: ...
def NbEdges(self) -> int:
"""
Returns the number of edges in analyzed wire (i.e. the length of all arrays)
"""
def NextCriter(self,crit : int,num : int=0) -> int:
"""
For a given criter, returns the rank of the vertex which follows <num> and has the same status. 0 if no more Acts as an iterator, starts on the first one Criters are: 0: same vertex (status 0) 1: a solution exists (status >= 0) 2: same coords (i.e. same params) (status 0 1 2) 3: same coods but not same vertex (status 1 2) 4: redefined coords (status 3 4 5) -1: no solution (status -1)
"""
def NextStatus(self,stat : int,num : int=0) -> int:
"""
For a given status, returns the rank of the vertex which follows <num> and has the same status. 0 if no more Acts as an iterator, starts on the first one
"""
def Position(self,num : int) -> OCP.gp.gp_XYZ:
"""
None
"""
def Precision(self) -> float:
"""
Returns precision value used in analysis
"""
def SetClose(self,num : int) -> None:
"""
Records status "Close Coords" (at the Precision of <me>)
"""
def SetDisjoined(self,num : int) -> None:
"""
<num> cannot be said as same vertex
"""
def SetEnd(self,num : int,pos : OCP.gp.gp_XYZ,ufol : float) -> None:
"""
<num> is the End of preceding Edge, and its projection on the following one lies on it at the Precision of <me> <ufol> gives the parameter on the following edge
"""
def SetInters(self,num : int,pos : OCP.gp.gp_XYZ,upre : float,ufol : float) -> None:
"""
<num> is the Intersection of both Edges <upre> is the parameter on preceding edge, <ufol> on following edge
"""
def SetPrecision(self,preci : float) -> None:
"""
Sets the precision for work Analysing: for each Vertex, comparison between the end of the preceding edge and the start of the following edge Each Vertex rank corresponds to the End Vertex of the Edge of same rank, in the ShapeExtend_WireData. I.E. for Vertex <num>, Edge <num> is the preceding one, <num+1> is the following one
"""
def SetSameCoords(self,num : int) -> None:
"""
Records status "Same Coords" (at the Vertices Tolerances)
"""
def SetSameVertex(self,num : int) -> None:
"""
Records status "Same Vertex" (logically) on Vertex <num>
"""
def SetStart(self,num : int,pos : OCP.gp.gp_XYZ,upre : float) -> None:
"""
<num> is the Start of following Edge, its projection on the preceding one lies on it at the Precision of <me> <upre> gives the parameter on the preceding edge
"""
def Status(self,num : int) -> int:
"""
Returns the recorded status for a vertex More detail by method Data
"""
def UFollowing(self,num : int) -> float:
"""
None
"""
def UPrevious(self,num : int) -> float:
"""
None
"""
def WireData(self) -> OCP.ShapeExtend.ShapeExtend_WireData:
"""
Returns analyzed wire
"""
def __init__(self) -> None: ...
pass
|