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
|
import OCP.BRepMAT2d
from typing import *
from typing import Iterable as iterable
from typing import Iterator as iterator
from numpy import float64
_Shape = Tuple[int, ...]
import OCP.Bisector
import OCP.TColGeom2d
import OCP.Geom2d
import OCP.NCollection
import OCP.MAT
import OCP.gp
import OCP.TColStd
import OCP.TopoDS
import io
__all__ = [
"BRepMAT2d_BisectingLocus",
"BRepMAT2d_DataMapOfBasicEltShape",
"BRepMAT2d_DataMapOfShapeSequenceOfBasicElt",
"BRepMAT2d_Explorer",
"BRepMAT2d_LinkTopoBilo"
]
class BRepMAT2d_BisectingLocus():
"""
BisectingLocus generates and contains the Bisecting_Locus of a set of lines from Geom2d, defined by <ExploSet>.
"""
def BasicElt(self,IndLine : int,Index : int) -> OCP.MAT.MAT_BasicElt:
"""
Returns the BasicElts located at the position <Index> on the contour designed by <IndLine>. Remark: the BasicElts on a contour are sorted.
"""
def Compute(self,anExplo : BRepMAT2d_Explorer,LineIndex : int=1,aSide : OCP.MAT.MAT_Side=MAT_Side.MAT_Left,aJoinType : OCP.GeomAbs.GeomAbs_JoinType=GeomAbs_JoinType.GeomAbs_Arc,IsOpenResult : bool=False) -> None:
"""
Computation of the Bisector_Locus in a set of Lines defined in <anExplo>. The bisecting locus are computed on the side <aSide> from the line <LineIndex> in <anExplo>.
"""
def GeomBis(self,anArc : OCP.MAT.MAT_Arc,Reverse : bool) -> OCP.Bisector.Bisector_Bisec:
"""
Returns the geometry of type <Bissec> linked to the arc <ARC>. <Reverse> is False when the FirstNode of <anArc> correspond to the first point of geometry.
"""
@overload
def GeomElt(self,aBasicElt : OCP.MAT.MAT_BasicElt) -> OCP.Geom2d.Geom2d_Geometry:
"""
Returns the geometry linked to the <BasicElt>.
Returns the geometry of type <gp> linked to the <Node>.
"""
@overload
def GeomElt(self,aNode : OCP.MAT.MAT_Node) -> OCP.gp.gp_Pnt2d: ...
def Graph(self) -> OCP.MAT.MAT_Graph:
"""
Returns <theGraph> of <me>.
"""
def IsDone(self) -> bool:
"""
Returns True if Compute has succeeded.
"""
def NumberOfContours(self) -> int:
"""
Returns the number of contours.
"""
def NumberOfElts(self,IndLine : int) -> int:
"""
Returns the number of BasicElts on the line <IndLine>.
"""
def NumberOfSections(self,IndLine : int,Index : int) -> int:
"""
Returns the number of sections of a curve. this curve is the Indexth curve in the IndLineth contour given by anExplo.
"""
def __init__(self) -> None: ...
pass
class BRepMAT2d_DataMapOfBasicEltShape(OCP.NCollection.NCollection_BaseMap):
"""
Purpose: The DataMap is a Map to store keys with associated Items. See Map from NCollection for a discussion about the number of buckets.
"""
def Allocator(self) -> OCP.NCollection.NCollection_BaseAllocator:
"""
Returns attached allocator
"""
def Assign(self,theOther : BRepMAT2d_DataMapOfBasicEltShape) -> BRepMAT2d_DataMapOfBasicEltShape:
"""
Assignment. This method does not change the internal allocator.
"""
def Bind(self,theKey : OCP.MAT.MAT_BasicElt,theItem : OCP.TopoDS.TopoDS_Shape) -> bool:
"""
Bind binds Item to Key in map.
"""
def Bound(self,theKey : OCP.MAT.MAT_BasicElt,theItem : OCP.TopoDS.TopoDS_Shape) -> OCP.TopoDS.TopoDS_Shape:
"""
Bound binds Item to Key in map.
"""
def ChangeFind(self,theKey : OCP.MAT.MAT_BasicElt) -> OCP.TopoDS.TopoDS_Shape:
"""
ChangeFind returns mofifiable Item by Key. Raises if Key was not bound
"""
def ChangeSeek(self,theKey : OCP.MAT.MAT_BasicElt) -> OCP.TopoDS.TopoDS_Shape:
"""
ChangeSeek returns modifiable pointer to Item by Key. Returns NULL is Key was not bound.
"""
@overload
def Clear(self,doReleaseMemory : bool=False) -> None:
"""
Clear data. If doReleaseMemory is false then the table of buckets is not released and will be reused.
Clear data and reset allocator
"""
@overload
def Clear(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator) -> None: ...
def Exchange(self,theOther : BRepMAT2d_DataMapOfBasicEltShape) -> None:
"""
Exchange the content of two maps without re-allocations. Notice that allocators will be swapped as well!
"""
def Extent(self) -> int:
"""
Extent
"""
@overload
def Find(self,theKey : OCP.MAT.MAT_BasicElt,theValue : OCP.TopoDS.TopoDS_Shape) -> bool:
"""
Find returns the Item for Key. Raises if Key was not bound
Find Item for key with copying.
"""
@overload
def Find(self,theKey : OCP.MAT.MAT_BasicElt) -> OCP.TopoDS.TopoDS_Shape: ...
def IsBound(self,theKey : OCP.MAT.MAT_BasicElt) -> bool:
"""
IsBound
"""
def IsEmpty(self) -> bool:
"""
IsEmpty
"""
def NbBuckets(self) -> int:
"""
NbBuckets
"""
def ReSize(self,N : int) -> None:
"""
ReSize
"""
def Seek(self,theKey : OCP.MAT.MAT_BasicElt) -> OCP.TopoDS.TopoDS_Shape:
"""
Seek returns pointer to Item by Key. Returns NULL is Key was not bound.
"""
def Size(self) -> int:
"""
Size
"""
def Statistics(self,S : io.BytesIO) -> None:
"""
Statistics
"""
def UnBind(self,theKey : OCP.MAT.MAT_BasicElt) -> bool:
"""
UnBind removes Item Key pair from map
"""
def __call__(self,theKey : OCP.MAT.MAT_BasicElt) -> OCP.TopoDS.TopoDS_Shape: ...
@overload
def __init__(self,theNbBuckets : int,theAllocator : OCP.NCollection.NCollection_BaseAllocator=None) -> None: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theOther : BRepMAT2d_DataMapOfBasicEltShape) -> None: ...
def __iter__(self) -> Iterator[OCP.TopoDS.TopoDS_Shape]: ...
def __len__(self) -> int: ...
pass
class BRepMAT2d_DataMapOfShapeSequenceOfBasicElt(OCP.NCollection.NCollection_BaseMap):
"""
Purpose: The DataMap is a Map to store keys with associated Items. See Map from NCollection for a discussion about the number of buckets.
"""
def Allocator(self) -> OCP.NCollection.NCollection_BaseAllocator:
"""
Returns attached allocator
"""
def Assign(self,theOther : BRepMAT2d_DataMapOfShapeSequenceOfBasicElt) -> BRepMAT2d_DataMapOfShapeSequenceOfBasicElt:
"""
Assignment. This method does not change the internal allocator.
"""
def Bind(self,theKey : OCP.TopoDS.TopoDS_Shape,theItem : OCP.MAT.MAT_SequenceOfBasicElt) -> bool:
"""
Bind binds Item to Key in map.
"""
def Bound(self,theKey : OCP.TopoDS.TopoDS_Shape,theItem : OCP.MAT.MAT_SequenceOfBasicElt) -> OCP.MAT.MAT_SequenceOfBasicElt:
"""
Bound binds Item to Key in map.
"""
def ChangeFind(self,theKey : OCP.TopoDS.TopoDS_Shape) -> OCP.MAT.MAT_SequenceOfBasicElt:
"""
ChangeFind returns mofifiable Item by Key. Raises if Key was not bound
"""
def ChangeSeek(self,theKey : OCP.TopoDS.TopoDS_Shape) -> OCP.MAT.MAT_SequenceOfBasicElt:
"""
ChangeSeek returns modifiable pointer to Item by Key. Returns NULL is Key was not bound.
"""
@overload
def Clear(self,theAllocator : OCP.NCollection.NCollection_BaseAllocator) -> None:
"""
Clear data. If doReleaseMemory is false then the table of buckets is not released and will be reused.
Clear data and reset allocator
"""
@overload
def Clear(self,doReleaseMemory : bool=False) -> None: ...
def Exchange(self,theOther : BRepMAT2d_DataMapOfShapeSequenceOfBasicElt) -> None:
"""
Exchange the content of two maps without re-allocations. Notice that allocators will be swapped as well!
"""
def Extent(self) -> int:
"""
Extent
"""
@overload
def Find(self,theKey : OCP.TopoDS.TopoDS_Shape,theValue : OCP.MAT.MAT_SequenceOfBasicElt) -> bool:
"""
Find returns the Item for Key. Raises if Key was not bound
Find Item for key with copying.
"""
@overload
def Find(self,theKey : OCP.TopoDS.TopoDS_Shape) -> OCP.MAT.MAT_SequenceOfBasicElt: ...
def IsBound(self,theKey : OCP.TopoDS.TopoDS_Shape) -> bool:
"""
IsBound
"""
def IsEmpty(self) -> bool:
"""
IsEmpty
"""
def NbBuckets(self) -> int:
"""
NbBuckets
"""
def ReSize(self,N : int) -> None:
"""
ReSize
"""
def Seek(self,theKey : OCP.TopoDS.TopoDS_Shape) -> OCP.MAT.MAT_SequenceOfBasicElt:
"""
Seek returns pointer to Item by Key. Returns NULL is Key was not bound.
"""
def Size(self) -> int:
"""
Size
"""
def Statistics(self,S : io.BytesIO) -> None:
"""
Statistics
"""
def UnBind(self,theKey : OCP.TopoDS.TopoDS_Shape) -> bool:
"""
UnBind removes Item Key pair from map
"""
def __call__(self,theKey : OCP.TopoDS.TopoDS_Shape) -> OCP.MAT.MAT_SequenceOfBasicElt: ...
@overload
def __init__(self,theOther : BRepMAT2d_DataMapOfShapeSequenceOfBasicElt) -> None: ...
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,theNbBuckets : int,theAllocator : OCP.NCollection.NCollection_BaseAllocator=None) -> None: ...
def __iter__(self) -> Iterator[OCP.MAT.MAT_SequenceOfBasicElt]: ...
def __len__(self) -> int: ...
pass
class BRepMAT2d_Explorer():
"""
Construct an explorer from wires, face, set of curves from Geom2d to compute the bisecting Locus.
"""
def Clear(self) -> None:
"""
Clear the contents of <me>.
"""
def Contour(self,IndexContour : int) -> OCP.TColGeom2d.TColGeom2d_SequenceOfCurve:
"""
None
"""
def GetIsClosed(self) -> OCP.TColStd.TColStd_SequenceOfBoolean:
"""
None
"""
def Init(self,IndexContour : int) -> None:
"""
Initialisation of an Iterator on the curves of the Contour number <IndexContour>.
"""
def IsModified(self,aShape : OCP.TopoDS.TopoDS_Shape) -> bool:
"""
None
"""
def ModifiedShape(self,aShape : OCP.TopoDS.TopoDS_Shape) -> OCP.TopoDS.TopoDS_Shape:
"""
If the shape is not modified, returns the shape itself.
"""
def More(self) -> bool:
"""
Return False if there is no more curves on the Contour initialised by the method Init.
"""
def Next(self) -> None:
"""
Move to the next curve of the current Contour.
"""
def NumberOfContours(self) -> int:
"""
Returns the Number of contours.
"""
def NumberOfCurves(self,IndexContour : int) -> int:
"""
Returns the Number of Curves in the Contour number <IndexContour>.
"""
def Perform(self,aFace : OCP.TopoDS.TopoDS_Face) -> None:
"""
None
"""
def Shape(self) -> OCP.TopoDS.TopoDS_Shape:
"""
None
"""
def Value(self) -> OCP.Geom2d.Geom2d_Curve:
"""
Returns the current curve on the current Contour.
"""
@overload
def __init__(self,aFace : OCP.TopoDS.TopoDS_Face) -> None: ...
@overload
def __init__(self) -> None: ...
pass
class BRepMAT2d_LinkTopoBilo():
"""
Constructs links between the Wire or the Face of the explorer and the BasicElts contained in the bisecting locus.
"""
def GeneratingShape(self,aBE : OCP.MAT.MAT_BasicElt) -> OCP.TopoDS.TopoDS_Shape:
"""
Returns the Shape linked to <aBE>.
"""
def Init(self,S : OCP.TopoDS.TopoDS_Shape) -> None:
"""
Initialise the Iterator on <S> <S> is an edge or a vertex of the initial wire or face. raises if <S> is not an edge or a vertex.
"""
def More(self) -> bool:
"""
Returns True if there is a current BasicElt.
"""
def Next(self) -> None:
"""
Proceed to the next BasicElt.
"""
def Perform(self,Explo : BRepMAT2d_Explorer,BiLo : BRepMAT2d_BisectingLocus) -> None:
"""
Constructs the links Between S and BiLo.
"""
def Value(self) -> OCP.MAT.MAT_BasicElt:
"""
Returns the current BasicElt.
"""
@overload
def __init__(self) -> None: ...
@overload
def __init__(self,Explo : BRepMAT2d_Explorer,BiLo : BRepMAT2d_BisectingLocus) -> None: ...
pass
|