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
|
import OCP.BRepTools
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.TopoDS
import OCP.TopAbs
import OCP.TColgp
import OCP.Poly
import OCP.OSD
import OCP.Standard
import OCP.gp
import OCP.BRep
import io
import OCP.Bnd
import OCP.TCollection
import OCP.GeomAbs
__all__ = [
"BRepTools",
"BRepTools_Modification",
"BRepTools_GTrsfModification",
"BRepTools_History",
"BRepTools_MapOfVertexPnt2d",
"BRepTools_CopyModification",
"BRepTools_Modifier",
"BRepTools_NurbsConvertModification",
"BRepTools_PurgeLocations",
"BRepTools_Quilt",
"BRepTools_ReShape",
"BRepTools_ShapeSet",
"BRepTools_Substitution",
"BRepTools_TrsfModification",
"BRepTools_WireExplorer"
]
class BRepTools():
"""
The BRepTools package provides utilities for BRep data structures.
"""
@staticmethod
def ActivateTriangulation_s(theShape : OCP.TopoDS.TopoDS_Shape,theTriangulationIdx : int,theToActivateStrictly : bool=False) -> bool:
"""
Activates triangulation data for each face of the shape from some deferred storage using specified shared input file system
"""
@staticmethod
@overload
def AddUVBounds_s(F : OCP.TopoDS.TopoDS_Face,B : OCP.Bnd.Bnd_Box2d) -> None:
"""
Adds to the box <B> the bounding values in the parametric space of F.
Adds to the box <B> the bounding values of the wire in the parametric space of F.
Adds to the box <B> the bounding values of the edge in the parametric space of F.
"""
@staticmethod
@overload
def AddUVBounds_s(F : OCP.TopoDS.TopoDS_Face,E : OCP.TopoDS.TopoDS_Edge,B : OCP.Bnd.Bnd_Box2d) -> None: ...
@staticmethod
@overload
def AddUVBounds_s(F : OCP.TopoDS.TopoDS_Face,W : OCP.TopoDS.TopoDS_Wire,B : OCP.Bnd.Bnd_Box2d) -> None: ...
@staticmethod
def CheckLocations_s(theS : OCP.TopoDS.TopoDS_Shape,theProblemShapes : OCP.TopTools.TopTools_ListOfShape) -> None:
"""
Check all locations of shape according criterium: aTrsf.IsNegative() || (Abs(Abs(aTrsf.ScaleFactor()) - 1.) > TopLoc_Location::ScalePrec()) All sub-shapes having such locations are put in list theProblemShapes
"""
@staticmethod
def CleanGeometry_s(theShape : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Removes geometry (curves and surfaces) from all edges and faces of the shape
"""
@staticmethod
def Clean_s(theShape : OCP.TopoDS.TopoDS_Shape,theForce : bool=False) -> None:
"""
Removes all cached polygonal representation of the shape, i.e. the triangulations of the faces of <S> and polygons on triangulations and polygons 3d of the edges. In case polygonal representation is the only available representation for the shape (shape does not have geometry) it is not removed.
"""
@staticmethod
@overload
def Compare_s(V1 : OCP.TopoDS.TopoDS_Vertex,V2 : OCP.TopoDS.TopoDS_Vertex) -> bool:
"""
Returns True if the distance between the two vertices is lower than their tolerance.
Returns True if the distance between the two edges is lower than their tolerance.
"""
@staticmethod
@overload
def Compare_s(E1 : OCP.TopoDS.TopoDS_Edge,E2 : OCP.TopoDS.TopoDS_Edge) -> bool: ...
@staticmethod
def DetectClosedness_s(theFace : OCP.TopoDS.TopoDS_Face) -> tuple[bool, bool]:
"""
Detect closedness of face in U and V directions
"""
@staticmethod
def Dump_s(Sh : OCP.TopoDS.TopoDS_Shape,S : io.BytesIO) -> None:
"""
Dumps the topological structure and the geometry of <Sh> on the stream <S>.
"""
@staticmethod
def EvalAndUpdateTol_s(theE : OCP.TopoDS.TopoDS_Edge,theC3d : OCP.Geom.Geom_Curve,theC2d : OCP.Geom2d.Geom2d_Curve,theS : OCP.Geom.Geom_Surface,theF : float,theL : float) -> float:
"""
Evals real tolerance of edge <theE>. <theC3d>, <theC2d>, <theS>, <theF>, <theL> are correspondently 3d curve of edge, 2d curve on surface <theS> and rang of edge If calculated tolerance is more then current edge tolerance, edge is updated. Method returns actual tolerance of edge
"""
@staticmethod
def IsReallyClosed_s(E : OCP.TopoDS.TopoDS_Edge,F : OCP.TopoDS.TopoDS_Face) -> bool:
"""
Verifies that the edge <E> is found two times on the face <F> before calling BRep_Tool::IsClosed.
"""
@staticmethod
def LoadAllTriangulations_s(theShape : OCP.TopoDS.TopoDS_Shape,theFileSystem : OCP.OSD.OSD_FileSystem=None) -> bool:
"""
Loads all available triangulations for each face of the shape from some deferred storage using specified shared input file system
"""
@staticmethod
def LoadTriangulation_s(theShape : OCP.TopoDS.TopoDS_Shape,theTriangulationIdx : int=-1,theToSetAsActive : bool=False,theFileSystem : OCP.OSD.OSD_FileSystem=None) -> bool:
"""
Loads triangulation data for each face of the shape from some deferred storage using specified shared input file system
"""
@staticmethod
def Map3DEdges_s(S : OCP.TopoDS.TopoDS_Shape,M : OCP.TopTools.TopTools_IndexedMapOfShape) -> None:
"""
Stores in the map <M> all the 3D topology edges of <S>.
"""
@staticmethod
def OriEdgeInFace_s(theEdge : OCP.TopoDS.TopoDS_Edge,theFace : OCP.TopoDS.TopoDS_Face) -> OCP.TopAbs.TopAbs_Orientation:
"""
returns the cumul of the orientation of <Edge> and thc containing wire in <Face>
"""
@staticmethod
def OuterWire_s(F : OCP.TopoDS.TopoDS_Face) -> OCP.TopoDS.TopoDS_Wire:
"""
Returns the outer most wire of <F>. Returns a Null wire if <F> has no wires.
"""
@staticmethod
@overload
def Read_s(Sh : OCP.TopoDS.TopoDS_Shape,File : str,B : OCP.BRep.BRep_Builder,theProgress : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> bool:
"""
Reads a Shape from <S> in returns it in <Sh>. <B> is used to build the shape.
Reads a Shape from <File>, returns it in <Sh>. <B> is used to build the shape.
"""
@staticmethod
@overload
def Read_s(Sh : OCP.TopoDS.TopoDS_Shape,S : io.BytesIO,B : OCP.BRep.BRep_Builder,theProgress : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> None: ...
@staticmethod
def RemoveInternals_s(theS : OCP.TopoDS.TopoDS_Shape,theForce : bool=False) -> None:
"""
Removes internal sub-shapes from the shape. The check on internal status is based on orientation of sub-shapes, classification is not performed. Before removal of internal sub-shapes the algorithm checks if such removal is not going to break topological connectivity between sub-shapes. The flag <theForce> if set to true disables the connectivity check and clears the given shape from all sub-shapes with internal orientation.
"""
@staticmethod
def RemoveUnusedPCurves_s(S : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Removes all the pcurves of the edges of <S> that refer to surfaces not belonging to any face of <S>
"""
@staticmethod
def Triangulation_s(theShape : OCP.TopoDS.TopoDS_Shape,theLinDefl : float,theToCheckFreeEdges : bool=False) -> bool:
"""
Verifies that each Face from the shape has got a triangulation with a deflection smaller or equal to specified one and the Edges a discretization on this triangulation.
"""
@staticmethod
@overload
def UVBounds_s(F : OCP.TopoDS.TopoDS_Face) -> tuple[float, float, float, float]:
"""
Returns in UMin, UMax, VMin, VMax the bounding values in the parametric space of F.
Returns in UMin, UMax, VMin, VMax the bounding values of the wire in the parametric space of F.
Returns in UMin, UMax, VMin, VMax the bounding values of the edge in the parametric space of F.
"""
@staticmethod
@overload
def UVBounds_s(F : OCP.TopoDS.TopoDS_Face,E : OCP.TopoDS.TopoDS_Edge) -> tuple[float, float, float, float]: ...
@staticmethod
@overload
def UVBounds_s(F : OCP.TopoDS.TopoDS_Face,W : OCP.TopoDS.TopoDS_Wire) -> tuple[float, float, float, float]: ...
@staticmethod
def UnloadAllTriangulations_s(theShape : OCP.TopoDS.TopoDS_Shape) -> bool:
"""
Releases all available triangulations for each face of the shape if there is deferred storage to load them later
"""
@staticmethod
def UnloadTriangulation_s(theShape : OCP.TopoDS.TopoDS_Shape,theTriangulationIdx : int=-1) -> bool:
"""
Releases triangulation data for each face of the shape if there is deferred storage to load it later
"""
@staticmethod
def UpdateFaceUVPoints_s(theF : OCP.TopoDS.TopoDS_Face) -> None:
"""
For each edge of the face <F> reset the UV points to the bounding points of the parametric curve of the edge on the face.
"""
@staticmethod
@overload
def Update_s(F : OCP.TopoDS.TopoDS_Face) -> None:
"""
Update a vertex (nothing is done)
Update an edge, compute 2d bounding boxes.
Update a wire (nothing is done)
Update a Face, update UV points.
Update a shell (nothing is done)
Update a solid (nothing is done)
Update a composite solid (nothing is done)
Update a compound (nothing is done)
Update a shape, call the correct update.
"""
@staticmethod
@overload
def Update_s(C : OCP.TopoDS.TopoDS_Compound) -> None: ...
@staticmethod
@overload
def Update_s(V : OCP.TopoDS.TopoDS_Vertex) -> None: ...
@staticmethod
@overload
def Update_s(W : OCP.TopoDS.TopoDS_Wire) -> None: ...
@staticmethod
@overload
def Update_s(E : OCP.TopoDS.TopoDS_Edge) -> None: ...
@staticmethod
@overload
def Update_s(S : OCP.TopoDS.TopoDS_Shape) -> None: ...
@staticmethod
@overload
def Update_s(C : OCP.TopoDS.TopoDS_CompSolid) -> None: ...
@staticmethod
@overload
def Update_s(S : OCP.TopoDS.TopoDS_Shell) -> None: ...
@staticmethod
@overload
def Update_s(S : OCP.TopoDS.TopoDS_Solid) -> None: ...
@staticmethod
@overload
def Write_s(theShape : OCP.TopoDS.TopoDS_Shape,theStream : io.BytesIO,theProgress : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> None:
"""
Writes the shape to the stream in an ASCII format TopTools_FormatVersion_VERSION_1. This alias writes shape with triangulation data.
Writes the shape to the stream in an ASCII format of specified version.
Writes the shape to the file in an ASCII format TopTools_FormatVersion_VERSION_1. This alias writes shape with triangulation data.
Writes the shape to the file in an ASCII format of specified version.
"""
@staticmethod
@overload
def Write_s(theShape : OCP.TopoDS.TopoDS_Shape,theFile : str,theProgress : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> bool: ...
@staticmethod
@overload
def Write_s(theShape : OCP.TopoDS.TopoDS_Shape,theFile : str,theWithTriangles : bool,theWithNormals : bool,theVersion : OCP.TopTools.TopTools_FormatVersion,theProgress : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> bool: ...
@staticmethod
@overload
def Write_s(theShape : OCP.TopoDS.TopoDS_Shape,theStream : io.BytesIO,theWithTriangles : bool,theWithNormals : bool,theVersion : OCP.TopTools.TopTools_FormatVersion,theProgress : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> None: ...
def __init__(self) -> None: ...
pass
class BRepTools_Modification(OCP.Standard.Standard_Transient):
"""
Defines geometric modifications to a shape, i.e. changes to faces, edges and vertices.Defines geometric modifications to a shape, i.e. changes to faces, edges and vertices.Defines geometric modifications to a shape, i.e. changes to faces, edges and vertices.
"""
def Continuity(self,E : OCP.TopoDS.TopoDS_Edge,F1 : OCP.TopoDS.TopoDS_Face,F2 : OCP.TopoDS.TopoDS_Face,NewE : OCP.TopoDS.TopoDS_Edge,NewF1 : OCP.TopoDS.TopoDS_Face,NewF2 : OCP.TopoDS.TopoDS_Face) -> OCP.GeomAbs.GeomAbs_Shape:
"""
Returns the continuity of <NewE> between <NewF1> and <NewF2>. <NewE> is the new edge created from <E>. <NewF1> (resp. <NewF2>) is the new face created from <F1> (resp. <F2>).
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def NewCurve(self,E : OCP.TopoDS.TopoDS_Edge,C : OCP.Geom.Geom_Curve,L : OCP.TopLoc.TopLoc_Location,Tol : float) -> bool:
"""
Returns true if the edge, E, has been modified. If the edge has been modified: - C is the new geometry associated with the edge, - L is its new location, and - Tol is the new tolerance. If the edge has not been modified, this function returns false, and the values of C, L and Tol are not significant.
"""
def NewCurve2d(self,E : OCP.TopoDS.TopoDS_Edge,F : OCP.TopoDS.TopoDS_Face,NewE : OCP.TopoDS.TopoDS_Edge,NewF : OCP.TopoDS.TopoDS_Face,C : OCP.Geom2d.Geom2d_Curve,Tol : float) -> bool:
"""
Returns true if the edge, E, has a new curve on surface on the face, F. If a new curve exists: - C is the new geometry of the edge, - L is the new location, and - Tol is the new tolerance. NewE is the new edge created from E, and NewF is the new face created from F. If there is no new curve on the face, this function returns false, and the values of C, L and Tol are not significant.
"""
def NewParameter(self,V : OCP.TopoDS.TopoDS_Vertex,E : OCP.TopoDS.TopoDS_Edge,P : float,Tol : float) -> bool:
"""
Returns true if the vertex V has a new parameter on the edge E. If a new parameter exists: - P is the parameter, and - Tol is the new tolerance. If there is no new parameter this function returns false, and the values of P and Tol are not significant.
"""
def NewPoint(self,V : OCP.TopoDS.TopoDS_Vertex,P : OCP.gp.gp_Pnt,Tol : float) -> bool:
"""
Returns true if the vertex V has been modified. If V has been modified: - P is the new geometry of the vertex, and - Tol is the new tolerance. If the vertex has not been modified this function returns false, and the values of P and Tol are not significant.
"""
def NewPolygon(self,E : OCP.TopoDS.TopoDS_Edge,P : OCP.Poly.Poly_Polygon3D) -> bool:
"""
Returns true if the edge has been modified according to changed polygon. If the edge has been modified: - P is a new polygon
"""
def NewPolygonOnTriangulation(self,E : OCP.TopoDS.TopoDS_Edge,F : OCP.TopoDS.TopoDS_Face,P : OCP.Poly.Poly_PolygonOnTriangulation) -> bool:
"""
Returns true if the edge has been modified according to changed polygon on triangulation. If the edge has been modified: - P is a new polygon on triangulation
"""
def NewSurface(self,F : OCP.TopoDS.TopoDS_Face,S : OCP.Geom.Geom_Surface,L : OCP.TopLoc.TopLoc_Location,Tol : float,RevWires : bool,RevFace : bool) -> bool:
"""
Returns true if the face, F, has been modified. If the face has been modified: - S is the new geometry of the face, - L is its new location, and - Tol is the new tolerance. The flag, RevWires, is set to true when the modification reverses the normal of the surface, (i.e. the wires have to be reversed). The flag, RevFace, is set to true if the orientation of the modified face changes in the shells which contain it. If the face has not been modified this function returns false, and the values of S, L, Tol, RevWires and RevFace are not significant.
"""
def NewTriangulation(self,F : OCP.TopoDS.TopoDS_Face,T : OCP.Poly.Poly_Triangulation) -> bool:
"""
Returns true if the face has been modified according to changed triangulation. If the face has been modified: - T is a new triangulation on the face
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepTools_GTrsfModification(BRepTools_Modification, OCP.Standard.Standard_Transient):
"""
Defines a modification of the geometry by a GTrsf from gp. All methods return True and transform the geometry.Defines a modification of the geometry by a GTrsf from gp. All methods return True and transform the geometry.Defines a modification of the geometry by a GTrsf from gp. All methods return True and transform the geometry.
"""
def Continuity(self,E : OCP.TopoDS.TopoDS_Edge,F1 : OCP.TopoDS.TopoDS_Face,F2 : OCP.TopoDS.TopoDS_Face,NewE : OCP.TopoDS.TopoDS_Edge,NewF1 : OCP.TopoDS.TopoDS_Face,NewF2 : OCP.TopoDS.TopoDS_Face) -> OCP.GeomAbs.GeomAbs_Shape:
"""
Returns the continuity of <NewE> between <NewF1> and <NewF2>.
"""
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 GTrsf(self) -> OCP.gp.gp_GTrsf:
"""
Gives an access on the GTrsf.
"""
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 NewCurve(self,E : OCP.TopoDS.TopoDS_Edge,C : OCP.Geom.Geom_Curve,L : OCP.TopLoc.TopLoc_Location,Tol : float) -> bool:
"""
Returns Standard_True if the edge <E> has been modified. In this case, <C> is the new geometric support of the edge, <L> the new location, <Tol> the new tolerance. Otherwise, returns Standard_False, and <C>, <L>, <Tol> are not significant.
"""
def NewCurve2d(self,E : OCP.TopoDS.TopoDS_Edge,F : OCP.TopoDS.TopoDS_Face,NewE : OCP.TopoDS.TopoDS_Edge,NewF : OCP.TopoDS.TopoDS_Face,C : OCP.Geom2d.Geom2d_Curve,Tol : float) -> bool:
"""
Returns Standard_True if the edge <E> has a new curve on surface on the face <F>.In this case, <C> is the new geometric support of the edge, <L> the new location, <Tol> the new tolerance. Otherwise, returns Standard_False, and <C>, <L>, <Tol> are not significant.
"""
def NewParameter(self,V : OCP.TopoDS.TopoDS_Vertex,E : OCP.TopoDS.TopoDS_Edge,P : float,Tol : float) -> bool:
"""
Returns Standard_True if the Vertex <V> has a new parameter on the edge <E>. In this case, <P> is the parameter, <Tol> the new tolerance. Otherwise, returns Standard_False, and <P>, <Tol> are not significant.
"""
def NewPoint(self,V : OCP.TopoDS.TopoDS_Vertex,P : OCP.gp.gp_Pnt,Tol : float) -> bool:
"""
Returns Standard_True if the vertex <V> has been modified. In this case, <P> is the new geometric support of the vertex, <Tol> the new tolerance. Otherwise, returns Standard_False, and <P>, <Tol> are not significant.
"""
def NewPolygon(self,theEdge : OCP.TopoDS.TopoDS_Edge,thePoly : OCP.Poly.Poly_Polygon3D) -> bool:
"""
Returns true if the edge has been modified according to changed polygon. If the edge has been modified: - thePoly is a new polygon
"""
def NewPolygonOnTriangulation(self,theEdge : OCP.TopoDS.TopoDS_Edge,theFace : OCP.TopoDS.TopoDS_Face,thePoly : OCP.Poly.Poly_PolygonOnTriangulation) -> bool:
"""
Returns true if the edge has been modified according to changed polygon on triangulation. If the edge has been modified: - thePoly is a new polygon on triangulation
"""
def NewSurface(self,F : OCP.TopoDS.TopoDS_Face,S : OCP.Geom.Geom_Surface,L : OCP.TopLoc.TopLoc_Location,Tol : float,RevWires : bool,RevFace : bool) -> bool:
"""
Returns Standard_True if the face <F> has been modified. In this case, <S> is the new geometric support of the face, <L> the new location,<Tol> the new tolerance.<RevWires> has to be set to Standard_True when the modification reverses the normal of the surface.(the wires have to be reversed). <RevFace> has to be set to Standard_True if the orientation of the modified face changes in the shells which contain it. -- Here, <RevFace> will return Standard_True if the -- gp_Trsf is negative.
"""
def NewTriangulation(self,theFace : OCP.TopoDS.TopoDS_Face,theTri : OCP.Poly.Poly_Triangulation) -> bool:
"""
Returns true if the face has been modified according to changed triangulation. If the face has been modified: - theTri is a new triangulation on the face
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self,T : OCP.gp.gp_GTrsf) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepTools_History(OCP.Standard.Standard_Transient):
"""
The history keeps the following relations between the input shapes (S1, ..., Sm) and output shapes (T1, ..., Tn): 1) an output shape Tj is generated from an input shape Si: Tj <= G(Si); 2) a output shape Tj is modified from an input shape Si: Tj <= M(Si); 3) an input shape (Si) is removed: R(Si) == 1.The history keeps the following relations between the input shapes (S1, ..., Sm) and output shapes (T1, ..., Tn): 1) an output shape Tj is generated from an input shape Si: Tj <= G(Si); 2) a output shape Tj is modified from an input shape Si: Tj <= M(Si); 3) an input shape (Si) is removed: R(Si) == 1.The history keeps the following relations between the input shapes (S1, ..., Sm) and output shapes (T1, ..., Tn): 1) an output shape Tj is generated from an input shape Si: Tj <= G(Si); 2) a output shape Tj is modified from an input shape Si: Tj <= M(Si); 3) an input shape (Si) is removed: R(Si) == 1.
"""
class TRelationType_e():
"""
The types of the historical relations.
Members:
TRelationType_Removed
TRelationType_Generated
TRelationType_Modified
"""
def __eq__(self,other : object) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
def __index__(self) -> int: ...
def __init__(self,value : int) -> None: ...
def __int__(self) -> int: ...
def __ne__(self,other : object) -> bool: ...
def __repr__(self) -> str: ...
def __setstate__(self,state : int) -> None: ...
def __str__(self) -> str: ...
@property
def name(self) -> None:
"""
:type: None
"""
@property
def value(self) -> int:
"""
:type: int
"""
TRelationType_Generated: OCP.BRepTools.TRelationType_e # value = <TRelationType_e.TRelationType_Generated: 1>
TRelationType_Modified: OCP.BRepTools.TRelationType_e # value = <TRelationType_e.TRelationType_Modified: 2>
TRelationType_Removed: OCP.BRepTools.TRelationType_e # value = <TRelationType_e.TRelationType_Removed: 0>
__entries: dict # value = {'TRelationType_Removed': (<TRelationType_e.TRelationType_Removed: 0>, None), 'TRelationType_Generated': (<TRelationType_e.TRelationType_Generated: 1>, None), 'TRelationType_Modified': (<TRelationType_e.TRelationType_Modified: 2>, None)}
__members__: dict # value = {'TRelationType_Removed': <TRelationType_e.TRelationType_Removed: 0>, 'TRelationType_Generated': <TRelationType_e.TRelationType_Generated: 1>, 'TRelationType_Modified': <TRelationType_e.TRelationType_Modified: 2>}
pass
def AddGenerated(self,theInitial : OCP.TopoDS.TopoDS_Shape,theGenerated : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Set the second shape as generated one from the first shape.
"""
def AddModified(self,theInitial : OCP.TopoDS.TopoDS_Shape,theModified : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Set the second shape as modified one from the first shape.
"""
def Clear(self) -> None:
"""
Clears the history.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def Dump(self,theS : io.BytesIO) -> None:
"""
Prints the brief description of the history into a stream
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def Generated(self,theInitial : OCP.TopoDS.TopoDS_Shape) -> OCP.TopTools.TopTools_ListOfShape:
"""
Returns all shapes generated from the shape.
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def HasGenerated(self) -> bool:
"""
Returns 'true' if there any shapes with Generated elements present
"""
def HasModified(self) -> bool:
"""
Returns 'true' if there any Modified shapes present
"""
def HasRemoved(self) -> bool:
"""
Returns 'true' if there any removed shapes present
"""
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 IsRemoved(self,theInitial : OCP.TopoDS.TopoDS_Shape) -> bool:
"""
Returns 'true' if the shape is removed.
"""
@staticmethod
def IsSupportedType_s(theShape : OCP.TopoDS.TopoDS_Shape) -> bool:
"""
Returns 'true' if the type of the shape is supported by the history.
"""
def Merge(self,theHistory23 : BRepTools_History) -> None:
"""
Merges the next history to this history.
Merges the next history to this history.
"""
def Modified(self,theInitial : OCP.TopoDS.TopoDS_Shape) -> OCP.TopTools.TopTools_ListOfShape:
"""
Returns all shapes modified from the shape.
"""
def Remove(self,theRemoved : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Set the shape as removed one.
"""
def ReplaceGenerated(self,theInitial : OCP.TopoDS.TopoDS_Shape,theGenerated : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Set the second shape as the only generated one from the first one.
"""
def ReplaceModified(self,theInitial : OCP.TopoDS.TopoDS_Shape,theModified : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Set the second shape as the only modified one from the first one.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
TRelationType_Generated: OCP.BRepTools.TRelationType_e # value = <TRelationType_e.TRelationType_Generated: 1>
TRelationType_Modified: OCP.BRepTools.TRelationType_e # value = <TRelationType_e.TRelationType_Modified: 2>
TRelationType_Removed: OCP.BRepTools.TRelationType_e # value = <TRelationType_e.TRelationType_Removed: 0>
pass
class BRepTools_MapOfVertexPnt2d(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 : BRepTools_MapOfVertexPnt2d) -> BRepTools_MapOfVertexPnt2d:
"""
Assignment. This method does not change the internal allocator.
"""
def Bind(self,theKey : OCP.TopoDS.TopoDS_Shape,theItem : OCP.TColgp.TColgp_SequenceOfPnt2d) -> bool:
"""
Bind binds Item to Key in map.
"""
def Bound(self,theKey : OCP.TopoDS.TopoDS_Shape,theItem : OCP.TColgp.TColgp_SequenceOfPnt2d) -> OCP.TColgp.TColgp_SequenceOfPnt2d:
"""
Bound binds Item to Key in map.
"""
def ChangeFind(self,theKey : OCP.TopoDS.TopoDS_Shape) -> OCP.TColgp.TColgp_SequenceOfPnt2d:
"""
ChangeFind returns mofifiable Item by Key. Raises if Key was not bound
"""
def ChangeSeek(self,theKey : OCP.TopoDS.TopoDS_Shape) -> OCP.TColgp.TColgp_SequenceOfPnt2d:
"""
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 : BRepTools_MapOfVertexPnt2d) -> 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.TColgp.TColgp_SequenceOfPnt2d) -> 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.TColgp.TColgp_SequenceOfPnt2d: ...
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.TColgp.TColgp_SequenceOfPnt2d:
"""
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.TColgp.TColgp_SequenceOfPnt2d: ...
@overload
def __init__(self,theOther : BRepTools_MapOfVertexPnt2d) -> None: ...
@overload
def __init__(self,theNbBuckets : int,theAllocator : OCP.NCollection.NCollection_BaseAllocator=None) -> None: ...
@overload
def __init__(self) -> None: ...
def __iter__(self) -> Iterator[OCP.TColgp.TColgp_SequenceOfPnt2d]: ...
def __len__(self) -> int: ...
pass
class BRepTools_CopyModification(BRepTools_Modification, OCP.Standard.Standard_Transient):
"""
Tool class implementing necessary functionality for copying geometry and triangulation.Tool class implementing necessary functionality for copying geometry and triangulation.Tool class implementing necessary functionality for copying geometry and triangulation.
"""
def Continuity(self,theEdge : OCP.TopoDS.TopoDS_Edge,theFace1 : OCP.TopoDS.TopoDS_Face,theFace2 : OCP.TopoDS.TopoDS_Face,theNewEdge : OCP.TopoDS.TopoDS_Edge,theNewFace1 : OCP.TopoDS.TopoDS_Face,theNewFace2 : OCP.TopoDS.TopoDS_Face) -> OCP.GeomAbs.GeomAbs_Shape:
"""
Returns the continuity of theNewEdge between theNewFace1 and theNewFace2.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def NewCurve(self,theEdge : OCP.TopoDS.TopoDS_Edge,theCurve : OCP.Geom.Geom_Curve,theLoc : OCP.TopLoc.TopLoc_Location,theTol : float) -> bool:
"""
Returns true if theEdge has been modified. If the edge has been modified: - theCurve is the new geometric support of the edge, - theLoc is the new location, and - theTol is the new tolerance. If the edge has not been modified, this function returns false, and the values of theCurve, theLoc and theTol are not significant.
"""
def NewCurve2d(self,theEdge : OCP.TopoDS.TopoDS_Edge,theFace : OCP.TopoDS.TopoDS_Face,theNewEdge : OCP.TopoDS.TopoDS_Edge,theNewFace : OCP.TopoDS.TopoDS_Face,theCurve : OCP.Geom2d.Geom2d_Curve,theTol : float) -> bool:
"""
Returns true if theEdge has a new curve on surface on theFace. If a new curve exists: - theCurve is the new geometric support of the edge, - theTol the new tolerance. If no new curve exists, this function returns false, and the values of theCurve and theTol are not significant.
"""
def NewParameter(self,theVertex : OCP.TopoDS.TopoDS_Vertex,theEdge : OCP.TopoDS.TopoDS_Edge,thePnt : float,theTol : float) -> bool:
"""
Returns true if theVertex has a new parameter on theEdge. If a new parameter exists: - thePnt is the parameter, and - theTol is the new tolerance. If no new parameter exists, this function returns false, and the values of thePnt and theTol are not significant.
"""
def NewPoint(self,theVertex : OCP.TopoDS.TopoDS_Vertex,thePnt : OCP.gp.gp_Pnt,theTol : float) -> bool:
"""
Returns true if theVertex has been modified. If the vertex has been modified: - thePnt is the new geometry of the vertex, and - theTol is the new tolerance. If the vertex has not been modified this function returns false, and the values of thePnt and theTol are not significant.
"""
def NewPolygon(self,theEdge : OCP.TopoDS.TopoDS_Edge,thePoly : OCP.Poly.Poly_Polygon3D) -> bool:
"""
Returns true if the edge has been modified according to changed polygon. If the edge has been modified: - thePoly is a new polygon
"""
def NewPolygonOnTriangulation(self,theEdge : OCP.TopoDS.TopoDS_Edge,theFace : OCP.TopoDS.TopoDS_Face,thePoly : OCP.Poly.Poly_PolygonOnTriangulation) -> bool:
"""
Returns true if the edge has been modified according to changed polygon on triangulation. If the edge has been modified: - thePoly is a new polygon on triangulation
"""
def NewSurface(self,theFace : OCP.TopoDS.TopoDS_Face,theSurf : OCP.Geom.Geom_Surface,theLoc : OCP.TopLoc.TopLoc_Location,theTol : float,theRevWires : bool,theRevFace : bool) -> bool:
"""
Returns true if theFace has been modified. If the face has been modified: - theSurf is the new geometry of the face, - theLoc is its new location, and - theTol is the new tolerance. theRevWires, theRevFace are always set to false, because the orientaion is not changed.
"""
def NewTriangulation(self,theFace : OCP.TopoDS.TopoDS_Face,theTri : OCP.Poly.Poly_Triangulation) -> bool:
"""
Returns true if the face has been modified according to changed triangulation. If the face has been modified: - theTri is a new triangulation on the face
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self,theCopyGeom : bool=True,theCopyMesh : bool=True) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepTools_Modifier():
"""
Performs geometric modifications on a shape.
"""
def Init(self,S : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Initializes the modifier with the shape <S>.
"""
def IsDone(self) -> bool:
"""
Returns Standard_True if the modification has been computed successfully.
Returns Standard_True if the modification has been computed successfully.
"""
def IsMutableInput(self) -> bool:
"""
Returns the current mutable input state
"""
def ModifiedShape(self,S : OCP.TopoDS.TopoDS_Shape) -> OCP.TopoDS.TopoDS_Shape:
"""
Returns the modified shape corresponding to <S>.
Returns the modified shape corresponding to <S>.
"""
def Perform(self,M : BRepTools_Modification,theProgress : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> None:
"""
Performs the modifications described by <M>.
"""
def SetMutableInput(self,theMutableInput : bool) -> None:
"""
Sets the mutable input state If true then the input (original) shape can be modified during modification process
"""
@overload
def __init__(self,S : OCP.TopoDS.TopoDS_Shape) -> None: ...
@overload
def __init__(self,S : OCP.TopoDS.TopoDS_Shape,M : BRepTools_Modification) -> None: ...
@overload
def __init__(self,theMutableInput : bool=False) -> None: ...
pass
class BRepTools_NurbsConvertModification(BRepTools_CopyModification, BRepTools_Modification, OCP.Standard.Standard_Transient):
"""
Defines a modification of the geometry by a Trsf from gp. All methods return True and transform the geometry.Defines a modification of the geometry by a Trsf from gp. All methods return True and transform the geometry.Defines a modification of the geometry by a Trsf from gp. All methods return True and transform the geometry.
"""
def Continuity(self,E : OCP.TopoDS.TopoDS_Edge,F1 : OCP.TopoDS.TopoDS_Face,F2 : OCP.TopoDS.TopoDS_Face,NewE : OCP.TopoDS.TopoDS_Edge,NewF1 : OCP.TopoDS.TopoDS_Face,NewF2 : OCP.TopoDS.TopoDS_Face) -> OCP.GeomAbs.GeomAbs_Shape:
"""
Returns the continuity of <NewE> between <NewF1> and <NewF2>.
"""
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 GetUpdatedEdges(self) -> OCP.TopTools.TopTools_ListOfShape:
"""
None
"""
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 NewCurve(self,E : OCP.TopoDS.TopoDS_Edge,C : OCP.Geom.Geom_Curve,L : OCP.TopLoc.TopLoc_Location,Tol : float) -> bool:
"""
Returns Standard_True if the edge <E> has been modified. In this case, <C> is the new geometric support of the edge, <L> the new location, <Tol> the new tolerance. Otherwise, returns Standard_False, and <C>, <L>, <Tol> are not significant.
"""
def NewCurve2d(self,E : OCP.TopoDS.TopoDS_Edge,F : OCP.TopoDS.TopoDS_Face,NewE : OCP.TopoDS.TopoDS_Edge,NewF : OCP.TopoDS.TopoDS_Face,C : OCP.Geom2d.Geom2d_Curve,Tol : float) -> bool:
"""
Returns Standard_True if the edge <E> has a new curve on surface on the face <F>.In this case, <C> is the new geometric support of the edge, <L> the new location, <Tol> the new tolerance. Otherwise, returns Standard_False, and <C>, <L>, <Tol> are not significant.
"""
def NewParameter(self,V : OCP.TopoDS.TopoDS_Vertex,E : OCP.TopoDS.TopoDS_Edge,P : float,Tol : float) -> bool:
"""
Returns Standard_True if the Vertex <V> has a new parameter on the edge <E>. In this case, <P> is the parameter, <Tol> the new tolerance. Otherwise, returns Standard_False, and <P>, <Tol> are not significant.
"""
def NewPoint(self,V : OCP.TopoDS.TopoDS_Vertex,P : OCP.gp.gp_Pnt,Tol : float) -> bool:
"""
Returns Standard_True if the vertex <V> has been modified. In this case, <P> is the new geometric support of the vertex, <Tol> the new tolerance. Otherwise, returns Standard_False, and <P>, <Tol> are not significant.
"""
def NewPolygon(self,theEdge : OCP.TopoDS.TopoDS_Edge,thePoly : OCP.Poly.Poly_Polygon3D) -> bool:
"""
Returns true if the edge has been modified according to changed polygon. If the edge has been modified: - thePoly is a new polygon
"""
def NewPolygonOnTriangulation(self,theEdge : OCP.TopoDS.TopoDS_Edge,theFace : OCP.TopoDS.TopoDS_Face,thePoly : OCP.Poly.Poly_PolygonOnTriangulation) -> bool:
"""
Returns true if the edge has been modified according to changed polygon on triangulation. If the edge has been modified: - thePoly is a new polygon on triangulation
"""
def NewSurface(self,F : OCP.TopoDS.TopoDS_Face,S : OCP.Geom.Geom_Surface,L : OCP.TopLoc.TopLoc_Location,Tol : float,RevWires : bool,RevFace : bool) -> bool:
"""
Returns Standard_True if the face <F> has been modified. In this case, <S> is the new geometric support of the face, <L> the new location,<Tol> the new tolerance.<RevWires> has to be set to Standard_True when the modification reverses the normal of the surface.(the wires have to be reversed). <RevFace> has to be set to Standard_True if the orientation of the modified face changes in the shells which contain it. -- Here, <RevFace> will return Standard_True if the -- gp_Trsf is negative.
"""
def NewTriangulation(self,theFace : OCP.TopoDS.TopoDS_Face,theTri : OCP.Poly.Poly_Triangulation) -> bool:
"""
Returns true if the face has been modified according to changed triangulation. If the face has been modified: - theTri is a new triangulation on the face
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepTools_PurgeLocations():
"""
Removes location datums, which satisfy conditions: aTrsf.IsNegative() || (Abs(Abs(aTrsf.ScaleFactor()) - 1.) > TopLoc_Location::ScalePrec()) from all locations of shape and its subshapes
"""
def GetResult(self) -> OCP.TopoDS.TopoDS_Shape:
"""
Returns shape with removed locations.
"""
def IsDone(self) -> bool:
"""
None
"""
def ModifiedShape(self,theInitShape : OCP.TopoDS.TopoDS_Shape) -> OCP.TopoDS.TopoDS_Shape:
"""
Returns modified shape obtained from initial shape.
"""
def Perform(self,theShape : OCP.TopoDS.TopoDS_Shape) -> bool:
"""
Removes all locations correspodingly to criterium from theShape.
"""
def __init__(self) -> None: ...
pass
class BRepTools_Quilt():
"""
A Tool to glue faces at common edges and reconstruct shells.
"""
def Add(self,S : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Add the faces of <S> to the Quilt, the faces containing bounded edges are copied.
"""
@overload
def Bind(self,Vold : OCP.TopoDS.TopoDS_Vertex,Vnew : OCP.TopoDS.TopoDS_Vertex) -> None:
"""
Binds <Enew> to be the new edge instead of <Eold>.
Binds <VNew> to be a new vertex instead of <Vold>.
"""
@overload
def Bind(self,Eold : OCP.TopoDS.TopoDS_Edge,Enew : OCP.TopoDS.TopoDS_Edge) -> None: ...
def Copy(self,S : OCP.TopoDS.TopoDS_Shape) -> OCP.TopoDS.TopoDS_Shape:
"""
Returns the shape substituted to <S> in the Quilt.
"""
def IsCopied(self,S : OCP.TopoDS.TopoDS_Shape) -> bool:
"""
Returns True if <S> has been copied (<S> is a vertex, an edge or a face)
"""
def Shells(self) -> OCP.TopoDS.TopoDS_Shape:
"""
Returns a Compound of shells made from the current set of faces. The shells will be flagged as closed or not closed.
"""
def __init__(self) -> None: ...
pass
class BRepTools_ReShape(OCP.Standard.Standard_Transient):
"""
Rebuilds a Shape by making pre-defined substitutions on some of its componentsRebuilds a Shape by making pre-defined substitutions on some of its componentsRebuilds a Shape by making pre-defined substitutions on some of its components
"""
def Apply(self,theShape : OCP.TopoDS.TopoDS_Shape,theUntil : OCP.TopAbs.TopAbs_ShapeEnum=TopAbs_ShapeEnum.TopAbs_SHAPE) -> OCP.TopoDS.TopoDS_Shape:
"""
Applies the substitutions requests to a shape.
"""
def Clear(self) -> None:
"""
Clears all substitutions requests
"""
@overload
def CopyVertex(self,theV : OCP.TopoDS.TopoDS_Vertex,theNewPos : OCP.gp.gp_Pnt,aTol : float) -> OCP.TopoDS.TopoDS_Vertex:
"""
None
None
"""
@overload
def CopyVertex(self,theV : OCP.TopoDS.TopoDS_Vertex,theTol : float=-1.0) -> 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 History(self) -> BRepTools_History:
"""
Returns the history of the substituted shapes.
"""
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 IsNewShape(self,theShape : OCP.TopoDS.TopoDS_Shape) -> bool:
"""
None
"""
def IsRecorded(self,shape : OCP.TopoDS.TopoDS_Shape) -> bool:
"""
Tells if a shape is recorded for Replace/Remove
"""
def Remove(self,shape : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Sets a request to Remove a Shape whatever the orientation
"""
def Replace(self,shape : OCP.TopoDS.TopoDS_Shape,newshape : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Sets a request to Replace a Shape by a new one.
"""
def Status(self,shape : OCP.TopoDS.TopoDS_Shape,newsh : OCP.TopoDS.TopoDS_Shape,last : bool=False) -> int:
"""
Returns a complete substitution status for a shape 0 : not recorded, <newsh> = original <shape> < 0: to be removed, <newsh> is NULL > 0: to be replaced, <newsh> is a new item If <last> is False, returns status and new shape recorded in the map directly for the shape, if True and status > 0 then recursively searches for the last status and new shape.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def Value(self,shape : OCP.TopoDS.TopoDS_Shape) -> OCP.TopoDS.TopoDS_Shape:
"""
Returns the new value for an individual shape If not recorded, returns the original shape itself If to be Removed, returns a Null Shape Else, returns the replacing item
"""
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
@property
def ModeConsiderLocation(self) -> bool:
"""
:type: bool
"""
@ModeConsiderLocation.setter
def ModeConsiderLocation(self, arg1: bool) -> None:
pass
pass
class BRepTools_ShapeSet(OCP.TopTools.TopTools_ShapeSet):
"""
Contains a Shape and all its subshapes, locations and geometries.
"""
def Add(self,S : OCP.TopoDS.TopoDS_Shape) -> int:
"""
Stores <S> and its sub-shape. Returns the index of <S>. The method AddGeometry is called on each sub-shape.
"""
def AddGeometry(self,S : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Stores the goemetry of <S>.
"""
def AddShapes(self,S1 : OCP.TopoDS.TopoDS_Shape,S2 : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Inserts the shape <S2> in the shape <S1>. This method must be redefined to use the correct builder.
"""
def ChangeLocations(self) -> OCP.TopTools.TopTools_LocationSet:
"""
None
"""
def Check(self,T : OCP.TopAbs.TopAbs_ShapeEnum,S : OCP.TopoDS.TopoDS_Shape) -> None:
"""
None
"""
def Clear(self) -> None:
"""
Clears the content of the set.
"""
@overload
def Dump(self,S : OCP.TopoDS.TopoDS_Shape,OS : io.BytesIO) -> None:
"""
Dumps the content of me on the stream <OS>.
Dumps on <OS> the shape <S>. Dumps the orientation, the index of the TShape and the index of the Location.
"""
@overload
def Dump(self,OS : io.BytesIO) -> None: ...
@overload
def DumpExtent(self,S : OCP.TCollection.TCollection_AsciiString) -> None:
"""
Dumps the number of objects in me on the stream <OS>. (Number of shapes of each type)
Dumps the number of objects in me in the string S (Number of shapes of each type)
"""
@overload
def DumpExtent(self,OS : io.BytesIO) -> io.BytesIO: ...
@overload
def DumpGeometry(self,S : OCP.TopoDS.TopoDS_Shape,OS : io.BytesIO) -> None:
"""
Dumps the geometry of me on the stream <OS>.
Dumps the geometry of <S> on the stream <OS>.
"""
@overload
def DumpGeometry(self,OS : io.BytesIO) -> None: ...
def DumpPolygon3D(self,OS : io.BytesIO) -> None:
"""
Dumps the 3d polygons on the stream <OS>.
"""
def DumpPolygonOnTriangulation(self,OS : io.BytesIO) -> None:
"""
Dumps the polygons on triangulation on the stream <OS>.
"""
def DumpTriangulation(self,OS : io.BytesIO) -> None:
"""
Dumps the triangulation on the stream <OS>.
"""
def FormatNb(self) -> int:
"""
Returns the TopTools_FormatVersion
"""
def Index(self,S : OCP.TopoDS.TopoDS_Shape) -> int:
"""
Returns the index of <S>.
"""
def IsWithNormals(self) -> bool:
"""
Return true if shape should be stored triangulation with normals.
"""
def IsWithTriangles(self) -> bool:
"""
Return true if shape should be stored with triangles.
"""
def Locations(self) -> OCP.TopTools.TopTools_LocationSet:
"""
None
"""
def NbShapes(self) -> int:
"""
Returns number of shapes read from file.
"""
@overload
def Read(self,S : OCP.TopoDS.TopoDS_Shape,IS : io.BytesIO) -> None:
"""
Reads the content of me from the stream <IS>. me is first cleared.
Reads from <IS> a shape and returns it in S.
"""
@overload
def Read(self,IS : io.BytesIO,theProgress : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> None: ...
@overload
def ReadGeometry(self,T : OCP.TopAbs.TopAbs_ShapeEnum,IS : io.BytesIO,S : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Reads the geometry of me from the stream <IS>.
Reads the geometry of a shape of type <T> from the stream <IS> and returns it in <S>.
"""
@overload
def ReadGeometry(self,IS : io.BytesIO,theProgress : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> None: ...
def ReadPolygon3D(self,IS : io.BytesIO,theProgress : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> None:
"""
Reads the 3d polygons of me from the stream <IS>.
"""
def ReadPolygonOnTriangulation(self,IS : io.BytesIO,theProgress : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> None:
"""
Reads the polygons on triangulation of me from the stream <IS>.
"""
def ReadTriangulation(self,IS : io.BytesIO,theProgress : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> None:
"""
Reads the triangulation of me from the stream <IS>.
"""
def SetFormatNb(self,theFormatNb : int) -> None:
"""
Sets the TopTools_FormatVersion
"""
def SetWithNormals(self,theWithNormals : bool) -> None:
"""
Define if shape will be stored triangulation with normals. Ignored (always written) if face defines only triangulation (no surface).
"""
def SetWithTriangles(self,theWithTriangles : bool) -> None:
"""
Define if shape will be stored with triangles. Ignored (always written) if face defines only triangulation (no surface).
"""
def Shape(self,I : int) -> OCP.TopoDS.TopoDS_Shape:
"""
Returns the sub-shape of index <I>.
"""
@overload
def Write(self,OS : io.BytesIO,theProgress : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> None:
"""
Writes the content of me on the stream <OS> in a format that can be read back by Read.
Writes on <OS> the shape <S>. Writes the orientation, the index of the TShape and the index of the Location.
"""
@overload
def Write(self,S : OCP.TopoDS.TopoDS_Shape,OS : io.BytesIO) -> None: ...
@overload
def WriteGeometry(self,S : OCP.TopoDS.TopoDS_Shape,OS : io.BytesIO) -> None:
"""
Writes the geometry of me on the stream <OS> in a format that can be read back by Read.
Writes the geometry of <S> on the stream <OS> in a format that can be read back by Read.
"""
@overload
def WriteGeometry(self,OS : io.BytesIO,theProgress : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> None: ...
def WritePolygon3D(self,OS : io.BytesIO,Compact : bool=True,theProgress : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> None:
"""
Writes the 3d polygons on the stream <OS> in a format that can be read back by Read.
"""
def WritePolygonOnTriangulation(self,OS : io.BytesIO,Compact : bool=True,theProgress : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> None:
"""
Writes the polygons on triangulation on the stream <OS> in a format that can be read back by Read.
"""
def WriteTriangulation(self,OS : io.BytesIO,Compact : bool=True,theProgress : OCP.Message.Message_ProgressRange=OCP.Message.Message_ProgressRange) -> None:
"""
Writes the triangulation on the stream <OS> in a format that can be read back by Read.
"""
@overload
def __init__(self,theBuilder : OCP.BRep.BRep_Builder,theWithTriangles : bool=True,theWithNormals : bool=False) -> None: ...
@overload
def __init__(self,theWithTriangles : bool=True,theWithNormals : bool=False) -> None: ...
pass
class BRepTools_Substitution():
"""
A tool to substitute subshapes by other shapes.
"""
def Build(self,S : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Build NewShape from <S> if its subshapes has modified.
"""
def Clear(self) -> None:
"""
Reset all the fields.
"""
def Copy(self,S : OCP.TopoDS.TopoDS_Shape) -> OCP.TopTools.TopTools_ListOfShape:
"""
Returns the set of shapes substituted to <S>.
"""
def IsCopied(self,S : OCP.TopoDS.TopoDS_Shape) -> bool:
"""
Returns True if <S> has been replaced .
"""
def Substitute(self,OldShape : OCP.TopoDS.TopoDS_Shape,NewShapes : OCP.TopTools.TopTools_ListOfShape) -> None:
"""
<Oldshape> will be replaced by <NewShapes>.
"""
def __init__(self) -> None: ...
pass
class BRepTools_TrsfModification(BRepTools_Modification, OCP.Standard.Standard_Transient):
"""
Describes a modification that uses a gp_Trsf to change the geometry of a shape. All functions return true and transform the geometry of the shape.Describes a modification that uses a gp_Trsf to change the geometry of a shape. All functions return true and transform the geometry of the shape.Describes a modification that uses a gp_Trsf to change the geometry of a shape. All functions return true and transform the geometry of the shape.
"""
def Continuity(self,E : OCP.TopoDS.TopoDS_Edge,F1 : OCP.TopoDS.TopoDS_Face,F2 : OCP.TopoDS.TopoDS_Face,NewE : OCP.TopoDS.TopoDS_Edge,NewF1 : OCP.TopoDS.TopoDS_Face,NewF2 : OCP.TopoDS.TopoDS_Face) -> OCP.GeomAbs.GeomAbs_Shape:
"""
Returns the continuity of <NewE> between <NewF1> and <NewF2>.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def NewCurve(self,E : OCP.TopoDS.TopoDS_Edge,C : OCP.Geom.Geom_Curve,L : OCP.TopLoc.TopLoc_Location,Tol : float) -> bool:
"""
Returns true if the edge E has been modified. If the edge has been modified: - C is the new geometric support of the edge, - L is the new location, and - Tol is the new tolerance. If the edge has not been modified, this function returns false, and the values of C, L and Tol are not significant.
"""
def NewCurve2d(self,E : OCP.TopoDS.TopoDS_Edge,F : OCP.TopoDS.TopoDS_Face,NewE : OCP.TopoDS.TopoDS_Edge,NewF : OCP.TopoDS.TopoDS_Face,C : OCP.Geom2d.Geom2d_Curve,Tol : float) -> bool:
"""
Returns true if the edge E has a new curve on surface on the face F. If a new curve exists: - C is the new geometric support of the edge, - L is the new location, and - Tol the new tolerance. If no new curve exists, this function returns false, and the values of C, L and Tol are not significant.
"""
def NewParameter(self,V : OCP.TopoDS.TopoDS_Vertex,E : OCP.TopoDS.TopoDS_Edge,P : float,Tol : float) -> bool:
"""
Returns true if the Vertex V has a new parameter on the edge E. If a new parameter exists: - P is the parameter, and - Tol is the new tolerance. If no new parameter exists, this function returns false, and the values of P and Tol are not significant.
"""
def NewPoint(self,V : OCP.TopoDS.TopoDS_Vertex,P : OCP.gp.gp_Pnt,Tol : float) -> bool:
"""
Returns true if the vertex V has been modified. If the vertex has been modified: - P is the new geometry of the vertex, and - Tol is the new tolerance. If the vertex has not been modified this function returns false, and the values of P and Tol are not significant.
"""
def NewPolygon(self,E : OCP.TopoDS.TopoDS_Edge,P : OCP.Poly.Poly_Polygon3D) -> bool:
"""
Returns true if the edge has been modified according to changed polygon. If the edge has been modified: - P is a new polygon
"""
def NewPolygonOnTriangulation(self,E : OCP.TopoDS.TopoDS_Edge,F : OCP.TopoDS.TopoDS_Face,P : OCP.Poly.Poly_PolygonOnTriangulation) -> bool:
"""
Returns true if the edge has been modified according to changed polygon on triangulation. If the edge has been modified: - P is a new polygon on triangulation
"""
def NewSurface(self,F : OCP.TopoDS.TopoDS_Face,S : OCP.Geom.Geom_Surface,L : OCP.TopLoc.TopLoc_Location,Tol : float,RevWires : bool,RevFace : bool) -> bool:
"""
Returns true if the face F has been modified. If the face has been modified: - S is the new geometry of the face, - L is its new location, and - Tol is the new tolerance. RevWires is set to true when the modification reverses the normal of the surface (the wires have to be reversed). RevFace is set to true if the orientation of the modified face changes in the shells which contain it. For this class, RevFace returns true if the gp_Trsf associated with this modification is negative.
"""
def NewTriangulation(self,F : OCP.TopoDS.TopoDS_Face,T : OCP.Poly.Poly_Triangulation) -> bool:
"""
Returns true if the face has been modified according to changed triangulation. If the face has been modified: - T is a new triangulation on the face
"""
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 Trsf(self) -> OCP.gp.gp_Trsf:
"""
Provides access to the gp_Trsf associated with this modification. The transformation can be changed.
"""
def __init__(self,T : OCP.gp.gp_Trsf) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
@property
def IsCopyMesh(self) -> bool:
"""
Sets a flag to indicate the need to copy mesh.
:type: bool
"""
@IsCopyMesh.setter
def IsCopyMesh(self, arg1: bool) -> None:
"""
Sets a flag to indicate the need to copy mesh.
"""
pass
class BRepTools_WireExplorer():
"""
The WireExplorer is a tool to explore the edges of a wire in a connection order.
"""
def Clear(self) -> None:
"""
Clears the content of the explorer.
"""
def Current(self) -> OCP.TopoDS.TopoDS_Edge:
"""
Returns the current edge.
"""
def CurrentVertex(self) -> OCP.TopoDS.TopoDS_Vertex:
"""
Returns the vertex connecting the current edge to the previous one.
"""
@overload
def Init(self,W : OCP.TopoDS.TopoDS_Wire,F : OCP.TopoDS.TopoDS_Face,UMin : float,UMax : float,VMin : float,VMax : float) -> None:
"""
Initializes an exploration of the wire <W>.
Initializes an exploration of the wire <W>. F is used to select the edge connected to the previous in the parametric representation of <F>.
Initializes an exploration of the wire <W>. F is used to select the edge connected to the previous in the parametric representation of <F>. <UMIn>, <UMax>, <VMin>, <VMax> - the UV bounds of the face <F>.
"""
@overload
def Init(self,W : OCP.TopoDS.TopoDS_Wire,F : OCP.TopoDS.TopoDS_Face) -> None: ...
@overload
def Init(self,W : OCP.TopoDS.TopoDS_Wire) -> None: ...
def More(self) -> bool:
"""
Returns True if there is a current edge.
"""
def Next(self) -> None:
"""
Proceeds to the next edge.
"""
def Orientation(self) -> OCP.TopAbs.TopAbs_Orientation:
"""
Returns an Orientation for the current edge.
"""
@overload
def __init__(self,W : OCP.TopoDS.TopoDS_Wire,F : OCP.TopoDS.TopoDS_Face) -> None: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,W : OCP.TopoDS.TopoDS_Wire) -> None: ...
pass
|