forked from tpaviot/pythonocc-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBRepTools.pyi
More file actions
278 lines (262 loc) · 12.4 KB
/
BRepTools.pyi
File metadata and controls
278 lines (262 loc) · 12.4 KB
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
from enum import IntEnum
from typing import overload, NewType, Optional, Tuple
from OCC.Core.Standard import *
from OCC.Core.NCollection import *
from OCC.Core.TopoDS import *
from OCC.Core.Bnd import *
from OCC.Core.Geom import *
from OCC.Core.Geom2d import *
from OCC.Core.TopTools import *
from OCC.Core.TopAbs import *
from OCC.Core.BRep import *
from OCC.Core.Message import *
from OCC.Core.GeomAbs import *
from OCC.Core.TopLoc import *
from OCC.Core.gp import *
from OCC.Core.Poly import *
class breptools:
@overload
@staticmethod
def AddUVBounds(F: TopoDS_Face, B: Bnd_Box2d) -> None: ...
@overload
@staticmethod
def AddUVBounds(F: TopoDS_Face, W: TopoDS_Wire, B: Bnd_Box2d) -> None: ...
@overload
@staticmethod
def AddUVBounds(F: TopoDS_Face, E: TopoDS_Edge, B: Bnd_Box2d) -> None: ...
@staticmethod
def Clean(S: TopoDS_Shape) -> None: ...
@staticmethod
def CleanGeometry(theShape: TopoDS_Shape) -> None: ...
@overload
@staticmethod
def Compare(V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> bool: ...
@overload
@staticmethod
def Compare(E1: TopoDS_Edge, E2: TopoDS_Edge) -> bool: ...
@staticmethod
def DetectClosedness(theFace: TopoDS_Face) -> Tuple[bool, bool]: ...
@staticmethod
def EvalAndUpdateTol(theE: TopoDS_Edge, theC3d: Geom_Curve, theC2d: Geom2d_Curve, theS: Geom_Surface, theF: float, theL: float) -> float: ...
@staticmethod
def IsReallyClosed(E: TopoDS_Edge, F: TopoDS_Face) -> bool: ...
@staticmethod
def Map3DEdges(S: TopoDS_Shape, M: TopTools_IndexedMapOfShape) -> None: ...
@staticmethod
def OriEdgeInFace(theEdge: TopoDS_Edge, theFace: TopoDS_Face) -> TopAbs_Orientation: ...
@staticmethod
def OuterWire(F: TopoDS_Face) -> TopoDS_Wire: ...
@overload
@staticmethod
def Read(Sh: TopoDS_Shape, File: str, B: BRep_Builder, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ...
@staticmethod
def RemoveInternals(theS: TopoDS_Shape, theForce: Optional[bool] = False) -> None: ...
@staticmethod
def RemoveUnusedPCurves(S: TopoDS_Shape) -> None: ...
@staticmethod
def Triangulation(theShape: TopoDS_Shape, theLinDefl: float, theToCheckFreeEdges: Optional[bool] = False) -> bool: ...
@overload
@staticmethod
def UVBounds(F: TopoDS_Face) -> Tuple[float, float, float, float]: ...
@overload
@staticmethod
def UVBounds(F: TopoDS_Face, W: TopoDS_Wire) -> Tuple[float, float, float, float]: ...
@overload
@staticmethod
def UVBounds(F: TopoDS_Face, E: TopoDS_Edge) -> Tuple[float, float, float, float]: ...
@overload
@staticmethod
def Update(V: TopoDS_Vertex) -> None: ...
@overload
@staticmethod
def Update(E: TopoDS_Edge) -> None: ...
@overload
@staticmethod
def Update(W: TopoDS_Wire) -> None: ...
@overload
@staticmethod
def Update(F: TopoDS_Face) -> None: ...
@overload
@staticmethod
def Update(S: TopoDS_Shell) -> None: ...
@overload
@staticmethod
def Update(S: TopoDS_Solid) -> None: ...
@overload
@staticmethod
def Update(C: TopoDS_CompSolid) -> None: ...
@overload
@staticmethod
def Update(C: TopoDS_Compound) -> None: ...
@overload
@staticmethod
def Update(S: TopoDS_Shape) -> None: ...
@staticmethod
def UpdateFaceUVPoints(theF: TopoDS_Face) -> None: ...
@overload
@staticmethod
def Write(Sh: TopoDS_Shape, File: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ...
class BRepTools_History(Standard_Transient):
def AddGenerated(self, theInitial: TopoDS_Shape, theGenerated: TopoDS_Shape) -> None: ...
def AddModified(self, theInitial: TopoDS_Shape, theModified: TopoDS_Shape) -> None: ...
def Clear(self) -> None: ...
def Generated(self, theInitial: TopoDS_Shape) -> TopTools_ListOfShape: ...
def HasGenerated(self) -> bool: ...
def HasModified(self) -> bool: ...
def HasRemoved(self) -> bool: ...
def IsRemoved(self, theInitial: TopoDS_Shape) -> bool: ...
@staticmethod
def IsSupportedType(theShape: TopoDS_Shape) -> bool: ...
def Modified(self, theInitial: TopoDS_Shape) -> TopTools_ListOfShape: ...
def Remove(self, theRemoved: TopoDS_Shape) -> None: ...
def ReplaceGenerated(self, theInitial: TopoDS_Shape, theGenerated: TopoDS_Shape) -> None: ...
def ReplaceModified(self, theInitial: TopoDS_Shape, theModified: TopoDS_Shape) -> None: ...
class BRepTools_Modification(Standard_Transient):
def Continuity(self, E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face, NewE: TopoDS_Edge, NewF1: TopoDS_Face, NewF2: TopoDS_Face) -> GeomAbs_Shape: ...
def NewCurve(self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location) -> Tuple[bool, float]: ...
def NewCurve2d(self, E: TopoDS_Edge, F: TopoDS_Face, NewE: TopoDS_Edge, NewF: TopoDS_Face, C: Geom2d_Curve) -> Tuple[bool, float]: ...
def NewParameter(self, V: TopoDS_Vertex, E: TopoDS_Edge) -> Tuple[bool, float, float]: ...
def NewPoint(self, V: TopoDS_Vertex, P: gp_Pnt) -> Tuple[bool, float]: ...
def NewPolygon(self, E: TopoDS_Edge, P: Poly_Polygon3D) -> bool: ...
def NewPolygonOnTriangulation(self, E: TopoDS_Edge, F: TopoDS_Face, P: Poly_PolygonOnTriangulation) -> bool: ...
def NewSurface(self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location) -> Tuple[bool, float, bool, bool]: ...
def NewTriangulation(self, F: TopoDS_Face, T: Poly_Triangulation) -> bool: ...
class BRepTools_Modifier:
@overload
def __init__(self, theMutableInput: Optional[bool] = False) -> None: ...
@overload
def __init__(self, S: TopoDS_Shape) -> None: ...
@overload
def __init__(self, S: TopoDS_Shape, M: BRepTools_Modification) -> None: ...
def Init(self, S: TopoDS_Shape) -> None: ...
def IsDone(self) -> bool: ...
def IsMutableInput(self) -> bool: ...
def ModifiedShape(self, S: TopoDS_Shape) -> TopoDS_Shape: ...
def Perform(self, M: BRepTools_Modification, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
def SetMutableInput(self, theMutableInput: bool) -> None: ...
class BRepTools_Quilt:
def __init__(self) -> None: ...
def Add(self, S: TopoDS_Shape) -> None: ...
@overload
def Bind(self, Eold: TopoDS_Edge, Enew: TopoDS_Edge) -> None: ...
@overload
def Bind(self, Vold: TopoDS_Vertex, Vnew: TopoDS_Vertex) -> None: ...
def Copy(self, S: TopoDS_Shape) -> TopoDS_Shape: ...
def IsCopied(self, S: TopoDS_Shape) -> bool: ...
def Shells(self) -> TopoDS_Shape: ...
class BRepTools_ReShape(Standard_Transient):
def __init__(self) -> None: ...
def Apply(self, shape: TopoDS_Shape, until: Optional[TopAbs_ShapeEnum] = TopAbs_SHAPE) -> TopoDS_Shape: ...
def Clear(self) -> None: ...
@overload
def CopyVertex(self, theV: TopoDS_Vertex, theTol: Optional[float] = -1.0) -> TopoDS_Vertex: ...
@overload
def CopyVertex(self, theV: TopoDS_Vertex, theNewPos: gp_Pnt, aTol: float) -> TopoDS_Vertex: ...
def History(self) -> BRepTools_History: ...
def IsNewShape(self, theShape: TopoDS_Shape) -> bool: ...
def IsRecorded(self, shape: TopoDS_Shape) -> bool: ...
def ModeConsiderLocation(self) -> bool: ...
def Remove(self, shape: TopoDS_Shape) -> None: ...
def Replace(self, shape: TopoDS_Shape, newshape: TopoDS_Shape) -> None: ...
def Status(self, shape: TopoDS_Shape, newsh: TopoDS_Shape, last: Optional[bool] = False) -> int: ...
def Value(self, shape: TopoDS_Shape) -> TopoDS_Shape: ...
class BRepTools_ShapeSet(TopTools_ShapeSet):
@overload
def __init__(self, isWithTriangles: Optional[bool] = True) -> None: ...
@overload
def __init__(self, B: BRep_Builder, isWithTriangles: Optional[bool] = True) -> None: ...
def AddGeometry(self, S: TopoDS_Shape) -> None: ...
def AddShapes(self, S1: TopoDS_Shape, S2: TopoDS_Shape) -> None: ...
def Check(self, T: TopAbs_ShapeEnum, S: TopoDS_Shape) -> None: ...
def Clear(self) -> None: ...
class BRepTools_Substitution:
def __init__(self) -> None: ...
def Build(self, S: TopoDS_Shape) -> None: ...
def Clear(self) -> None: ...
def Copy(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ...
def IsCopied(self, S: TopoDS_Shape) -> bool: ...
def Substitute(self, OldShape: TopoDS_Shape, NewShapes: TopTools_ListOfShape) -> None: ...
class BRepTools_WireExplorer:
@overload
def __init__(self) -> None: ...
@overload
def __init__(self, W: TopoDS_Wire) -> None: ...
@overload
def __init__(self, W: TopoDS_Wire, F: TopoDS_Face) -> None: ...
def Clear(self) -> None: ...
def Current(self) -> TopoDS_Edge: ...
def CurrentVertex(self) -> TopoDS_Vertex: ...
@overload
def Init(self, W: TopoDS_Wire) -> None: ...
@overload
def Init(self, W: TopoDS_Wire, F: TopoDS_Face) -> None: ...
@overload
def Init(self, W: TopoDS_Wire, F: TopoDS_Face, UMin: float, UMax: float, VMin: float, VMax: float) -> None: ...
def More(self) -> bool: ...
def Next(self) -> None: ...
def Orientation(self) -> TopAbs_Orientation: ...
class BRepTools_GTrsfModification(BRepTools_Modification):
def __init__(self, T: gp_GTrsf) -> None: ...
def Continuity(self, E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face, NewE: TopoDS_Edge, NewF1: TopoDS_Face, NewF2: TopoDS_Face) -> GeomAbs_Shape: ...
def GTrsf(self) -> gp_GTrsf: ...
def NewCurve(self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location) -> Tuple[bool, float]: ...
def NewCurve2d(self, E: TopoDS_Edge, F: TopoDS_Face, NewE: TopoDS_Edge, NewF: TopoDS_Face, C: Geom2d_Curve) -> Tuple[bool, float]: ...
def NewParameter(self, V: TopoDS_Vertex, E: TopoDS_Edge) -> Tuple[bool, float, float]: ...
def NewPoint(self, V: TopoDS_Vertex, P: gp_Pnt) -> Tuple[bool, float]: ...
def NewSurface(self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location) -> Tuple[bool, float, bool, bool]: ...
class BRepTools_NurbsConvertModification(BRepTools_Modification):
def __init__(self) -> None: ...
def Continuity(self, E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face, NewE: TopoDS_Edge, NewF1: TopoDS_Face, NewF2: TopoDS_Face) -> GeomAbs_Shape: ...
def GetUpdatedEdges(self) -> TopTools_ListOfShape: ...
def NewCurve(self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location) -> Tuple[bool, float]: ...
def NewCurve2d(self, E: TopoDS_Edge, F: TopoDS_Face, NewE: TopoDS_Edge, NewF: TopoDS_Face, C: Geom2d_Curve) -> Tuple[bool, float]: ...
def NewParameter(self, V: TopoDS_Vertex, E: TopoDS_Edge) -> Tuple[bool, float, float]: ...
def NewPoint(self, V: TopoDS_Vertex, P: gp_Pnt) -> Tuple[bool, float]: ...
def NewSurface(self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location) -> Tuple[bool, float, bool, bool]: ...
class BRepTools_TrsfModification(BRepTools_Modification):
def __init__(self, T: gp_Trsf) -> None: ...
def Continuity(self, E: TopoDS_Edge, F1: TopoDS_Face, F2: TopoDS_Face, NewE: TopoDS_Edge, NewF1: TopoDS_Face, NewF2: TopoDS_Face) -> GeomAbs_Shape: ...
def NewCurve(self, E: TopoDS_Edge, C: Geom_Curve, L: TopLoc_Location) -> Tuple[bool, float]: ...
def NewCurve2d(self, E: TopoDS_Edge, F: TopoDS_Face, NewE: TopoDS_Edge, NewF: TopoDS_Face, C: Geom2d_Curve) -> Tuple[bool, float]: ...
def NewParameter(self, V: TopoDS_Vertex, E: TopoDS_Edge) -> Tuple[bool, float, float]: ...
def NewPoint(self, V: TopoDS_Vertex, P: gp_Pnt) -> Tuple[bool, float]: ...
def NewSurface(self, F: TopoDS_Face, S: Geom_Surface, L: TopLoc_Location) -> Tuple[bool, float, bool, bool]: ...
def Trsf(self) -> gp_Trsf: ...
# harray1 classes
# harray2 classes
# hsequence classes
breptools_AddUVBounds = breptools.AddUVBounds
breptools_AddUVBounds = breptools.AddUVBounds
breptools_AddUVBounds = breptools.AddUVBounds
breptools_Clean = breptools.Clean
breptools_CleanGeometry = breptools.CleanGeometry
breptools_Compare = breptools.Compare
breptools_Compare = breptools.Compare
breptools_DetectClosedness = breptools.DetectClosedness
breptools_Dump = breptools.Dump
breptools_EvalAndUpdateTol = breptools.EvalAndUpdateTol
breptools_IsReallyClosed = breptools.IsReallyClosed
breptools_Map3DEdges = breptools.Map3DEdges
breptools_OriEdgeInFace = breptools.OriEdgeInFace
breptools_OuterWire = breptools.OuterWire
breptools_Read = breptools.Read
breptools_Read = breptools.Read
breptools_RemoveInternals = breptools.RemoveInternals
breptools_RemoveUnusedPCurves = breptools.RemoveUnusedPCurves
breptools_Triangulation = breptools.Triangulation
breptools_UVBounds = breptools.UVBounds
breptools_UVBounds = breptools.UVBounds
breptools_UVBounds = breptools.UVBounds
breptools_Update = breptools.Update
breptools_Update = breptools.Update
breptools_Update = breptools.Update
breptools_Update = breptools.Update
breptools_Update = breptools.Update
breptools_Update = breptools.Update
breptools_Update = breptools.Update
breptools_Update = breptools.Update
breptools_Update = breptools.Update
breptools_UpdateFaceUVPoints = breptools.UpdateFaceUVPoints
breptools_Write = breptools.Write
breptools_Write = breptools.Write
BRepTools_History_IsSupportedType = BRepTools_History.IsSupportedType