MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.ObjBitSet Class Reference
+ Inheritance diagram for meshlib.mrmeshpy.ObjBitSet:

Public Member Functions

ObjBitSet __and__ (self, ObjBitSet b)
 
ObjBitSet __iand__ (self, ObjBitSet b)
 
None __init__ (self, BitSet src)
 
None __init__ (self, BitSet src)
 
None __init__ (self)
 
None __init__ (self, ObjBitSet arg0)
 
ObjBitSet __ior__ (self, ObjBitSet b)
 
ObjBitSet __isub__ (self, ObjBitSet b)
 
typing.Iterator __iter__ (self)
 
ObjBitSet __ixor__ (self, ObjBitSet b)
 
ObjBitSet __or__ (self, ObjBitSet b)
 
ObjBitSet __sub__ (self, ObjBitSet b)
 
ObjBitSet __xor__ (self, ObjBitSet b)
 
None autoResizeSet (self, ObjId pos, int len, bool val=True)
 
None autoResizeSet (self, ObjId pos, bool val=True)
 
bool autoResizeTestSet (self, ObjId pos, bool val=True)
 
ObjId backId (self)
 
ObjId endId (self)
 
ObjId find_first (self)
 
ObjId find_last (self)
 
ObjId find_next (self, ObjId pos)
 
ObjBitSet flip (self, ObjId n, int len)
 
ObjBitSet flip (self, ObjId n)
 
ObjBitSet flip (self)
 
ObjBitSet getMapping (self, ObjMap map)
 
ObjBitSet getMapping (self, BMap_ObjId_ObjId map)
 
ObjBitSet getMapping (self, phmap_flat_hash_map_Id_ObjTag_Id_ObjTag map)
 
ObjBitSet getMapping (self, ObjMap map, int resSize)
 
ObjBitSet getMapping (self, phmap_flat_hash_map_Id_ObjTag_Id_ObjTag map, int resSize)
 
ObjId nthSetBit (self, int n)
 
bool operator (self, ObjId pos)
 
ObjBitSet reset (self, ObjId n, int len)
 
ObjBitSet reset (self, ObjId n)
 
ObjBitSet reset (self)
 
ObjBitSet set (self, ObjId n, int len, bool val)
 
ObjBitSet set (self, ObjId n, bool val=True)
 
ObjBitSet set (self)
 
ObjBitSet subtract (self, ObjBitSet b, int bShiftInBlocks)
 
bool test (self, ObjId n)
 
bool test_set (self, ObjId n, bool val=True)
 
- Public Member Functions inherited from meshlib.mrmeshpy.BitSet
bool __eq__ (self, BitSet b)
 
None clear (self)
 
int count (self)
 
int heapBytes (self)
 
None pop_back (self)
 
None push_back (self, bool bit)
 
None resize (self, int num_bits, bool value=False)
 
None resizeWithReserve (self, int newSize)
 
int size (self)
 

Static Public Member Functions

ObjId beginId ()
 

Detailed Description

Generated from:  MR::ObjBitSet
Aliases:  AABBTreeBase_ObjTreeTraits.LeafBitSet, AABBTreeBase_ObjTreeTraits.LeafBitSet, TaggedBitSet_ObjTag, TaggedBitSet_AABBTreeBase_ObjTreeTraits_LeafTag

container of bits representing specific indices (faces, verts or edges)

Constructor & Destructor Documentation

◆ __init__() [1/4]

None meshlib.mrmeshpy.ObjBitSet.__init__ ( self,
BitSet src )
copies all bits from another BitSet (or a descending class, e.g. TaggedBitSet<U>)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __init__() [2/4]

None meshlib.mrmeshpy.ObjBitSet.__init__ ( self,
BitSet src )
moves all bits from another BitSet (or a descending class, e.g. TaggedBitSet<U>)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __init__() [3/4]

None meshlib.mrmeshpy.ObjBitSet.__init__ ( self)
Implicit default constructor.

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __init__() [4/4]

None meshlib.mrmeshpy.ObjBitSet.__init__ ( self,
ObjBitSet arg0 )
Implicit copy constructor.

Reimplemented from meshlib.mrmeshpy.BitSet.

Member Function Documentation

◆ __and__()

