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

Public Member Functions

VertBitSet __and__ (self, VertBitSet b)
 
bool __eq__ (self, VertBitSet b)
 
VertBitSet __iand__ (self, VertBitSet b)
 
None __init__ (self, BitSet src)
 
None __init__ (self, BitSet src)
 
None __init__ (self)
 
None __init__ (self, VertBitSet arg0)
 
VertBitSet __ior__ (self, VertBitSet b)
 
VertBitSet __isub__ (self, VertBitSet b)
 
typing.Iterator __iter__ (self)
 
VertBitSet __ixor__ (self, VertBitSet b)
 
VertBitSet __or__ (self, VertBitSet b)
 
VertBitSet __sub__ (self, VertBitSet b)
 
VertBitSet __xor__ (self, VertBitSet b)
 
None autoResizeSet (self, VertId pos, int len, bool val=True)
 
None autoResizeSet (self, VertId pos, bool val=True)
 
bool autoResizeTestSet (self, VertId pos, bool val=True)
 
VertId backId (self)
 
VertId endId (self)
 
VertId find_first (self)
 
VertId find_last (self)
 
VertId find_next (self, VertId pos)
 
VertBitSet flip (self, VertId n, int len)
 
VertBitSet flip (self, VertId n)
 
VertBitSet flip (self)
 
VertBitSet getMapping (self, VertMap map)
 
VertBitSet getMapping (self, VertBMap map)
 
VertBitSet getMapping (self, phmap_flat_hash_map_Id_VertTag_Id_VertTag map)
 
VertBitSet getMapping (self, VertMap map, int resSize)
 
VertBitSet getMapping (self, phmap_flat_hash_map_Id_VertTag_Id_VertTag map, int resSize)
 
VertId nthSetBit (self, int n)
 
bool operator (self, VertId pos)
 
VertBitSet reset (self, VertId n, int len)
 
VertBitSet reset (self, VertId n)
 
VertBitSet reset (self)
 
VertBitSet set (self, VertId n, int len, bool val)
 
VertBitSet set (self, VertId n, bool val=True)
 
VertBitSet set (self)
 
VertBitSet subtract (self, VertBitSet b, int bShiftInBlocks)
 
bool test (self, VertId n)
 
bool test_set (self, VertId n, bool val=True)
 
- Public Member Functions inherited from meshlib.mrmeshpy.BitSet
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

VertId beginId ()
 

Detailed Description

Generated from:  MR::VertBitSet
Aliases:  ColorMapAggregator_VertTag_ElementBitSet, TaggedBitSet_VertTag, std_vector_VertBitSet_const_reference, std_vector_VertBitSet_reference, Vector_VertBitSet_ObjId.reference, std_vector_VertBitSet_value_type, Vector_VertBitSet_ObjId.const_reference, TaggedBitSet_VertTag, ColorMapAggregator_VertTag_ElementBitSet, Vector_VertBitSet_ObjId.value_type, TaggedBitSet_VertTag

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

Constructor & Destructor Documentation

◆ __init__() [1/4]

None meshlib.mrmeshpy.VertBitSet.__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.VertBitSet.__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.VertBitSet.__init__ ( self)
Implicit default constructor.

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __init__() [4/4]

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

Reimplemented from meshlib.mrmeshpy.BitSet.

Member Function Documentation

◆ __and__()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __eq__()

bool meshlib.mrmeshpy.VertBitSet.__eq__ ( self,
VertBitSet b )
compare that two bit sets have the same set bits (they can be equal even if sizes are distinct but last bits are off)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __iand__()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __ior__()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __isub__()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __iter__()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __ixor__()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __or__()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __sub__()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __xor__()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ autoResizeSet() [1/2]

None meshlib.mrmeshpy.VertBitSet.autoResizeSet ( self,
VertId 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.VertBitSet.autoResizeSet ( self,
VertId 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.VertBitSet.autoResizeTestSet ( self,
VertId pos,
bool val = True )
same as \\ref autoResizeSet and returns previous value of pos-bit

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ backId()

VertId meshlib.mrmeshpy.VertBitSet.backId ( self)
returns the identifier of the back() element

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ beginId()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ endId()

VertId meshlib.mrmeshpy.VertBitSet.endId ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ find_first()

VertId meshlib.mrmeshpy.VertBitSet.find_first ( self)

◆ find_last()

VertId meshlib.mrmeshpy.VertBitSet.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()

VertId meshlib.mrmeshpy.VertBitSet.find_next ( self,
VertId pos )

◆ flip() [1/3]

VertBitSet meshlib.mrmeshpy.VertBitSet.flip ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ flip() [2/3]

VertBitSet meshlib.mrmeshpy.VertBitSet.flip ( self,
VertId n )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ flip() [3/3]

VertBitSet meshlib.mrmeshpy.VertBitSet.flip ( self,
VertId n,
int len )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ getMapping() [1/5]

VertBitSet meshlib.mrmeshpy.VertBitSet.getMapping ( self,
phmap_flat_hash_map_Id_VertTag_Id_VertTag map )

◆ getMapping() [2/5]

VertBitSet meshlib.mrmeshpy.VertBitSet.getMapping ( self,
phmap_flat_hash_map_Id_VertTag_Id_VertTag map,
int resSize )

◆ getMapping() [3/5]

VertBitSet meshlib.mrmeshpy.VertBitSet.getMapping ( self,
VertBMap map )

◆ getMapping() [4/5]

VertBitSet meshlib.mrmeshpy.VertBitSet.getMapping ( self,
VertMap map )

◆ getMapping() [5/5]

VertBitSet meshlib.mrmeshpy.VertBitSet.getMapping ( self,
VertMap map,
int resSize )

◆ nthSetBit()

VertId meshlib.mrmeshpy.VertBitSet.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.VertBitSet.operator ( self,
VertId pos )

◆ reset() [1/3]

VertBitSet meshlib.mrmeshpy.VertBitSet.reset ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ reset() [2/3]

VertBitSet meshlib.mrmeshpy.VertBitSet.reset ( self,
VertId n )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ reset() [3/3]

VertBitSet meshlib.mrmeshpy.VertBitSet.reset ( self,
VertId n,
int len )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ set() [1/3]

VertBitSet meshlib.mrmeshpy.VertBitSet.set ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ set() [2/3]

VertBitSet meshlib.mrmeshpy.VertBitSet.set ( self,
VertId n,
bool val = True )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ set() [3/3]

VertBitSet meshlib.mrmeshpy.VertBitSet.set ( self,
VertId n,
int len,
bool val )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ subtract()

VertBitSet meshlib.mrmeshpy.VertBitSet.subtract ( self,
VertBitSet 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.VertBitSet.test ( self,
VertId n )
all bits after size() we silently consider as not-set

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ test_set()

bool meshlib.mrmeshpy.VertBitSet.test_set ( self,
VertId n,
bool val = True )

Reimplemented from meshlib.mrmeshpy.BitSet.


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