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
|
import OCP.BRepAdaptor
from typing import *
from typing import Iterable as iterable
from typing import Iterator as iterator
from numpy import float64
_Shape = Tuple[int, ...]
import OCP.GeomAbs
import OCP.Geom2dAdaptor
import OCP.Geom
import OCP.TColStd
import OCP.Standard
import OCP.gp
import OCP.Adaptor2d
import OCP.Adaptor3d
import OCP.GeomAdaptor
import OCP.TopoDS
import OCP.Geom2d
__all__ = [
"BRepAdaptor_Array1OfCurve",
"BRepAdaptor_CompCurve",
"BRepAdaptor_Curve",
"BRepAdaptor_Curve2d",
"BRepAdaptor_HArray1OfCurve",
"BRepAdaptor_Surface"
]
class BRepAdaptor_Array1OfCurve():
"""
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 : BRepAdaptor_Array1OfCurve) -> BRepAdaptor_Array1OfCurve:
"""
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 : BRepAdaptor_Curve) -> 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 : BRepAdaptor_Array1OfCurve) -> BRepAdaptor_Array1OfCurve:
"""
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 : BRepAdaptor_Curve) -> 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) -> BRepAdaptor_Curve: ...
@overload
def __init__(self,theAlloc : Any,theLower : int,theUpper : int) -> None: ...
@overload
def __init__(self,theLower : int,theUpper : int) -> None: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theOther : BRepAdaptor_Array1OfCurve) -> None: ...
def __iter__(self) -> Iterator[BRepAdaptor_Curve]: ...
def __len__(self) -> int: ...
pass
class BRepAdaptor_CompCurve(OCP.Adaptor3d.Adaptor3d_Curve, OCP.Standard.Standard_Transient):
"""
The Curve from BRepAdaptor allows to use a Wire of the BRep topology like a 3D curve. Warning: With this class of curve, C0 and C1 continuities are not assumed. So be careful with some algorithm! Please note that BRepAdaptor_CompCurve cannot be periodic curve at all (even if it contains single periodic edge).The Curve from BRepAdaptor allows to use a Wire of the BRep topology like a 3D curve. Warning: With this class of curve, C0 and C1 continuities are not assumed. So be careful with some algorithm! Please note that BRepAdaptor_CompCurve cannot be periodic curve at all (even if it contains single periodic edge).
"""
def BSpline(self) -> OCP.Geom.Geom_BSplineCurve:
"""
None
"""
def Bezier(self) -> OCP.Geom.Geom_BezierCurve:
"""
None
"""
def Circle(self) -> OCP.gp.gp_Circ:
"""
None
"""
def Continuity(self) -> OCP.GeomAbs.GeomAbs_Shape:
"""
None
"""
def D0(self,U : float,P : OCP.gp.gp_Pnt) -> None:
"""
Computes the point of parameter U.
"""
def D1(self,U : float,P : OCP.gp.gp_Pnt,V : OCP.gp.gp_Vec) -> None:
"""
Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1.
"""
def D2(self,U : float,P : OCP.gp.gp_Pnt,V1 : OCP.gp.gp_Vec,V2 : OCP.gp.gp_Vec) -> None:
"""
Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2.
"""
def D3(self,U : float,P : OCP.gp.gp_Pnt,V1 : OCP.gp.gp_Vec,V2 : OCP.gp.gp_Vec,V3 : OCP.gp.gp_Vec) -> None:
"""
Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3.
"""
def DN(self,U : float,N : int) -> OCP.gp.gp_Vec:
"""
The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Degree(self) -> int:
"""
None
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def Edge(self,U : float,E : OCP.TopoDS.TopoDS_Edge) -> tuple[float]:
"""
returns an edge and one parameter on them corresponding to the parameter U.
"""
def Ellipse(self) -> OCP.gp.gp_Elips:
"""
None
"""
def FirstParameter(self) -> float:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def GetType(self) -> OCP.GeomAbs.GeomAbs_CurveType:
"""
None
"""
def Hyperbola(self) -> OCP.gp.gp_Hypr:
"""
None
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def Initialize(self,W : OCP.TopoDS.TopoDS_Wire,KnotByCurvilinearAbcissa : bool,First : float,Last : float,Tol : float) -> None:
"""
Sets the wire <W>.
Sets wire <W> and trimmed parameter.
"""
@overload
def Initialize(self,W : OCP.TopoDS.TopoDS_Wire,KnotByCurvilinearAbcissa : bool) -> None: ...
def Intervals(self,T : OCP.TColStd.TColStd_Array1OfReal,S : OCP.GeomAbs.GeomAbs_Shape) -> None:
"""
Stores in <T> the parameters bounding the intervals of continuity <S>.
"""
def IsClosed(self) -> bool:
"""
None
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def IsPeriodic(self) -> bool:
"""
None
"""
def IsRational(self) -> bool:
"""
None
"""
def LastParameter(self) -> float:
"""
None
"""
def Line(self) -> OCP.gp.gp_Lin:
"""
None
"""
def NbIntervals(self,S : OCP.GeomAbs.GeomAbs_Shape) -> int:
"""
Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>
"""
def NbKnots(self) -> int:
"""
None
"""
def NbPoles(self) -> int:
"""
None
"""
def OffsetCurve(self) -> OCP.Geom.Geom_OffsetCurve:
"""
None
"""
def Parabola(self) -> OCP.gp.gp_Parab:
"""
None
"""
def Period(self) -> float:
"""
None
"""
def Resolution(self,R3d : float) -> float:
"""
returns the parametric resolution
"""
def ShallowCopy(self) -> OCP.Adaptor3d.Adaptor3d_Curve:
"""
Shallow copy of adaptor
"""
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 Trim(self,First : float,Last : float,Tol : float) -> OCP.Adaptor3d.Adaptor3d_Curve:
"""
Returns a curve equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>
"""
def Value(self,U : float) -> OCP.gp.gp_Pnt:
"""
Computes the point of parameter U on the curve
"""
def Wire(self) -> OCP.TopoDS.TopoDS_Wire:
"""
Returns the wire.
"""
@overload
def __init__(self,W : OCP.TopoDS.TopoDS_Wire,KnotByCurvilinearAbcissa : bool,First : float,Last : float,Tol : float) -> None: ...
@overload
def __init__(self,W : OCP.TopoDS.TopoDS_Wire,KnotByCurvilinearAbcissa : bool=False) -> None: ...
@overload
def __init__(self) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepAdaptor_Curve(OCP.Adaptor3d.Adaptor3d_Curve, OCP.Standard.Standard_Transient):
"""
The Curve from BRepAdaptor allows to use an Edge of the BRep topology like a 3D curve.The Curve from BRepAdaptor allows to use an Edge of the BRep topology like a 3D curve.
"""
def BSpline(self) -> OCP.Geom.Geom_BSplineCurve:
"""
Warning: This will make a copy of the BSpline Curve since it applies to it myTsrf. Be careful when using this method.
"""
def Bezier(self) -> OCP.Geom.Geom_BezierCurve:
"""
Warning: This will make a copy of the Bezier Curve since it applies to it myTsrf. Be careful when using this method.
"""
def Circle(self) -> OCP.gp.gp_Circ:
"""
None
"""
def Continuity(self) -> OCP.GeomAbs.GeomAbs_Shape:
"""
None
"""
def Curve(self) -> OCP.GeomAdaptor.GeomAdaptor_Curve:
"""
Returns the Curve of the edge.
"""
def CurveOnSurface(self) -> OCP.Adaptor3d.Adaptor3d_CurveOnSurface:
"""
Returns the CurveOnSurface of the edge.
"""
def D0(self,U : float,P : OCP.gp.gp_Pnt) -> None:
"""
Computes the point of parameter U.
"""
def D1(self,U : float,P : OCP.gp.gp_Pnt,V : OCP.gp.gp_Vec) -> None:
"""
Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1.
"""
def D2(self,U : float,P : OCP.gp.gp_Pnt,V1 : OCP.gp.gp_Vec,V2 : OCP.gp.gp_Vec) -> None:
"""
Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2.
"""
def D3(self,U : float,P : OCP.gp.gp_Pnt,V1 : OCP.gp.gp_Vec,V2 : OCP.gp.gp_Vec,V3 : OCP.gp.gp_Vec) -> None:
"""
Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3.
"""
def DN(self,U : float,N : int) -> OCP.gp.gp_Vec:
"""
The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Degree(self) -> int:
"""
None
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def Edge(self) -> OCP.TopoDS.TopoDS_Edge:
"""
Returns the edge.
"""
def Ellipse(self) -> OCP.gp.gp_Elips:
"""
None
"""
def FirstParameter(self) -> float:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def GetType(self) -> OCP.GeomAbs.GeomAbs_CurveType:
"""
None
"""
def Hyperbola(self) -> OCP.gp.gp_Hypr:
"""
None
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
@overload
def Initialize(self,E : OCP.TopoDS.TopoDS_Edge) -> None:
"""
Sets the Curve <me> to access the geometry of edge <E>.
Sets the Curve <me> to access the geometry of edge <E>. The geometry will be computed using the parametric curve of <E> on the face <F>. An Error is raised if the edge does not have a pcurve on the face.
"""
@overload
def Initialize(self,E : OCP.TopoDS.TopoDS_Edge,F : OCP.TopoDS.TopoDS_Face) -> None: ...
def Intervals(self,T : OCP.TColStd.TColStd_Array1OfReal,S : OCP.GeomAbs.GeomAbs_Shape) -> None:
"""
Stores in <T> the parameters bounding the intervals of continuity <S>.
"""
def Is3DCurve(self) -> bool:
"""
Returns True if the edge geometry is computed from a 3D curve.
"""
def IsClosed(self) -> bool:
"""
None
"""
def IsCurveOnSurface(self) -> bool:
"""
Returns True if the edge geometry is computed from a pcurve on a surface.
"""
@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 IsPeriodic(self) -> bool:
"""
None
"""
def IsRational(self) -> bool:
"""
None
"""
def LastParameter(self) -> float:
"""
None
"""
def Line(self) -> OCP.gp.gp_Lin:
"""
None
"""
def NbIntervals(self,S : OCP.GeomAbs.GeomAbs_Shape) -> int:
"""
Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>
"""
def NbKnots(self) -> int:
"""
None
"""
def NbPoles(self) -> int:
"""
None
"""
def OffsetCurve(self) -> OCP.Geom.Geom_OffsetCurve:
"""
None
"""
def Parabola(self) -> OCP.gp.gp_Parab:
"""
None
"""
def Period(self) -> float:
"""
None
"""
def Reset(self) -> None:
"""
Reset currently loaded curve (undone Load()).
"""
def Resolution(self,R3d : float) -> float:
"""
returns the parametric resolution
"""
def ShallowCopy(self) -> OCP.Adaptor3d.Adaptor3d_Curve:
"""
Shallow copy of adaptor
"""
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 Tolerance(self) -> float:
"""
Returns the edge tolerance.
"""
def Trim(self,First : float,Last : float,Tol : float) -> OCP.Adaptor3d.Adaptor3d_Curve:
"""
Returns a curve equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>
"""
def Trsf(self) -> OCP.gp.gp_Trsf:
"""
Returns the coordinate system of the curve.
"""
def Value(self,U : float) -> OCP.gp.gp_Pnt:
"""
Computes the point of parameter U on the curve
"""
@overload
def __init__(self,E : OCP.TopoDS.TopoDS_Edge) -> None: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,E : OCP.TopoDS.TopoDS_Edge,F : OCP.TopoDS.TopoDS_Face) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepAdaptor_Curve2d(OCP.Geom2dAdaptor.Geom2dAdaptor_Curve, OCP.Adaptor2d.Adaptor2d_Curve2d, OCP.Standard.Standard_Transient):
"""
The Curve2d from BRepAdaptor allows to use an Edge on a Face like a 2d curve. (curve in the parametric space).The Curve2d from BRepAdaptor allows to use an Edge on a Face like a 2d curve. (curve in the parametric space).
"""
def BSpline(self) -> OCP.Geom2d.Geom2d_BSplineCurve:
"""
None
"""
def Bezier(self) -> OCP.Geom2d.Geom2d_BezierCurve:
"""
None
"""
def Circle(self) -> OCP.gp.gp_Circ2d:
"""
None
"""
def Continuity(self) -> OCP.GeomAbs.GeomAbs_Shape:
"""
None
"""
def Curve(self) -> OCP.Geom2d.Geom2d_Curve:
"""
None
"""
def D0(self,U : float,P : OCP.gp.gp_Pnt2d) -> None:
"""
Computes the point of parameter U.
"""
def D1(self,U : float,P : OCP.gp.gp_Pnt2d,V : OCP.gp.gp_Vec2d) -> None:
"""
Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1.
"""
def D2(self,U : float,P : OCP.gp.gp_Pnt2d,V1 : OCP.gp.gp_Vec2d,V2 : OCP.gp.gp_Vec2d) -> None:
"""
Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2.
"""
def D3(self,U : float,P : OCP.gp.gp_Pnt2d,V1 : OCP.gp.gp_Vec2d,V2 : OCP.gp.gp_Vec2d,V3 : OCP.gp.gp_Vec2d) -> None:
"""
Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3.
"""
def DN(self,U : float,N : int) -> OCP.gp.gp_Vec2d:
"""
The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1.
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Degree(self) -> int:
"""
None
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def Edge(self) -> OCP.TopoDS.TopoDS_Edge:
"""
Returns the Edge.
"""
def Ellipse(self) -> OCP.gp.gp_Elips2d:
"""
None
"""
def Face(self) -> OCP.TopoDS.TopoDS_Face:
"""
Returns the Face.
"""
def FirstParameter(self) -> float:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def GetType(self) -> OCP.GeomAbs.GeomAbs_CurveType:
"""
None
"""
def Hyperbola(self) -> OCP.gp.gp_Hypr2d:
"""
None
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def Initialize(self,E : OCP.TopoDS.TopoDS_Edge,F : OCP.TopoDS.TopoDS_Face) -> None:
"""
Initialize with the pcurve of <E> on <F>.
"""
def Intervals(self,T : OCP.TColStd.TColStd_Array1OfReal,S : OCP.GeomAbs.GeomAbs_Shape) -> None:
"""
Stores in <T> the parameters bounding the intervals of continuity <S>.
"""
def IsClosed(self) -> bool:
"""
None
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def IsPeriodic(self) -> bool:
"""
None
"""
def IsRational(self) -> bool:
"""
None
"""
def LastParameter(self) -> float:
"""
None
"""
def Line(self) -> OCP.gp.gp_Lin2d:
"""
None
"""
@overload
def Load(self,theCurve : OCP.Geom2d.Geom2d_Curve,theUFirst : float,theULast : float) -> None:
"""
None
Standard_ConstructionError is raised if theUFirst>theULast
"""
@overload
def Load(self,theCurve : OCP.Geom2d.Geom2d_Curve) -> None: ...
def NbIntervals(self,S : OCP.GeomAbs.GeomAbs_Shape) -> int:
"""
If necessary, breaks the curve in intervals of continuity <S>. And returns the number of intervals.
"""
def NbKnots(self) -> int:
"""
None
"""
def NbPoles(self) -> int:
"""
None
"""
def NbSamples(self) -> int:
"""
None
"""
def Parabola(self) -> OCP.gp.gp_Parab2d:
"""
None
"""
def Period(self) -> float:
"""
None
"""
def Reset(self) -> None:
"""
Reset currently loaded curve (undone Load()).
"""
def Resolution(self,Ruv : float) -> float:
"""
returns the parametric resolution
"""
def ShallowCopy(self) -> OCP.Adaptor2d.Adaptor2d_Curve2d:
"""
Shallow copy of adaptor
"""
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 Trim(self,First : float,Last : float,Tol : float) -> OCP.Adaptor2d.Adaptor2d_Curve2d:
"""
Returns a curve equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>
"""
def Value(self,U : float) -> OCP.gp.gp_Pnt2d:
"""
Computes the point of parameter U on the curve
"""
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,E : OCP.TopoDS.TopoDS_Edge,F : OCP.TopoDS.TopoDS_Face) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepAdaptor_HArray1OfCurve(BRepAdaptor_Array1OfCurve, OCP.Standard.Standard_Transient):
def Array1(self) -> BRepAdaptor_Array1OfCurve:
"""
None
"""
def Assign(self,theOther : BRepAdaptor_Array1OfCurve) -> BRepAdaptor_Array1OfCurve:
"""
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 ChangeArray1(self) -> BRepAdaptor_Array1OfCurve:
"""
None
"""
def DecrementRefCounter(self) -> int:
"""
Decrements the reference counter of this object; returns the decremented value
"""
def Delete(self) -> None:
"""
Memory deallocator for transient classes
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def Init(self,theValue : BRepAdaptor_Curve) -> None:
"""
Initialise the items with theValue
"""
def IsDeletable(self) -> bool:
"""
None
"""
def IsEmpty(self) -> bool:
"""
Return TRUE if array has zero length.
"""
@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 Length(self) -> int:
"""
Length query (the same)
"""
def Lower(self) -> int:
"""
Lower bound
"""
def Move(self,theOther : BRepAdaptor_Array1OfCurve) -> BRepAdaptor_Array1OfCurve:
"""
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 : BRepAdaptor_Curve) -> None:
"""
Set value
"""
def Size(self) -> int:
"""
Size query
"""
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 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) -> BRepAdaptor_Curve: ...
@overload
def __init__(self,theLower : int,theUpper : int) -> None: ...
@overload
def __init__(self,theOther : BRepAdaptor_Array1OfCurve) -> None: ...
@overload
def __init__(self,theLower : int,theUpper : int,theValue : BRepAdaptor_Curve) -> None: ...
@overload
def __init__(self,theBegin : BRepAdaptor_Curve,theLower : int,theUpper : int,arg4 : bool) -> None: ...
@overload
def __init__(self) -> None: ...
def __iter__(self) -> Iterator[BRepAdaptor_Curve]: ...
def __len__(self) -> int: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class BRepAdaptor_Surface(OCP.Adaptor3d.Adaptor3d_Surface, OCP.Standard.Standard_Transient):
"""
The Surface from BRepAdaptor allows to use a Face of the BRep topology look like a 3D surface.The Surface from BRepAdaptor allows to use a Face of the BRep topology look like a 3D surface.
"""
def AxeOfRevolution(self) -> OCP.gp.gp_Ax1:
"""
None
"""
def BSpline(self) -> OCP.Geom.Geom_BSplineSurface:
"""
Warning : this will make a copy of the BSpline Surface since it applies to it the myTsrf transformation Be Careful when using this method
"""
def BasisCurve(self) -> OCP.Adaptor3d.Adaptor3d_Curve:
"""
only for SurfaceOfExtrusion and SurfaceOfRevolution Warning: this will make a copy of the underlying curve since it applies to it the transformation myTrsf. Be careful when using this method.
"""
def BasisSurface(self) -> OCP.Adaptor3d.Adaptor3d_Surface:
"""
None
"""
def Bezier(self) -> OCP.Geom.Geom_BezierSurface:
"""
None
"""
def ChangeSurface(self) -> OCP.GeomAdaptor.GeomAdaptor_Surface:
"""
Returns the surface.
"""
def Cone(self) -> OCP.gp.gp_Cone:
"""
None
"""
def Cylinder(self) -> OCP.gp.gp_Cylinder:
"""
None
"""
def D0(self,U : float,V : float,P : OCP.gp.gp_Pnt) -> None:
"""
Computes the point of parameters U,V on the surface.
"""
def D1(self,U : float,V : float,P : OCP.gp.gp_Pnt,D1U : OCP.gp.gp_Vec,D1V : OCP.gp.gp_Vec) -> None:
"""
Computes the point and the first derivatives on the surface. Raised if the continuity of the current intervals is not C1.
"""
def D2(self,U : float,V : float,P : OCP.gp.gp_Pnt,D1U : OCP.gp.gp_Vec,D1V : OCP.gp.gp_Vec,D2U : OCP.gp.gp_Vec,D2V : OCP.gp.gp_Vec,D2UV : OCP.gp.gp_Vec) -> None:
"""
Computes the point, the first and second derivatives on the surface. Raised if the continuity of the current intervals is not C2.
"""
def D3(self,U : float,V : float,P : OCP.gp.gp_Pnt,D1U : OCP.gp.gp_Vec,D1V : OCP.gp.gp_Vec,D2U : OCP.gp.gp_Vec,D2V : OCP.gp.gp_Vec,D2UV : OCP.gp.gp_Vec,D3U : OCP.gp.gp_Vec,D3V : OCP.gp.gp_Vec,D3UUV : OCP.gp.gp_Vec,D3UVV : OCP.gp.gp_Vec) -> None:
"""
Computes the point, the first, second and third derivatives on the surface. Raised if the continuity of the current intervals is not C3.
"""
def DN(self,U : float,V : float,Nu : int,Nv : int) -> OCP.gp.gp_Vec:
"""
Computes the derivative of order Nu in the direction U and Nv in the direction V at the point P(U, V). Raised if the current U interval is not not CNu and the current V interval is not CNv. Raised if Nu + Nv < 1 or Nu < 0 or Nv < 0.
"""
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 Direction(self) -> OCP.gp.gp_Dir:
"""
None
"""
def DynamicType(self) -> OCP.Standard.Standard_Type:
"""
None
"""
def Face(self) -> OCP.TopoDS.TopoDS_Face:
"""
Returns the face.
"""
def FirstUParameter(self) -> float:
"""
None
"""
def FirstVParameter(self) -> float:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def GetType(self) -> OCP.GeomAbs.GeomAbs_SurfaceType:
"""
Returns the type of the surface : Plane, Cylinder, Cone, Sphere, Torus, BezierSurface, BSplineSurface, SurfaceOfRevolution, SurfaceOfExtrusion, OtherSurface
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
def Initialize(self,F : OCP.TopoDS.TopoDS_Face,Restriction : bool=True) -> None:
"""
Sets the surface to the geometry of <F>.
"""
@overload
def IsInstance(self,theType : OCP.Standard.Standard_Type) -> bool:
"""
Returns a true value if this is an instance of Type.
Returns a true value if this is an instance of TypeName.
"""
@overload
def IsInstance(self,theTypeName : str) -> bool: ...
@overload
def IsKind(self,theTypeName : str) -> bool:
"""
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
"""
@overload
def IsKind(self,theType : OCP.Standard.Standard_Type) -> bool: ...
def IsUClosed(self) -> bool:
"""
None
"""
def IsUPeriodic(self) -> bool:
"""
None
"""
def IsURational(self) -> bool:
"""
None
"""
def IsVClosed(self) -> bool:
"""
None
"""
def IsVPeriodic(self) -> bool:
"""
None
"""
def IsVRational(self) -> bool:
"""
None
"""
def LastUParameter(self) -> float:
"""
None
"""
def LastVParameter(self) -> float:
"""
None
"""
def NbUIntervals(self,theSh : OCP.GeomAbs.GeomAbs_Shape) -> int:
"""
If necessary, breaks the surface in U intervals of continuity <S>. And returns the number of intervals.
"""
def NbUKnots(self) -> int:
"""
None
"""
def NbUPoles(self) -> int:
"""
None
"""
def NbVIntervals(self,theSh : OCP.GeomAbs.GeomAbs_Shape) -> int:
"""
If necessary, breaks the surface in V intervals of continuity <S>. And returns the number of intervals.
"""
def NbVKnots(self) -> int:
"""
None
"""
def NbVPoles(self) -> int:
"""
None
"""
def OffsetValue(self) -> float:
"""
None
"""
def Plane(self) -> OCP.gp.gp_Pln:
"""
None
"""
def ShallowCopy(self) -> OCP.Adaptor3d.Adaptor3d_Surface:
"""
Shallow copy of adaptor
"""
def Sphere(self) -> OCP.gp.gp_Sphere:
"""
None
"""
def Surface(self) -> OCP.GeomAdaptor.GeomAdaptor_Surface:
"""
Returns the surface.
"""
def This(self) -> OCP.Standard.Standard_Transient:
"""
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
"""
def Tolerance(self) -> float:
"""
Returns the face tolerance.
"""
def Torus(self) -> OCP.gp.gp_Torus:
"""
None
"""
def Trsf(self) -> OCP.gp.gp_Trsf:
"""
Returns the surface coordinate system.
"""
def UContinuity(self) -> OCP.GeomAbs.GeomAbs_Shape:
"""
None
"""
def UDegree(self) -> int:
"""
None
"""
def UIntervals(self,T : OCP.TColStd.TColStd_Array1OfReal,S : OCP.GeomAbs.GeomAbs_Shape) -> None:
"""
Returns the intervals with the requested continuity in the U direction.
"""
def UPeriod(self) -> float:
"""
None
"""
def UResolution(self,theR3d : float) -> float:
"""
Returns the parametric U resolution corresponding to the real space resolution <R3d>.
"""
def UTrim(self,First : float,Last : float,Tol : float) -> OCP.Adaptor3d.Adaptor3d_Surface:
"""
Returns a surface trimmed in the U direction equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>
"""
def VContinuity(self) -> OCP.GeomAbs.GeomAbs_Shape:
"""
None
"""
def VDegree(self) -> int:
"""
None
"""
def VIntervals(self,T : OCP.TColStd.TColStd_Array1OfReal,S : OCP.GeomAbs.GeomAbs_Shape) -> None:
"""
Returns the intervals with the requested continuity in the V direction.
"""
def VPeriod(self) -> float:
"""
None
"""
def VResolution(self,theR3d : float) -> float:
"""
Returns the parametric V resolution corresponding to the real space resolution <R3d>.
"""
def VTrim(self,First : float,Last : float,Tol : float) -> OCP.Adaptor3d.Adaptor3d_Surface:
"""
Returns a surface trimmed in the V direction between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>
"""
def Value(self,U : float,V : float) -> OCP.gp.gp_Pnt:
"""
Computes the point of parameters U,V on the surface. Tip: use GeomLib::NormEstim() to calculate surface normal at specified (U, V) point.
"""
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,F : OCP.TopoDS.TopoDS_Face,R : bool=True) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
|