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
|
import OCP.Intf
from typing import *
from typing import Iterable as iterable
from typing import Iterator as iterator
from numpy import float64
_Shape = Tuple[int, ...]
import OCP.gp
import OCP.Bnd
import OCP.NCollection
__all__ = [
"Intf",
"Intf_Array1OfLin",
"Intf_Interference",
"Intf_InterferencePolygon2d",
"Intf_PIType",
"Intf_Polygon2d",
"Intf_SectionLine",
"Intf_SectionPoint",
"Intf_SeqOfSectionLine",
"Intf_SeqOfSectionPoint",
"Intf_SeqOfTangentZone",
"Intf_TangentZone",
"Intf_Tool",
"Intf_EDGE",
"Intf_EXTERNAL",
"Intf_FACE",
"Intf_VERTEX"
]
class Intf():
"""
Interference computation between polygons, lines and polyhedra with only triangular facets. These objects are polygonal representations of complex curves and triangulated representations of complex surfaces.
"""
@staticmethod
def Contain_s(P1 : OCP.gp.gp_Pnt,P2 : OCP.gp.gp_Pnt,P3 : OCP.gp.gp_Pnt,ThePnt : OCP.gp.gp_Pnt) -> bool:
"""
Compute if the triangle <P1> <P2> <P3> contain <ThePnt>.
"""
@staticmethod
def PlaneEquation_s(P1 : OCP.gp.gp_Pnt,P2 : OCP.gp.gp_Pnt,P3 : OCP.gp.gp_Pnt,NormalVector : OCP.gp.gp_XYZ) -> tuple[float]:
"""
Computes the interference between two polygons in 2d. Result : points of intersections and zones of tangence. Computes the interference between a polygon or a straight line and a polyhedron. Points of intersection and zones of tangence. Give the plane equation of the triangle <P1> <P2> <P3>.
"""
def __init__(self) -> None: ...
pass
class Intf_Array1OfLin():
"""
The class NCollection_Array1 represents unidimensional arrays of fixed size known at run time. The range of the index is user defined. An array1 can be constructed with a "C array". This functionality is useful to call methods expecting an Array1. It allows to carry the bounds inside the arrays.
"""
def Assign(self,theOther : Intf_Array1OfLin) -> Intf_Array1OfLin:
"""
Copies data of theOther array to this. This array should be pre-allocated and have the same length as theOther; otherwise exception Standard_DimensionMismatch is thrown.
"""
def Init(self,theValue : OCP.gp.gp_Lin) -> None:
"""
Initialise the items with theValue
"""
def IsDeletable(self) -> bool:
"""
None
"""
def IsEmpty(self) -> bool:
"""
Return TRUE if array has zero length.
"""
def Length(self) -> int:
"""
Length query (the same)
"""
def Lower(self) -> int:
"""
Lower bound
"""
def Move(self,theOther : Intf_Array1OfLin) -> Intf_Array1OfLin:
"""
None
"""
def Resize(self,theLower : int,theUpper : int,theToCopyData : bool) -> None:
"""
Resizes the array to specified bounds. No re-allocation will be done if length of array does not change, but existing values will not be discarded if theToCopyData set to FALSE.
"""
def SetValue(self,theIndex : int,theItem : OCP.gp.gp_Lin) -> None:
"""
Set value
"""
def Size(self) -> int:
"""
Size query
"""
def UpdateLowerBound(self,theLower : int) -> None:
"""
Changes the lowest bound. Do not move data
"""
def UpdateUpperBound(self,theUpper : int) -> None:
"""
Changes the upper bound. Do not move data
"""
def Upper(self) -> int:
"""
Upper bound
"""
def __bool__(self) -> bool: ...
def __call__(self,theIndex : int) -> OCP.gp.gp_Lin: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theLower : int,theUpper : int) -> None: ...
@overload
def __init__(self,theAlloc : Any,theLower : int,theUpper : int) -> None: ...
@overload
def __init__(self,theOther : Intf_Array1OfLin) -> None: ...
def __iter__(self) -> Iterator[OCP.gp.gp_Lin]: ...
def __len__(self) -> int: ...
pass
class Intf_Interference():
"""
Describes the Interference computation result between polygon2d or polygon3d or polyhedron (as three sequences of points of intersection, polylines of intersection and zones de tangence).
"""
def Contains(self,ThePnt : Intf_SectionPoint) -> bool:
"""
Tests if the polylines of intersection or the zones of tangence contain the point of intersection <ThePnt>.
"""
def Dump(self) -> None:
"""
None
"""
def GetTolerance(self) -> float:
"""
Gives the tolerance used for the calculation.
Gives the tolerance used for the calculation.
"""
@overload
def Insert(self,TheZone : Intf_TangentZone) -> bool:
"""
Inserts a new zone of tangence in the current list of tangent zones of the interference and returns True when done.
Insert a new segment of intersection in the current list of polylines of intersection of the interference.
"""
@overload
def Insert(self,pdeb : Intf_SectionPoint,pfin : Intf_SectionPoint) -> None: ...
def LineValue(self,Index : int) -> Intf_SectionLine:
"""
Gives the polyline of intersection at address <Index> in the interference.
Gives the polyline of intersection at address <Index> in the interference.
"""
def NbSectionLines(self) -> int:
"""
Gives the number of polylines of intersection in the interference.
Gives the number of polylines of intersection in the interference.
"""
def NbSectionPoints(self) -> int:
"""
Gives the number of points of intersection in the interference.
Gives the number of points of intersection in the interference.
"""
def NbTangentZones(self) -> int:
"""
Gives the number of zones of tangence in the interference.
Gives the number of zones of tangence in the interference.
"""
def PntValue(self,Index : int) -> Intf_SectionPoint:
"""
Gives the point of intersection of address Index in the interference.
Gives the point of intersection of address Index in the interference.
"""
def ZoneValue(self,Index : int) -> Intf_TangentZone:
"""
Gives the zone of tangence at address Index in the interference.
Gives the zone of tangence at address Index in the interference.
"""
pass
class Intf_InterferencePolygon2d(Intf_Interference):
"""
Computes the interference between two polygons or the self intersection of a polygon in two dimensions.
"""
def Contains(self,ThePnt : Intf_SectionPoint) -> bool:
"""
Tests if the polylines of intersection or the zones of tangence contain the point of intersection <ThePnt>.
"""
def Dump(self) -> None:
"""
None
"""
def GetTolerance(self) -> float:
"""
Gives the tolerance used for the calculation.
Gives the tolerance used for the calculation.
"""
@overload
def Insert(self,TheZone : Intf_TangentZone) -> bool:
"""
Inserts a new zone of tangence in the current list of tangent zones of the interference and returns True when done.
Insert a new segment of intersection in the current list of polylines of intersection of the interference.
"""
@overload
def Insert(self,pdeb : Intf_SectionPoint,pfin : Intf_SectionPoint) -> None: ...
def LineValue(self,Index : int) -> Intf_SectionLine:
"""
Gives the polyline of intersection at address <Index> in the interference.
Gives the polyline of intersection at address <Index> in the interference.
"""
def NbSectionLines(self) -> int:
"""
Gives the number of polylines of intersection in the interference.
Gives the number of polylines of intersection in the interference.
"""
def NbSectionPoints(self) -> int:
"""
Gives the number of points of intersection in the interference.
Gives the number of points of intersection in the interference.
"""
def NbTangentZones(self) -> int:
"""
Gives the number of zones of tangence in the interference.
Gives the number of zones of tangence in the interference.
"""
@overload
def Perform(self,Obje : Intf_Polygon2d) -> None:
"""
Computes an interference between two Polygons.
Computes the self interference of a Polygon.
"""
@overload
def Perform(self,Obje1 : Intf_Polygon2d,Obje2 : Intf_Polygon2d) -> None: ...
def Pnt2dValue(self,Index : int) -> OCP.gp.gp_Pnt2d:
"""
Gives the geometrical 2d point of the intersection point at address <Index> in the interference.
"""
def PntValue(self,Index : int) -> Intf_SectionPoint:
"""
Gives the point of intersection of address Index in the interference.
Gives the point of intersection of address Index in the interference.
"""
def ZoneValue(self,Index : int) -> Intf_TangentZone:
"""
Gives the zone of tangence at address Index in the interference.
Gives the zone of tangence at address Index in the interference.
"""
@overload
def __init__(self,Obje : Intf_Polygon2d) -> None: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,Obje1 : Intf_Polygon2d,Obje2 : Intf_Polygon2d) -> None: ...
pass
class Intf_PIType():
"""
Describes the different intersection point types for this application.
Members:
Intf_EXTERNAL
Intf_FACE
Intf_EDGE
Intf_VERTEX
"""
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
"""
Intf_EDGE: OCP.Intf.Intf_PIType # value = <Intf_PIType.Intf_EDGE: 2>
Intf_EXTERNAL: OCP.Intf.Intf_PIType # value = <Intf_PIType.Intf_EXTERNAL: 0>
Intf_FACE: OCP.Intf.Intf_PIType # value = <Intf_PIType.Intf_FACE: 1>
Intf_VERTEX: OCP.Intf.Intf_PIType # value = <Intf_PIType.Intf_VERTEX: 3>
__entries: dict # value = {'Intf_EXTERNAL': (<Intf_PIType.Intf_EXTERNAL: 0>, None), 'Intf_FACE': (<Intf_PIType.Intf_FACE: 1>, None), 'Intf_EDGE': (<Intf_PIType.Intf_EDGE: 2>, None), 'Intf_VERTEX': (<Intf_PIType.Intf_VERTEX: 3>, None)}
__members__: dict # value = {'Intf_EXTERNAL': <Intf_PIType.Intf_EXTERNAL: 0>, 'Intf_FACE': <Intf_PIType.Intf_FACE: 1>, 'Intf_EDGE': <Intf_PIType.Intf_EDGE: 2>, 'Intf_VERTEX': <Intf_PIType.Intf_VERTEX: 3>}
pass
class Intf_Polygon2d():
"""
Describes the necessary polygon information to compute the interferences.
"""
def Bounding(self) -> OCP.Bnd.Bnd_Box2d:
"""
Returns the bounding box of the polygon.
Returns the bounding box of the polygon.
"""
def Closed(self) -> bool:
"""
Returns True if the polyline is closed.
"""
def DeflectionOverEstimation(self) -> float:
"""
Returns the tolerance of the polygon.
"""
def NbSegments(self) -> int:
"""
Returns the number of Segments in the polyline.
"""
def Segment(self,theIndex : int,theBegin : OCP.gp.gp_Pnt2d,theEnd : OCP.gp.gp_Pnt2d) -> None:
"""
Returns the points of the segment <Index> in the Polygon.
"""
pass
class Intf_SectionLine():
"""
Describe a polyline of intersection between two polyhedra as a sequence of points of intersection.
"""
@overload
def Append(self,Pi : Intf_SectionPoint) -> None:
"""
Adds a point at the end of the SectionLine.
Concatenates the SectionLine <LS> at the end of the SectionLine <me>.
"""
@overload
def Append(self,LS : Intf_SectionLine) -> None: ...
def Close(self) -> None:
"""
Closes the SectionLine.
"""
def Contains(self,ThePI : Intf_SectionPoint) -> bool:
"""
Returns True if ThePI is in the SectionLine <me>.
"""
def Dump(self,Indent : int) -> None:
"""
None
"""
def GetPoint(self,Index : int) -> Intf_SectionPoint:
"""
Gives the point of intersection of address <Index> in the SectionLine.
"""
def IsClosed(self) -> bool:
"""
Returns True if the SectionLine is closed.
"""
def IsEnd(self,ThePI : Intf_SectionPoint) -> int:
"""
Checks if <ThePI> is an end of the SectionLine. Returns 1 for the beginning, 2 for the end, otherwise 0.
"""
def IsEqual(self,Other : Intf_SectionLine) -> bool:
"""
Compares two SectionLines.
"""
def NumberOfPoints(self) -> int:
"""
Returns number of points in this SectionLine.
Returns number of points in this SectionLine.
"""
@overload
def Prepend(self,LS : Intf_SectionLine) -> None:
"""
Adds a point to the beginning of the SectionLine <me>.
Concatenates a SectionLine <LS> at the beginning of the SectionLine <me>.
"""
@overload
def Prepend(self,Pi : Intf_SectionPoint) -> None: ...
def Reverse(self) -> None:
"""
Reverses the order of the elements of the SectionLine.
"""
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,Other : Intf_SectionLine) -> None: ...
pass
class Intf_SectionPoint():
"""
Describes an intersection point between polygons and polyedra.
"""
def Dump(self,Indent : int) -> None:
"""
None
"""
def Incidence(self) -> float:
"""
Gives the incidence at this section point. The incidence between the two triangles is given by the cosine. The best incidence is 0. (PI/2). The worst is 1. (null angle).
"""
@overload
def InfoFirst(self,Dim : Intf_PIType) -> tuple[int, int, float]:
"""
None
Gives the data about the first argument of the Interference.
"""
@overload
def InfoFirst(self,Dim : Intf_PIType) -> tuple[int, float]: ...
@overload
def InfoSecond(self,Dim : Intf_PIType) -> tuple[int, float]:
"""
None
Gives the data about the second argument of the Interference.
"""
@overload
def InfoSecond(self,Dim : Intf_PIType) -> tuple[int, int, float]: ...
def IsEqual(self,Other : Intf_SectionPoint) -> bool:
"""
Returns True if the two SectionPoint have the same logical information.
Returns True if the two SectionPoint have the same logical information.
"""
def IsOnSameEdge(self,Other : Intf_SectionPoint) -> bool:
"""
Returns True if the two SectionPoints are on the same edge of the first or the second element.
"""
def Merge(self,Other : Intf_SectionPoint) -> None:
"""
Merges two SectionPoints.
"""
def ParamOnFirst(self) -> float:
"""
Returns the cumulated Parameter of the SectionPoint on the first element.
Returns the cumulated Parameter of the SectionPoint on the first element.
"""
def ParamOnSecond(self) -> float:
"""
Returns the cumulated Parameter of the section point on the second element.
Returns the cumulated Parameter of the section point on the second element.
"""
def Pnt(self) -> OCP.gp.gp_Pnt:
"""
Returns the location of the SectionPoint.
"""
def TypeOnFirst(self) -> Intf_PIType:
"""
Returns the type of the section point on the first element.
Returns the type of the section point on the first element.
"""
def TypeOnSecond(self) -> Intf_PIType:
"""
Returns the type of the section point on the second element.
Returns the type of the section point on the second element.
"""
@overload
def __init__(self,Where : OCP.gp.gp_Pnt2d,DimeO : Intf_PIType,AddrO1 : int,ParamO : float,DimeT : Intf_PIType,AddrT1 : int,ParamT : float,Incid : float) -> None: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,Where : OCP.gp.gp_Pnt,DimeO : Intf_PIType,AddrO1 : int,AddrO2 : int,ParamO : float,DimeT : Intf_PIType,AddrT1 : int,AddrT2 : int,ParamT : float,Incid : float) -> None: ...
pass
class Intf_SeqOfSectionLine(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 : Intf_SeqOfSectionLine) -> None:
"""
Append one item
Append another sequence (making it empty)
"""
@overload
def Append(self,theItem : Intf_SectionLine) -> None: ...
def Assign(self,theOther : Intf_SeqOfSectionLine) -> Intf_SeqOfSectionLine:
"""
Replace this sequence by the items of theOther. This method does not change the internal allocator.
"""
def ChangeFirst(self) -> Intf_SectionLine:
"""
First item access
"""
def ChangeLast(self) -> Intf_SectionLine:
"""
Last item access
"""
def ChangeValue(self,theIndex : int) -> Intf_SectionLine:
"""
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) -> Intf_SectionLine:
"""
First item access
"""
@overload
def InsertAfter(self,theIndex : int,theItem : Intf_SectionLine) -> None:
"""
InsertAfter theIndex another sequence (making it empty)
InsertAfter theIndex theItem
"""
@overload
def InsertAfter(self,theIndex : int,theSeq : Intf_SeqOfSectionLine) -> None: ...
@overload
def InsertBefore(self,theIndex : int,theSeq : Intf_SeqOfSectionLine) -> None:
"""
InsertBefore theIndex theItem
InsertBefore theIndex another sequence (making it empty)
"""
@overload
def InsertBefore(self,theIndex : int,theItem : Intf_SectionLine) -> None: ...
def IsEmpty(self) -> bool:
"""
Empty query
"""
def Last(self) -> Intf_SectionLine:
"""
Last item access
"""
def Length(self) -> int:
"""
Number of items
"""
def Lower(self) -> int:
"""
Method for consistency with other collections.
"""
@overload
def Prepend(self,theSeq : Intf_SeqOfSectionLine) -> None:
"""
Prepend one item
Prepend another sequence (making it empty)
"""
@overload
def Prepend(self,theItem : Intf_SectionLine) -> 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 : Intf_SectionLine) -> None:
"""
Set item value by theIndex
"""
def Size(self) -> int:
"""
Number of items
"""
def Split(self,theIndex : int,theSeq : Intf_SeqOfSectionLine) -> None:
"""
Split in two sequences
"""
def Upper(self) -> int:
"""
Method for consistency with other collections.
"""
def Value(self,theIndex : int) -> Intf_SectionLine:
"""
Constant item access by theIndex
"""
def __bool__(self) -> bool: ...
def __call__(self,theIndex : int) -> Intf_SectionLine:
"""
Constant operator()
Variable operator()
"""
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator) -> None: ...
@overload
def __init__(self,theOther : Intf_SeqOfSectionLine) -> None: ...
def __iter__(self) -> Iterator[Intf_SectionLine]: ...
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 Intf_SeqOfSectionPoint(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 : Intf_SeqOfSectionPoint) -> None:
"""
Append one item
Append another sequence (making it empty)
"""
@overload
def Append(self,theItem : Intf_SectionPoint) -> None: ...
def Assign(self,theOther : Intf_SeqOfSectionPoint) -> Intf_SeqOfSectionPoint:
"""
Replace this sequence by the items of theOther. This method does not change the internal allocator.
"""
def ChangeFirst(self) -> Intf_SectionPoint:
"""
First item access
"""
def ChangeLast(self) -> Intf_SectionPoint:
"""
Last item access
"""
def ChangeValue(self,theIndex : int) -> Intf_SectionPoint:
"""
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) -> Intf_SectionPoint:
"""
First item access
"""
@overload
def InsertAfter(self,theIndex : int,theItem : Intf_SectionPoint) -> None:
"""
InsertAfter theIndex another sequence (making it empty)
InsertAfter theIndex theItem
"""
@overload
def InsertAfter(self,theIndex : int,theSeq : Intf_SeqOfSectionPoint) -> None: ...
@overload
def InsertBefore(self,theIndex : int,theItem : Intf_SectionPoint) -> None:
"""
InsertBefore theIndex theItem
InsertBefore theIndex another sequence (making it empty)
"""
@overload
def InsertBefore(self,theIndex : int,theSeq : Intf_SeqOfSectionPoint) -> None: ...
def IsEmpty(self) -> bool:
"""
Empty query
"""
def Last(self) -> Intf_SectionPoint:
"""
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 : Intf_SectionPoint) -> None:
"""
Prepend one item
Prepend another sequence (making it empty)
"""
@overload
def Prepend(self,theSeq : Intf_SeqOfSectionPoint) -> 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 : Intf_SectionPoint) -> None:
"""
Set item value by theIndex
"""
def Size(self) -> int:
"""
Number of items
"""
def Split(self,theIndex : int,theSeq : Intf_SeqOfSectionPoint) -> None:
"""
Split in two sequences
"""
def Upper(self) -> int:
"""
Method for consistency with other collections.
"""
def Value(self,theIndex : int) -> Intf_SectionPoint:
"""
Constant item access by theIndex
"""
def __bool__(self) -> bool: ...
def __call__(self,theIndex : int) -> Intf_SectionPoint:
"""
Constant operator()
Variable operator()
"""
@overload
def __init__(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator) -> None: ...
@overload
def __init__(self,theOther : Intf_SeqOfSectionPoint) -> None: ...
@overload
def __init__(self) -> None: ...
def __iter__(self) -> Iterator[Intf_SectionPoint]: ...
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 Intf_SeqOfTangentZone(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,theItem : Intf_TangentZone) -> None:
"""
Append one item
Append another sequence (making it empty)
"""
@overload
def Append(self,theSeq : Intf_SeqOfTangentZone) -> None: ...
def Assign(self,theOther : Intf_SeqOfTangentZone) -> Intf_SeqOfTangentZone:
"""
Replace this sequence by the items of theOther. This method does not change the internal allocator.
"""
def ChangeFirst(self) -> Intf_TangentZone:
"""
First item access
"""
def ChangeLast(self) -> Intf_TangentZone:
"""
Last item access
"""
def ChangeValue(self,theIndex : int) -> Intf_TangentZone:
"""
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) -> Intf_TangentZone:
"""
First item access
"""
@overload
def InsertAfter(self,theIndex : int,theSeq : Intf_SeqOfTangentZone) -> None:
"""
InsertAfter theIndex another sequence (making it empty)
InsertAfter theIndex theItem
"""
@overload
def InsertAfter(self,theIndex : int,theItem : Intf_TangentZone) -> None: ...
@overload
def InsertBefore(self,theIndex : int,theItem : Intf_TangentZone) -> None:
"""
InsertBefore theIndex theItem
InsertBefore theIndex another sequence (making it empty)
"""
@overload
def InsertBefore(self,theIndex : int,theSeq : Intf_SeqOfTangentZone) -> None: ...
def IsEmpty(self) -> bool:
"""
Empty query
"""
def Last(self) -> Intf_TangentZone:
"""
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 : Intf_TangentZone) -> None:
"""
Prepend one item
Prepend another sequence (making it empty)
"""
@overload
def Prepend(self,theSeq : Intf_SeqOfTangentZone) -> None: ...
@overload
def Remove(self,theFromIndex : int,theToIndex : int) -> None:
"""
Remove one item
Remove range of items
"""
@overload
def Remove(self,theIndex : int) -> None: ...
def Reverse(self) -> None:
"""
Reverse sequence
"""
def SetValue(self,theIndex : int,theItem : Intf_TangentZone) -> None:
"""
Set item value by theIndex
"""
def Size(self) -> int:
"""
Number of items
"""
def Split(self,theIndex : int,theSeq : Intf_SeqOfTangentZone) -> None:
"""
Split in two sequences
"""
def Upper(self) -> int:
"""
Method for consistency with other collections.
"""
def Value(self,theIndex : int) -> Intf_TangentZone:
"""
Constant item access by theIndex
"""
def __bool__(self) -> bool: ...
def __call__(self,theIndex : int) -> Intf_TangentZone:
"""
Constant operator()
Variable operator()
"""
@overload
def __init__(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator) -> None: ...
@overload
def __init__(self,theOther : Intf_SeqOfTangentZone) -> None: ...
@overload
def __init__(self) -> None: ...
def __iter__(self) -> Iterator[Intf_TangentZone]: ...
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 Intf_TangentZone():
"""
Describes a zone of tangence between polygons or polyhedra as a sequence of points of intersection.
"""
@overload
def Append(self,Tzi : Intf_TangentZone) -> None:
"""
Adds a SectionPoint to the TangentZone.
Adds the TangentZone <Tzi> to <me>.
"""
@overload
def Append(self,Pi : Intf_SectionPoint) -> None: ...
def Contains(self,ThePI : Intf_SectionPoint) -> bool:
"""
Checks if <ThePI> is in TangentZone.
"""
def Dump(self,Indent : int) -> None:
"""
None
"""
def GetPoint(self,Index : int) -> Intf_SectionPoint:
"""
Gives the SectionPoint of address <Index> in the TangentZone.
"""
def HasCommonRange(self,Other : Intf_TangentZone) -> bool:
"""
Returns True if the TangentZone <Other> has a common part with <me>.
"""
def InfoFirst(self) -> tuple[int, float, int, float]:
"""
Gives information about the first argument of the Interference. (Usable only for polygon)
"""
def InfoSecond(self) -> tuple[int, float, int, float]:
"""
Gives information about the second argument of the Interference. (Usable only for polygon)
"""
def Insert(self,Pi : Intf_SectionPoint) -> bool:
"""
Inserts a SectionPoint in the TangentZone.
"""
def InsertAfter(self,Index : int,Pi : Intf_SectionPoint) -> None:
"""
Inserts a SectionPoint after <Index> in the TangentZone.
"""
def InsertBefore(self,Index : int,Pi : Intf_SectionPoint) -> None:
"""
Inserts a SectionPoint before <Index> in the TangentZone.
"""
def IsEqual(self,Other : Intf_TangentZone) -> bool:
"""
Compares two TangentZones.
"""
def NumberOfPoints(self) -> int:
"""
Returns number of SectionPoint in this TangentZone.
Returns number of SectionPoint in this TangentZone.
"""
def ParamOnFirst(self) -> tuple[float, float]:
"""
Gives the parameter range of the TangentZone on the first argument of the Interference. (Usable only for polygon)
Gives the parameter range of the TangentZone on the first argument of the Interference. (Usable only for polygon)
"""
def ParamOnSecond(self) -> tuple[float, float]:
"""
Gives the parameter range of the TangentZone on the second argument of the Interference. (Usable only for polygon)
Gives the parameter range of the TangentZone on the second argument of the Interference. (Usable only for polygon)
"""
def PolygonInsert(self,Pi : Intf_SectionPoint) -> None:
"""
Inserts a point in the polygonal TangentZone.
"""
def RangeContains(self,ThePI : Intf_SectionPoint) -> bool:
"""
Returns True if <ThePI> is in the parameter range of the TangentZone.
"""
def __init__(self) -> None: ...
pass
class Intf_Tool():
"""
Provides services to create box for infinites lines in a given contexte.
"""
def BeginParam(self,SegmentNum : int) -> float:
"""
None
"""
def EndParam(self,SegmentNum : int) -> float:
"""
None
"""
def Hypr2dBox(self,theHypr2d : OCP.gp.gp_Hypr2d,bounding : OCP.Bnd.Bnd_Box2d,boxHypr : OCP.Bnd.Bnd_Box2d) -> None:
"""
None
"""
def HyprBox(self,theHypr : OCP.gp.gp_Hypr,bounding : OCP.Bnd.Bnd_Box,boxHypr : OCP.Bnd.Bnd_Box) -> None:
"""
None
"""
def Lin2dBox(self,theLin2d : OCP.gp.gp_Lin2d,bounding : OCP.Bnd.Bnd_Box2d,boxLin : OCP.Bnd.Bnd_Box2d) -> None:
"""
None
"""
def LinBox(self,theLin : OCP.gp.gp_Lin,bounding : OCP.Bnd.Bnd_Box,boxLin : OCP.Bnd.Bnd_Box) -> None:
"""
None
"""
def NbSegments(self) -> int:
"""
None
"""
def Parab2dBox(self,theParab2d : OCP.gp.gp_Parab2d,bounding : OCP.Bnd.Bnd_Box2d,boxHypr : OCP.Bnd.Bnd_Box2d) -> None:
"""
None
"""
def ParabBox(self,theParab : OCP.gp.gp_Parab,bounding : OCP.Bnd.Bnd_Box,boxHypr : OCP.Bnd.Bnd_Box) -> None:
"""
None
"""
def __init__(self) -> None: ...
pass
Intf_EDGE: OCP.Intf.Intf_PIType # value = <Intf_PIType.Intf_EDGE: 2>
Intf_EXTERNAL: OCP.Intf.Intf_PIType # value = <Intf_PIType.Intf_EXTERNAL: 0>
Intf_FACE: OCP.Intf.Intf_PIType # value = <Intf_PIType.Intf_FACE: 1>
Intf_VERTEX: OCP.Intf.Intf_PIType # value = <Intf_PIType.Intf_VERTEX: 3>
|