ObjBitSet meshlib.mrmeshpy.ObjBitSet.__and__ ( self,
ObjBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __iand__()

ObjBitSet meshlib.mrmeshpy.ObjBitSet.__iand__ ( self,
ObjBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __ior__()

ObjBitSet meshlib.mrmeshpy.ObjBitSet.__ior__ ( self,
ObjBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __isub__()

ObjBitSet meshlib.mrmeshpy.ObjBitSet.__isub__ ( self,
ObjBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __iter__()

typing.Iterator meshlib.mrmeshpy.ObjBitSet.__iter__ ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __ixor__()

ObjBitSet meshlib.mrmeshpy.ObjBitSet.__ixor__ ( self,
ObjBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __or__()

ObjBitSet meshlib.mrmeshpy.ObjBitSet.__or__ ( self,
ObjBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __sub__()

ObjBitSet meshlib.mrmeshpy.ObjBitSet.__sub__ ( self,
ObjBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __xor__()

ObjBitSet meshlib.mrmeshpy.ObjBitSet.__xor__ ( self,
ObjBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ autoResizeSet() [1/2]

None meshlib.mrmeshpy.ObjBitSet.autoResizeSet ( self,
ObjId pos,
bool len = True )
sets elements [pos, pos+len) to given value, adjusting the size of the set to include new elements

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ autoResizeSet() [2/2]

None meshlib.mrmeshpy.ObjBitSet.autoResizeSet ( self,
ObjId pos,
int len,
bool val = True )
sets elements [pos, pos+len) to given value, adjusting the size of the set to include new elements

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ autoResizeTestSet()

bool meshlib.mrmeshpy.ObjBitSet.autoResizeTestSet ( self,
ObjId pos,
bool val = True )
same as \\ref autoResizeSet and returns previous value of pos-bit

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ backId()

ObjId meshlib.mrmeshpy.ObjBitSet.backId ( self)
returns the identifier of the back() element

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ beginId()

ObjId meshlib.mrmeshpy.ObjBitSet.beginId ( )
static
[beginId(), endId()) is the range of all bits in the set

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ endId()

ObjId meshlib.mrmeshpy.ObjBitSet.endId ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ find_first()

ObjId meshlib.mrmeshpy.ObjBitSet.find_first ( self)

◆ find_last()

ObjId meshlib.mrmeshpy.ObjBitSet.find_last ( self)
return the highest index i such as bit i is set, or npos if *this has no on bits.

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ find_next()

ObjId meshlib.mrmeshpy.ObjBitSet.find_next ( self,
ObjId pos )

◆ flip() [1/3]

ObjBitSet meshlib.mrmeshpy.ObjBitSet.flip ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ flip() [2/3]

ObjBitSet meshlib.mrmeshpy.ObjBitSet.flip ( self,
ObjId n )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ flip() [3/3]

ObjBitSet meshlib.mrmeshpy.ObjBitSet.flip ( self,
ObjId n,
int len )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ getMapping() [1/5]

ObjBitSet meshlib.mrmeshpy.ObjBitSet.getMapping ( self,
BMap_ObjId_ObjId map )

◆ getMapping() [2/5]

ObjBitSet meshlib.mrmeshpy.ObjBitSet.getMapping ( self,
ObjMap map )

◆ getMapping() [3/5]

ObjBitSet meshlib.mrmeshpy.ObjBitSet.getMapping ( self,
ObjMap map,
int resSize )

◆ getMapping() [4/5]

ObjBitSet meshlib.mrmeshpy.ObjBitSet.getMapping ( self,
phmap_flat_hash_map_Id_ObjTag_Id_ObjTag map )

◆ getMapping() [5/5]

ObjBitSet meshlib.mrmeshpy.ObjBitSet.getMapping ( self,
phmap_flat_hash_map_Id_ObjTag_Id_ObjTag map,
int resSize )

◆ nthSetBit()

ObjId meshlib.mrmeshpy.ObjBitSet.nthSetBit ( self,
int n )
returns the location of nth set bit (where the first bit corresponds to n=0) or IndexType(npos) if there are less bit set

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ operator()

bool meshlib.mrmeshpy.ObjBitSet.operator ( self,
ObjId pos )

◆ reset() [1/3]

ObjBitSet meshlib.mrmeshpy.ObjBitSet.reset ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ reset() [2/3]

ObjBitSet meshlib.mrmeshpy.ObjBitSet.reset ( self,
ObjId n )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ reset() [3/3]

ObjBitSet meshlib.mrmeshpy.ObjBitSet.reset ( self,
ObjId n,
int len )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ set() [1/3]

ObjBitSet meshlib.mrmeshpy.ObjBitSet.set ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ set() [2/3]

ObjBitSet meshlib.mrmeshpy.ObjBitSet.set ( self,
ObjId n,
bool val = True )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ set() [3/3]

ObjBitSet meshlib.mrmeshpy.ObjBitSet.set ( self,
ObjId n,
int len,
bool val )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ subtract()

ObjBitSet meshlib.mrmeshpy.ObjBitSet.subtract ( self,
ObjBitSet b,
int bShiftInBlocks )
subtracts b from this, considering that bits in b are shifted right on bShiftInBlocks*bits_per_block

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ test()

bool meshlib.mrmeshpy.ObjBitSet.test ( self,
ObjId n )
all bits after size() we silently consider as not-set

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ test_set()

bool meshlib.mrmeshpy.ObjBitSet.test_set ( self,
ObjId n,
bool val = True )

Reimplemented from meshlib.mrmeshpy.BitSet.


The documentation for this class was generated from the following file: