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

Public Member Functions

VoxelBitSet __and__ (self, VoxelBitSet b)
 
VoxelBitSet __iand__ (self, VoxelBitSet b)
 
None __init__ (self, BitSet src)
 
None __init__ (self, BitSet src)
 
None __init__ (self)
 
None __init__ (self, VoxelBitSet arg0)
 
VoxelBitSet __ior__ (self, VoxelBitSet b)
 
VoxelBitSet __isub__ (self, VoxelBitSet b)
 
typing.Iterator __iter__ (self)
 
VoxelBitSet __ixor__ (self, VoxelBitSet b)
 
VoxelBitSet __or__ (self, VoxelBitSet b)
 
VoxelBitSet __sub__ (self, VoxelBitSet b)
 
VoxelBitSet __xor__ (self, VoxelBitSet b)
 
None autoResizeSet (self, Id_VoxelTag pos, int len, bool val=True)
 
None autoResizeSet (self, Id_VoxelTag pos, bool val=True)
 
bool autoResizeTestSet (self, Id_VoxelTag pos, bool val=True)
 
Id_VoxelTag backId (self)
 
Id_VoxelTag endId (self)
 
Id_VoxelTag find_first (self)
 
Id_VoxelTag find_last (self)
 
Id_VoxelTag find_next (self, Id_VoxelTag pos)
 
VoxelBitSet flip (self, Id_VoxelTag n, int len)
 
VoxelBitSet flip (self, Id_VoxelTag n)
 
VoxelBitSet flip (self)
 
VoxelBitSet getMapping (self, Vector_Id_VoxelTag_Id_VoxelTag map)
 
VoxelBitSet getMapping (self, BMap_Id_VoxelTag_Id_VoxelTag map)
 
VoxelBitSet getMapping (self, phmap_flat_hash_map_Id_VoxelTag_Id_VoxelTag map)
 
VoxelBitSet getMapping (self, Vector_Id_VoxelTag_Id_VoxelTag map, int resSize)
 
VoxelBitSet getMapping (self, phmap_flat_hash_map_Id_VoxelTag_Id_VoxelTag map, int resSize)
 
Id_VoxelTag nthSetBit (self, int n)
 
bool operator (self, Id_VoxelTag pos)
 
VoxelBitSet reset (self, Id_VoxelTag n, int len)
 
VoxelBitSet reset (self, Id_VoxelTag n)
 
VoxelBitSet reset (self)
 
VoxelBitSet set (self, Id_VoxelTag n, int len, bool val)
 
VoxelBitSet set (self, Id_VoxelTag n, bool val=True)
 
VoxelBitSet set (self)
 
VoxelBitSet subtract (self, VoxelBitSet b, int bShiftInBlocks)
 
bool test (self, Id_VoxelTag n)
 
bool test_set (self, Id_VoxelTag 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

Id_VoxelTag beginId ()
 

Detailed Description

Generated from:  MR::VoxelBitSet
Aliases:  TaggedBitSet_VoxelTag

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

Constructor & Destructor Documentation

◆ __init__() [1/4]

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __init__() [4/4]

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

Reimplemented from meshlib.mrmeshpy.BitSet.

Member Function Documentation

◆ __and__()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __iand__()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __ior__()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __isub__()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __iter__()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __ixor__()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __or__()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __sub__()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __xor__()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ autoResizeSet() [1/2]

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ backId()

Id_VoxelTag meshlib.mrmeshpy.VoxelBitSet.backId ( self)
returns the identifier of the back() element

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ beginId()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ endId()

Id_VoxelTag meshlib.mrmeshpy.VoxelBitSet.endId ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ find_first()

Id_VoxelTag meshlib.mrmeshpy.VoxelBitSet.find_first ( self)

◆ find_last()

Id_VoxelTag meshlib.mrmeshpy.VoxelBitSet.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()

Id_VoxelTag meshlib.mrmeshpy.VoxelBitSet.find_next ( self,
Id_VoxelTag pos )

◆ flip() [1/3]

VoxelBitSet meshlib.mrmeshpy.VoxelBitSet.flip ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ flip() [2/3]

VoxelBitSet meshlib.mrmeshpy.VoxelBitSet.flip ( self,
Id_VoxelTag n )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ flip() [3/3]

VoxelBitSet meshlib.mrmeshpy.VoxelBitSet.flip ( self,
Id_VoxelTag n,
int len )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ getMapping() [1/5]

VoxelBitSet meshlib.mrmeshpy.VoxelBitSet.getMapping ( self,
BMap_Id_VoxelTag_Id_VoxelTag map )

◆ getMapping() [2/5]

VoxelBitSet meshlib.mrmeshpy.VoxelBitSet.getMapping ( self,
phmap_flat_hash_map_Id_VoxelTag_Id_VoxelTag map )

◆ getMapping() [3/5]

VoxelBitSet meshlib.mrmeshpy.VoxelBitSet.getMapping ( self,
phmap_flat_hash_map_Id_VoxelTag_Id_VoxelTag map,
int resSize )

◆ getMapping() [4/5]

VoxelBitSet meshlib.mrmeshpy.VoxelBitSet.getMapping ( self,
Vector_Id_VoxelTag_Id_VoxelTag map )

◆ getMapping() [5/5]

VoxelBitSet meshlib.mrmeshpy.VoxelBitSet.getMapping ( self,
Vector_Id_VoxelTag_Id_VoxelTag map,
int resSize )

◆ nthSetBit()

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

◆ reset() [1/3]

VoxelBitSet meshlib.mrmeshpy.VoxelBitSet.reset ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ reset() [2/3]

VoxelBitSet meshlib.mrmeshpy.VoxelBitSet.reset ( self,
Id_VoxelTag n )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ reset() [3/3]

VoxelBitSet meshlib.mrmeshpy.VoxelBitSet.reset ( self,
Id_VoxelTag n,
int len )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ set() [1/3]

VoxelBitSet meshlib.mrmeshpy.VoxelBitSet.set ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ set() [2/3]

VoxelBitSet meshlib.mrmeshpy.VoxelBitSet.set ( self,
Id_VoxelTag n,
bool val = True )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ set() [3/3]

VoxelBitSet meshlib.mrmeshpy.VoxelBitSet.set ( self,
Id_VoxelTag n,
int len,
bool val )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ subtract()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ test_set()

bool meshlib.mrmeshpy.VoxelBitSet.test_set ( self,
Id_VoxelTag n,
bool val = True )

Reimplemented from meshlib.mrmeshpy.BitSet.


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