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
|
import OCP.Approx
from typing import *
from typing import Iterable as iterable
from typing import Iterator as iterator
from numpy import float64
_Shape = Tuple[int, ...]
import OCP.AppParCurves
import io
import OCP.NCollection
import OCP.Geom
import OCP.AppCont
import OCP.TColStd
import OCP.gp
import OCP.TColgp
import OCP.Adaptor2d
import OCP.Standard
import OCP.Adaptor3d
import OCP.Geom2d
import OCP.GeomAbs
__all__ = [
"Approx_Array1OfAdHSurface",
"Approx_Array1OfGTrsf2d",
"Approx_Curve2d",
"Approx_Curve3d",
"Approx_CurveOnSurface",
"Approx_CurvilinearParameter",
"Approx_CurvlinFunc",
"Approx_FitAndDivide",
"Approx_FitAndDivide2d",
"Approx_HArray1OfAdHSurface",
"Approx_HArray1OfGTrsf2d",
"Approx_MCurvesToBSpCurve",
"Approx_ParametrizationType",
"Approx_SameParameter",
"Approx_SequenceOfHArray1OfReal",
"Approx_Status",
"Approx_SweepApproximation",
"Approx_SweepFunction",
"Approx_Centripetal",
"Approx_ChordLength",
"Approx_IsoParametric",
"Approx_NoApproximation",
"Approx_NoPointsAdded",
"Approx_PointsAdded"
]
class Approx_Array1OfAdHSurface():
"""
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 : Approx_Array1OfAdHSurface) -> Approx_Array1OfAdHSurface:
"""
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.Adaptor3d.Adaptor3d_Surface) -> 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 : Approx_Array1OfAdHSurface) -> Approx_Array1OfAdHSurface:
"""
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.Adaptor3d.Adaptor3d_Surface) -> 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.Adaptor3d.Adaptor3d_Surface: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theAlloc : Any,theLower : int,theUpper : int) -> None: ...
@overload
def __init__(self,theOther : Approx_Array1OfAdHSurface) -> None: ...
@overload
def __init__(self,theLower : int,theUpper : int) -> None: ...
def __iter__(self) -> Iterator[OCP.Adaptor3d.Adaptor3d_Surface]: ...
def __len__(self) -> int: ...
pass
class Approx_Array1OfGTrsf2d():
"""
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 : Approx_Array1OfGTrsf2d) -> Approx_Array1OfGTrsf2d:
"""
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_GTrsf2d) -> 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 : Approx_Array1OfGTrsf2d) -> Approx_Array1OfGTrsf2d:
"""
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_GTrsf2d) -> 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_GTrsf2d: ...
@overload
def __init__(self,theOther : Approx_Array1OfGTrsf2d) -> None: ...
@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: ...
def __iter__(self) -> Iterator[OCP.gp.gp_GTrsf2d]: ...
def __len__(self) -> int: ...
pass
class Approx_Curve2d():
"""
Makes an approximation for HCurve2d from Adaptor3d
"""
def Curve(self) -> OCP.Geom2d.Geom2d_BSplineCurve:
"""
None
"""
def HasResult(self) -> bool:
"""
None
"""
def IsDone(self) -> bool:
"""
None
"""
def MaxError2dU(self) -> float:
"""
None
"""
def MaxError2dV(self) -> float:
"""
None
"""
def __init__(self,C2D : OCP.Adaptor2d.Adaptor2d_Curve2d,First : float,Last : float,TolU : float,TolV : float,Continuity : OCP.GeomAbs.GeomAbs_Shape,MaxDegree : int,MaxSegments : int) -> None: ...
pass
class Approx_Curve3d():
"""
None
"""
def Curve(self) -> OCP.Geom.Geom_BSplineCurve:
"""
None
"""
def Dump(self,o : io.BytesIO) -> None:
"""
Print on the stream o information about the object
"""
def HasResult(self) -> bool:
"""
returns Standard_True if the approximation did come out with a result that is not NECESSARELY within the required tolerance
"""
def IsDone(self) -> bool:
"""
returns Standard_True if the approximation has been done within required tolerance
"""
def MaxError(self) -> float:
"""
returns the Maximum Error (>0 when an approximation has been done, 0 if no approximation)
"""
def __init__(self,Curve : OCP.Adaptor3d.Adaptor3d_Curve,Tol3d : float,Order : OCP.GeomAbs.GeomAbs_Shape,MaxSegments : int,MaxDegree : int) -> None: ...
pass
class Approx_CurveOnSurface():
"""
Approximation of curve on surface
"""
def Curve2d(self) -> OCP.Geom2d.Geom2d_BSplineCurve:
"""
None
"""
def Curve3d(self) -> OCP.Geom.Geom_BSplineCurve:
"""
None
"""
def HasResult(self) -> bool:
"""
None
"""
def IsDone(self) -> bool:
"""
None
"""
def MaxError2dU(self) -> float:
"""
None
"""
def MaxError2dV(self) -> float:
"""
returns the maximum errors relatively to the U component or the V component of the 2d Curve
"""
def MaxError3d(self) -> float:
"""
None
"""
def Perform(self,theMaxSegments : int,theMaxDegree : int,theContinuity : OCP.GeomAbs.GeomAbs_Shape,theOnly3d : bool=False,theOnly2d : bool=False) -> None:
"""
Constructs the 3d curve. Input parameters are ignored when the input curve is U-isoline or V-isoline.
"""
@overload
def __init__(self,C2D : OCP.Adaptor2d.Adaptor2d_Curve2d,Surf : OCP.Adaptor3d.Adaptor3d_Surface,First : float,Last : float,Tol : float,Continuity : OCP.GeomAbs.GeomAbs_Shape,MaxDegree : int,MaxSegments : int,Only3d : bool=False,Only2d : bool=False) -> None: ...
@overload
def __init__(self,theC2D : OCP.Adaptor2d.Adaptor2d_Curve2d,theSurf : OCP.Adaptor3d.Adaptor3d_Surface,theFirst : float,theLast : float,theTol : float) -> None: ...
pass
class Approx_CurvilinearParameter():
"""
Approximation of a Curve to make its parameter be its curvilinear abscissa. If the curve is a curve on a surface S, C2D is the corresponding Pcurve, we consider the curve is given by its representation If the curve is a curve on 2 surfaces S1 and S2 and C2D1 C2D2 are the two corresponding Pcurve, we consider the curve is given by its representation
"""
def Curve2d1(self) -> OCP.Geom2d.Geom2d_BSplineCurve:
"""
returns the BsplineCurve representing the reparametrized 2D curve on the first surface (case of a curve on one or two surfaces)
"""
def Curve2d2(self) -> OCP.Geom2d.Geom2d_BSplineCurve:
"""
returns the BsplineCurve representing the reparametrized 2D curve on the second surface (case of a curve on two surfaces)
"""
def Curve3d(self) -> OCP.Geom.Geom_BSplineCurve:
"""
returns the Bspline curve corresponding to the reparametrized 3D curve
"""
def Dump(self,o : io.BytesIO) -> None:
"""
print the maximum errors(s)
"""
def HasResult(self) -> bool:
"""
None
"""
def IsDone(self) -> bool:
"""
None
"""
def MaxError2d1(self) -> float:
"""
returns the maximum error on the first reparametrized 2D curve
"""
def MaxError2d2(self) -> float:
"""
returns the maximum error on the second reparametrized 2D curve
"""
def MaxError3d(self) -> float:
"""
returns the maximum error on the reparametrized 3D curve
"""
@overload
def __init__(self,C2D1 : OCP.Adaptor2d.Adaptor2d_Curve2d,Surf1 : OCP.Adaptor3d.Adaptor3d_Surface,C2D2 : OCP.Adaptor2d.Adaptor2d_Curve2d,Surf2 : OCP.Adaptor3d.Adaptor3d_Surface,Tol : float,Order : OCP.GeomAbs.GeomAbs_Shape,MaxDegree : int,MaxSegments : int) -> None: ...
@overload
def __init__(self,C2D : OCP.Adaptor2d.Adaptor2d_Curve2d,Surf : OCP.Adaptor3d.Adaptor3d_Surface,Tol : float,Order : OCP.GeomAbs.GeomAbs_Shape,MaxDegree : int,MaxSegments : int) -> None: ...
@overload
def __init__(self,C3D : OCP.Adaptor3d.Adaptor3d_Curve,Tol : float,Order : OCP.GeomAbs.GeomAbs_Shape,MaxDegree : int,MaxSegments : int) -> None: ...
pass
class Approx_CurvlinFunc(OCP.Standard.Standard_Transient):
"""
defines an abstract curve with curvilinear parametrizationdefines an abstract curve with curvilinear parametrization
"""
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 EvalCase1(self,S : float,Order : int,Result : OCP.TColStd.TColStd_Array1OfReal) -> bool:
"""
if myCase != 1
"""
def EvalCase2(self,S : float,Order : int,Result : OCP.TColStd.TColStd_Array1OfReal) -> bool:
"""
if myCase != 2
"""
def EvalCase3(self,S : float,Order : int,Result : OCP.TColStd.TColStd_Array1OfReal) -> bool:
"""
if myCase != 3
"""
def FirstParameter(self) -> float:
"""
None
"""
def GetLength(self) -> float:
"""
None
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def GetSParameter(self,U : float) -> float:
"""
returns original parameter corresponding S.
"""
def GetUParameter(self,C : OCP.Adaptor3d.Adaptor3d_Curve,S : float,NumberOfCurve : int) -> float:
"""
returns original parameter corresponding S. if Case == 1 computation is performed on myC2D1 and mySurf1, otherwise it is done on myC2D2 and mySurf2.
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
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>.
"""
@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 LastParameter(self) -> float:
"""
None
"""
@overload
def Length(self) -> None:
"""
Computes length of the curve.
Computes length of the curve segment.
"""
@overload
def Length(self,C : OCP.Adaptor3d.Adaptor3d_Curve,FirstU : float,LasrU : float) -> float: ...
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 SetTol(self,Tol : float) -> None:
"""
---Purpose Update the tolerance to used
"""
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) -> None:
"""
if First < 0 or Last > 1
"""
@overload
def __init__(self,C2D1 : OCP.Adaptor2d.Adaptor2d_Curve2d,C2D2 : OCP.Adaptor2d.Adaptor2d_Curve2d,S1 : OCP.Adaptor3d.Adaptor3d_Surface,S2 : OCP.Adaptor3d.Adaptor3d_Surface,Tol : float) -> None: ...
@overload
def __init__(self,C : OCP.Adaptor3d.Adaptor3d_Curve,Tol : float) -> None: ...
@overload
def __init__(self,C2D : OCP.Adaptor2d.Adaptor2d_Curve2d,S : OCP.Adaptor3d.Adaptor3d_Surface,Tol : float) -> None: ...
@staticmethod
def get_type_descriptor_s() -> OCP.Standard.Standard_Type:
"""
None
"""
@staticmethod
def get_type_name_s() -> str:
"""
None
"""
pass
class Approx_FitAndDivide():
"""
None
"""
def Error(self,Index : int) -> tuple[float, float]:
"""
returns the tolerances 2d and 3d of the <Index> MultiCurve.
"""
def IsAllApproximated(self) -> bool:
"""
returns False if at a moment of the approximation, the status NoApproximation has been sent by the user when more points were needed.
"""
def IsToleranceReached(self) -> bool:
"""
returns False if the status NoPointsAdded has been sent.
"""
def NbMultiCurves(self) -> int:
"""
Returns the number of MultiCurve doing the approximation of the MultiLine.
"""
def Parameters(self,Index : int) -> tuple[float, float]:
"""
None
"""
def Perform(self,Line : OCP.AppCont.AppCont_Function) -> None:
"""
runs the algorithm after having initialized the fields.
"""
def SetConstraints(self,FirstC : OCP.AppParCurves.AppParCurves_Constraint,LastC : OCP.AppParCurves.AppParCurves_Constraint) -> None:
"""
Changes the constraints of the approximation.
"""
def SetDegrees(self,degreemin : int,degreemax : int) -> None:
"""
changes the degrees of the approximation.
"""
def SetHangChecking(self,theHangChecking : bool) -> None:
"""
Set value of hang checking flag if this flag = true, possible hang of algorithm is checked and algorithm is forced to stop. By default hang checking is used.
"""
def SetInvOrder(self,theInvOrder : bool) -> None:
"""
Set inverse order of degree selection: if theInvOrdr = true, current degree is chosen by inverse order - from maxdegree to mindegree. By default inverse order is used.
"""
def SetMaxSegments(self,theMaxSegments : int) -> None:
"""
Changes the max number of segments, which is allowed for cutting.
"""
def SetTolerances(self,Tolerance3d : float,Tolerance2d : float) -> None:
"""
Changes the tolerances of the approximation.
"""
def Value(self,Index : int=1) -> OCP.AppParCurves.AppParCurves_MultiCurve:
"""
returns the approximation MultiCurve of range <Index>.
"""
@overload
def __init__(self,degreemin : int=3,degreemax : int=8,Tolerance3d : float=1e-05,Tolerance2d : float=1e-05,cutting : bool=False,FirstC : OCP.AppParCurves.AppParCurves_Constraint=AppParCurves_Constraint.AppParCurves_TangencyPoint,LastC : OCP.AppParCurves.AppParCurves_Constraint=AppParCurves_Constraint.AppParCurves_TangencyPoint) -> None: ...
@overload
def __init__(self,Line : OCP.AppCont.AppCont_Function,degreemin : int=3,degreemax : int=8,Tolerance3d : float=1e-05,Tolerance2d : float=1e-05,cutting : bool=False,FirstC : OCP.AppParCurves.AppParCurves_Constraint=AppParCurves_Constraint.AppParCurves_TangencyPoint,LastC : OCP.AppParCurves.AppParCurves_Constraint=AppParCurves_Constraint.AppParCurves_TangencyPoint) -> None: ...
pass
class Approx_FitAndDivide2d():
"""
None
"""
def Error(self,Index : int) -> tuple[float, float]:
"""
returns the tolerances 2d and 3d of the <Index> MultiCurve.
"""
def IsAllApproximated(self) -> bool:
"""
returns False if at a moment of the approximation, the status NoApproximation has been sent by the user when more points were needed.
"""
def IsToleranceReached(self) -> bool:
"""
returns False if the status NoPointsAdded has been sent.
"""
def NbMultiCurves(self) -> int:
"""
Returns the number of MultiCurve doing the approximation of the MultiLine.
"""
def Parameters(self,Index : int) -> tuple[float, float]:
"""
None
"""
def Perform(self,Line : OCP.AppCont.AppCont_Function) -> None:
"""
runs the algorithm after having initialized the fields.
"""
def SetConstraints(self,FirstC : OCP.AppParCurves.AppParCurves_Constraint,LastC : OCP.AppParCurves.AppParCurves_Constraint) -> None:
"""
Changes the constraints of the approximation.
"""
def SetDegrees(self,degreemin : int,degreemax : int) -> None:
"""
changes the degrees of the approximation.
"""
def SetHangChecking(self,theHangChecking : bool) -> None:
"""
Set value of hang checking flag if this flag = true, possible hang of algorithm is checked and algorithm is forced to stop. By default hang checking is used.
"""
def SetInvOrder(self,theInvOrder : bool) -> None:
"""
Set inverse order of degree selection: if theInvOrdr = true, current degree is chosen by inverse order - from maxdegree to mindegree. By default inverse order is used.
"""
def SetMaxSegments(self,theMaxSegments : int) -> None:
"""
Changes the max number of segments, which is allowed for cutting.
"""
def SetTolerances(self,Tolerance3d : float,Tolerance2d : float) -> None:
"""
Changes the tolerances of the approximation.
"""
def Value(self,Index : int=1) -> OCP.AppParCurves.AppParCurves_MultiCurve:
"""
returns the approximation MultiCurve of range <Index>.
"""
@overload
def __init__(self,degreemin : int=3,degreemax : int=8,Tolerance3d : float=1e-05,Tolerance2d : float=1e-05,cutting : bool=False,FirstC : OCP.AppParCurves.AppParCurves_Constraint=AppParCurves_Constraint.AppParCurves_TangencyPoint,LastC : OCP.AppParCurves.AppParCurves_Constraint=AppParCurves_Constraint.AppParCurves_TangencyPoint) -> None: ...
@overload
def __init__(self,Line : OCP.AppCont.AppCont_Function,degreemin : int=3,degreemax : int=8,Tolerance3d : float=1e-05,Tolerance2d : float=1e-05,cutting : bool=False,FirstC : OCP.AppParCurves.AppParCurves_Constraint=AppParCurves_Constraint.AppParCurves_TangencyPoint,LastC : OCP.AppParCurves.AppParCurves_Constraint=AppParCurves_Constraint.AppParCurves_TangencyPoint) -> None: ...
pass
class Approx_HArray1OfAdHSurface(Approx_Array1OfAdHSurface, OCP.Standard.Standard_Transient):
def Array1(self) -> Approx_Array1OfAdHSurface:
"""
None
"""
def Assign(self,theOther : Approx_Array1OfAdHSurface) -> Approx_Array1OfAdHSurface:
"""
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) -> Approx_Array1OfAdHSurface:
"""
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 : OCP.Adaptor3d.Adaptor3d_Surface) -> 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 : Approx_Array1OfAdHSurface) -> Approx_Array1OfAdHSurface:
"""
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.Adaptor3d.Adaptor3d_Surface) -> 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) -> OCP.Adaptor3d.Adaptor3d_Surface: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theLower : int,theUpper : int) -> None: ...
@overload
def __init__(self,theOther : Approx_Array1OfAdHSurface) -> None: ...
@overload
def __init__(self,theBegin : OCP.Adaptor3d.Adaptor3d_Surface,theLower : int,theUpper : int,arg4 : bool) -> None: ...
@overload
def __init__(self,theLower : int,theUpper : int,theValue : OCP.Adaptor3d.Adaptor3d_Surface) -> None: ...
def __iter__(self) -> Iterator[OCP.Adaptor3d.Adaptor3d_Surface]: ...
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 Approx_HArray1OfGTrsf2d(Approx_Array1OfGTrsf2d, OCP.Standard.Standard_Transient):
def Array1(self) -> Approx_Array1OfGTrsf2d:
"""
None
"""
def Assign(self,theOther : Approx_Array1OfGTrsf2d) -> Approx_Array1OfGTrsf2d:
"""
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) -> Approx_Array1OfGTrsf2d:
"""
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 : OCP.gp.gp_GTrsf2d) -> 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 : Approx_Array1OfGTrsf2d) -> Approx_Array1OfGTrsf2d:
"""
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_GTrsf2d) -> 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) -> OCP.gp.gp_GTrsf2d: ...
@overload
def __init__(self,theOther : Approx_Array1OfGTrsf2d) -> None: ...
@overload
def __init__(self,theLower : int,theUpper : int,theValue : OCP.gp.gp_GTrsf2d) -> None: ...
@overload
def __init__(self,theLower : int,theUpper : int) -> None: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theBegin : OCP.gp.gp_GTrsf2d,theLower : int,theUpper : int,arg4 : bool) -> None: ...
def __iter__(self) -> Iterator[OCP.gp.gp_GTrsf2d]: ...
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 Approx_MCurvesToBSpCurve():
"""
None
"""
def Append(self,MC : OCP.AppParCurves.AppParCurves_MultiCurve) -> None:
"""
None
"""
def ChangeValue(self) -> OCP.AppParCurves.AppParCurves_MultiBSpCurve:
"""
return the composite MultiCurves as a MultiBSpCurve.
"""
@overload
def Perform(self) -> None:
"""
None
None
"""
@overload
def Perform(self,TheSeq : OCP.AppParCurves.AppParCurves_SequenceOfMultiCurve) -> None: ...
def Reset(self) -> None:
"""
None
"""
def Value(self) -> OCP.AppParCurves.AppParCurves_MultiBSpCurve:
"""
return the composite MultiCurves as a MultiBSpCurve.
"""
def __init__(self) -> None: ...
pass
class Approx_ParametrizationType():
"""
None
Members:
Approx_ChordLength
Approx_Centripetal
Approx_IsoParametric
"""
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
"""
Approx_Centripetal: OCP.Approx.Approx_ParametrizationType # value = <Approx_ParametrizationType.Approx_Centripetal: 1>
Approx_ChordLength: OCP.Approx.Approx_ParametrizationType # value = <Approx_ParametrizationType.Approx_ChordLength: 0>
Approx_IsoParametric: OCP.Approx.Approx_ParametrizationType # value = <Approx_ParametrizationType.Approx_IsoParametric: 2>
__entries: dict # value = {'Approx_ChordLength': (<Approx_ParametrizationType.Approx_ChordLength: 0>, None), 'Approx_Centripetal': (<Approx_ParametrizationType.Approx_Centripetal: 1>, None), 'Approx_IsoParametric': (<Approx_ParametrizationType.Approx_IsoParametric: 2>, None)}
__members__: dict # value = {'Approx_ChordLength': <Approx_ParametrizationType.Approx_ChordLength: 0>, 'Approx_Centripetal': <Approx_ParametrizationType.Approx_Centripetal: 1>, 'Approx_IsoParametric': <Approx_ParametrizationType.Approx_IsoParametric: 2>}
pass
class Approx_SameParameter():
"""
Approximation of a PCurve on a surface to make its parameter be the same that the parameter of a given 3d reference curve.
"""
def Curve2d(self) -> OCP.Geom2d.Geom2d_Curve:
"""
Returns the 2D curve that has the same parameter as the 3D curve once evaluated on the surface up to the specified tolerance.
"""
def Curve3d(self) -> OCP.Adaptor3d.Adaptor3d_Curve:
"""
Returns the 3D curve that has the same parameter as the 3D curve once evaluated on the surface up to the specified tolerance.
"""
def CurveOnSurface(self) -> OCP.Adaptor3d.Adaptor3d_CurveOnSurface:
"""
Returns the 3D curve on surface that has the same parameter as the 3D curve up to the specified tolerance.
"""
def IsDone(self) -> bool:
"""
Returns .false. if calculations failed, .true. if calculations succeed
"""
def IsSameParameter(self) -> bool:
"""
Tells whether the original data had already the same parameter up to the tolerance : in that case nothing is done.
"""
def TolReached(self) -> float:
"""
Returns tolerance (maximal distance) between 3d curve and curve on surface, generated by 2d curve and surface.
"""
@overload
def __init__(self,C3D : OCP.Adaptor3d.Adaptor3d_Curve,C2D : OCP.Geom2d.Geom2d_Curve,S : OCP.Adaptor3d.Adaptor3d_Surface,Tol : float) -> None: ...
@overload
def __init__(self,C3D : OCP.Geom.Geom_Curve,C2D : OCP.Geom2d.Geom2d_Curve,S : OCP.Geom.Geom_Surface,Tol : float) -> None: ...
@overload
def __init__(self,C3D : OCP.Adaptor3d.Adaptor3d_Curve,C2D : OCP.Adaptor2d.Adaptor2d_Curve2d,S : OCP.Adaptor3d.Adaptor3d_Surface,Tol : float) -> None: ...
pass
class Approx_SequenceOfHArray1OfReal(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 : OCP.TColStd.TColStd_HArray1OfReal) -> None:
"""
Append one item
Append another sequence (making it empty)
"""
@overload
def Append(self,theSeq : Approx_SequenceOfHArray1OfReal) -> None: ...
def Assign(self,theOther : Approx_SequenceOfHArray1OfReal) -> Approx_SequenceOfHArray1OfReal:
"""
Replace this sequence by the items of theOther. This method does not change the internal allocator.
"""
def ChangeFirst(self) -> OCP.TColStd.TColStd_HArray1OfReal:
"""
First item access
"""
def ChangeLast(self) -> OCP.TColStd.TColStd_HArray1OfReal:
"""
Last item access
"""
def ChangeValue(self,theIndex : int) -> OCP.TColStd.TColStd_HArray1OfReal:
"""
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) -> OCP.TColStd.TColStd_HArray1OfReal:
"""
First item access
"""
@overload
def InsertAfter(self,theIndex : int,theItem : OCP.TColStd.TColStd_HArray1OfReal) -> None:
"""
InsertAfter theIndex another sequence (making it empty)
InsertAfter theIndex theItem
"""
@overload
def InsertAfter(self,theIndex : int,theSeq : Approx_SequenceOfHArray1OfReal) -> None: ...
@overload
def InsertBefore(self,theIndex : int,theItem : OCP.TColStd.TColStd_HArray1OfReal) -> None:
"""
InsertBefore theIndex theItem
InsertBefore theIndex another sequence (making it empty)
"""
@overload
def InsertBefore(self,theIndex : int,theSeq : Approx_SequenceOfHArray1OfReal) -> None: ...
def IsEmpty(self) -> bool:
"""
Empty query
"""
def Last(self) -> OCP.TColStd.TColStd_HArray1OfReal:
"""
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 : OCP.TColStd.TColStd_HArray1OfReal) -> None:
"""
Prepend one item
Prepend another sequence (making it empty)
"""
@overload
def Prepend(self,theSeq : Approx_SequenceOfHArray1OfReal) -> 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 : OCP.TColStd.TColStd_HArray1OfReal) -> None:
"""
Set item value by theIndex
"""
def Size(self) -> int:
"""
Number of items
"""
def Split(self,theIndex : int,theSeq : Approx_SequenceOfHArray1OfReal) -> None:
"""
Split in two sequences
"""
def Upper(self) -> int:
"""
Method for consistency with other collections.
"""
def Value(self,theIndex : int) -> OCP.TColStd.TColStd_HArray1OfReal:
"""
Constant item access by theIndex
"""
def __bool__(self) -> bool: ...
def __call__(self,theIndex : int) -> OCP.TColStd.TColStd_HArray1OfReal:
"""
Constant operator()
Variable operator()
"""
@overload
def __init__(self,theOther : Approx_SequenceOfHArray1OfReal) -> None: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator) -> None: ...
def __iter__(self) -> Iterator[OCP.TColStd.TColStd_HArray1OfReal]: ...
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 Approx_Status():
"""
It is an auxiliary flag being used in inner computations
Members:
Approx_PointsAdded
Approx_NoPointsAdded
Approx_NoApproximation
"""
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
"""
Approx_NoApproximation: OCP.Approx.Approx_Status # value = <Approx_Status.Approx_NoApproximation: 2>
Approx_NoPointsAdded: OCP.Approx.Approx_Status # value = <Approx_Status.Approx_NoPointsAdded: 1>
Approx_PointsAdded: OCP.Approx.Approx_Status # value = <Approx_Status.Approx_PointsAdded: 0>
__entries: dict # value = {'Approx_PointsAdded': (<Approx_Status.Approx_PointsAdded: 0>, None), 'Approx_NoPointsAdded': (<Approx_Status.Approx_NoPointsAdded: 1>, None), 'Approx_NoApproximation': (<Approx_Status.Approx_NoApproximation: 2>, None)}
__members__: dict # value = {'Approx_PointsAdded': <Approx_Status.Approx_PointsAdded: 0>, 'Approx_NoPointsAdded': <Approx_Status.Approx_NoPointsAdded: 1>, 'Approx_NoApproximation': <Approx_Status.Approx_NoApproximation: 2>}
pass
class Approx_SweepApproximation():
"""
Approximation of an Surface S(u,v) (and eventually associate 2d Curves) defined by section's law.
"""
def Average2dError(self,Index : int) -> float:
"""
returns the average error of the <Index> 2d curve approximation.
"""
def AverageErrorOnSurf(self) -> float:
"""
returns the average error in the surface approximation.
"""
def Curve2d(self,Index : int,TPoles : OCP.TColgp.TColgp_Array1OfPnt2d,TKnots : OCP.TColStd.TColStd_Array1OfReal,TMults : OCP.TColStd.TColStd_Array1OfInteger) -> None:
"""
None
"""
def Curve2dPoles(self,Index : int) -> OCP.TColgp.TColgp_Array1OfPnt2d:
"""
None
None
"""
def Curves2dDegree(self) -> int:
"""
None
None
"""
def Curves2dKnots(self) -> OCP.TColStd.TColStd_Array1OfReal:
"""
None
None
"""
def Curves2dMults(self) -> OCP.TColStd.TColStd_Array1OfInteger:
"""
None
None
"""
def Curves2dShape(self) -> tuple[int, int, int]:
"""
None
"""
def Dump(self,o : io.BytesIO) -> None:
"""
display information on approximation.
"""
def Eval(self,Parameter : float,DerivativeRequest : int,First : float,Last : float,Result : float) -> int:
"""
The EvaluatorFunction from AdvApprox;
"""
def IsDone(self) -> bool:
"""
returns if we have an result
returns if we have an result
"""
def Max2dError(self,Index : int) -> float:
"""
returns the maximum error of the <Index> 2d curve approximation.
"""
def MaxErrorOnSurf(self) -> float:
"""
returns the maximum error in the surface approximation.
"""
def NbCurves2d(self) -> int:
"""
None
None
"""
def Perform(self,First : float,Last : float,Tol3d : float,BoundTol : float,Tol2d : float,TolAngular : float,Continuity : OCP.GeomAbs.GeomAbs_Shape=GeomAbs_Shape.GeomAbs_C0,Degmax : int=11,Segmax : int=50) -> None:
"""
Perform the Approximation [First, Last] : Approx_SweepApproximation.cdl Tol3d : Tolerance to surface approximation Tol2d : Tolerance used to perform curve approximation Normally the 2d curve are approximated with a tolerance given by the resolution on support surfaces, but if this tolerance is too large Tol2d is used. TolAngular : Tolerance (in radian) to control the angle between tangents on the section law and tangent of iso-v on approximated surface Continuity : The continuity in v waiting on the surface Degmax : The maximum degree in v required on the surface Segmax : The maximum number of span in v required on the surface Warning : The continuity ci can be obtained only if Ft is Ci
"""
def SurfPoles(self) -> OCP.TColgp.TColgp_Array2OfPnt:
"""
None
None
"""
def SurfShape(self) -> tuple[int, int, int, int, int, int]:
"""
None
"""
def SurfUKnots(self) -> OCP.TColStd.TColStd_Array1OfReal:
"""
None
None
"""
def SurfUMults(self) -> OCP.TColStd.TColStd_Array1OfInteger:
"""
None
None
"""
def SurfVKnots(self) -> OCP.TColStd.TColStd_Array1OfReal:
"""
None
None
"""
def SurfVMults(self) -> OCP.TColStd.TColStd_Array1OfInteger:
"""
None
None
"""
def SurfWeights(self) -> OCP.TColStd.TColStd_Array2OfReal:
"""
None
None
"""
def Surface(self,TPoles : OCP.TColgp.TColgp_Array2OfPnt,TWeights : OCP.TColStd.TColStd_Array2OfReal,TUKnots : OCP.TColStd.TColStd_Array1OfReal,TVKnots : OCP.TColStd.TColStd_Array1OfReal,TUMults : OCP.TColStd.TColStd_Array1OfInteger,TVMults : OCP.TColStd.TColStd_Array1OfInteger) -> None:
"""
None
"""
def TolCurveOnSurf(self,Index : int) -> float:
"""
returns the maximum 3d error of the <Index> 2d curve approximation on the Surface.
"""
def UDegree(self) -> int:
"""
None
None
"""
def VDegree(self) -> int:
"""
None
None
"""
def __init__(self,Func : Approx_SweepFunction) -> None: ...
pass
class Approx_SweepFunction(OCP.Standard.Standard_Transient):
"""
defined the function used by SweepApproximation to perform sweeping application.defined the function used by SweepApproximation to perform sweeping application.defined the function used by SweepApproximation to perform sweeping application.
"""
def BarycentreOfSurf(self) -> OCP.gp.gp_Pnt:
"""
Get the barycentre of Surface. An very poor estimation is sufficient. This information is useful to perform well conditioned rational approximation. Warning: Used only if <me> IsRational
"""
def D0(self,Param : float,First : float,Last : float,Poles : OCP.TColgp.TColgp_Array1OfPnt,Poles2d : OCP.TColgp.TColgp_Array1OfPnt2d,Weigths : OCP.TColStd.TColStd_Array1OfReal) -> bool:
"""
compute the section for v = param
"""
def D1(self,Param : float,First : float,Last : float,Poles : OCP.TColgp.TColgp_Array1OfPnt,DPoles : OCP.TColgp.TColgp_Array1OfVec,Poles2d : OCP.TColgp.TColgp_Array1OfPnt2d,DPoles2d : OCP.TColgp.TColgp_Array1OfVec2d,Weigths : OCP.TColStd.TColStd_Array1OfReal,DWeigths : OCP.TColStd.TColStd_Array1OfReal) -> bool:
"""
compute the first derivative in v direction of the section for v = param Warning : It used only for C1 or C2 approximation
"""
def D2(self,Param : float,First : float,Last : float,Poles : OCP.TColgp.TColgp_Array1OfPnt,DPoles : OCP.TColgp.TColgp_Array1OfVec,D2Poles : OCP.TColgp.TColgp_Array1OfVec,Poles2d : OCP.TColgp.TColgp_Array1OfPnt2d,DPoles2d : OCP.TColgp.TColgp_Array1OfVec2d,D2Poles2d : OCP.TColgp.TColgp_Array1OfVec2d,Weigths : OCP.TColStd.TColStd_Array1OfReal,DWeigths : OCP.TColStd.TColStd_Array1OfReal,D2Weigths : OCP.TColStd.TColStd_Array1OfReal) -> bool:
"""
compute the second derivative in v direction of the section for v = param Warning : It used only for C2 approximation
"""
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 GetMinimalWeight(self,Weigths : OCP.TColStd.TColStd_Array1OfReal) -> None:
"""
Compute the minimal value of weight for each poles in all sections. This information is useful to control error in rational approximation. Warning: Used only if <me> IsRational
"""
def GetRefCount(self) -> int:
"""
Get the reference counter of this object
"""
def GetTolerance(self,BoundTol : float,SurfTol : float,AngleTol : float,Tol3d : OCP.TColStd.TColStd_Array1OfReal) -> None:
"""
Returns the tolerance to reach in approximation to satisfy. BoundTol error at the Boundary AngleTol tangent error at the Boundary (in radian) SurfTol error inside the surface.
"""
def IncrementRefCounter(self) -> None:
"""
Increments the reference counter of this object
"""
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>.
"""
@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 IsRational(self) -> bool:
"""
Returns if the sections are rationnal or not
"""
def Knots(self,TKnots : OCP.TColStd.TColStd_Array1OfReal) -> None:
"""
get the Knots of the section
"""
def MaximalSection(self) -> float:
"""
Returns the length of the greater section. Thisinformation is useful to G1's control. Warning: With an little value, approximation can be slower.
"""
def Mults(self,TMults : OCP.TColStd.TColStd_Array1OfInteger) -> None:
"""
get the Multplicities of the section
"""
def Nb2dCurves(self) -> int:
"""
get the number of 2d curves to approximate.
"""
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 Resolution(self,Index : int,Tol : float) -> tuple[float, float]:
"""
Returns the resolutions in the sub-space 2d <Index> This information is usfull to find an good tolerance in 2d approximation.
"""
def SectionShape(self) -> tuple[int, int, int]:
"""
get the format of an section
"""
def SetInterval(self,First : float,Last : float) -> None:
"""
Sets the bounds of the parametric interval on the fonction This determines the derivatives in these values if the function is not Cn.
"""
def SetTolerance(self,Tol3d : float,Tol2d : float) -> None:
"""
Is useful, if (me) have to run numerical algorithm to perform D0, D1 or D2
"""
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
Approx_Centripetal: OCP.Approx.Approx_ParametrizationType # value = <Approx_ParametrizationType.Approx_Centripetal: 1>
Approx_ChordLength: OCP.Approx.Approx_ParametrizationType # value = <Approx_ParametrizationType.Approx_ChordLength: 0>
Approx_IsoParametric: OCP.Approx.Approx_ParametrizationType # value = <Approx_ParametrizationType.Approx_IsoParametric: 2>
Approx_NoApproximation: OCP.Approx.Approx_Status # value = <Approx_Status.Approx_NoApproximation: 2>
Approx_NoPointsAdded: OCP.Approx.Approx_Status # value = <Approx_Status.Approx_NoPointsAdded: 1>
Approx_PointsAdded: OCP.Approx.Approx_Status # value = <Approx_Status.Approx_PointsAdded: 0>
|