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

Public Member Functions

VoxelBitSet __and__ (self, VoxelBitSet b)
 
VoxelBitSet __iand__ (self, VoxelBitSet b)
 
None __init__ (self)
 
None __init__ (self, int numBits, bool fillValue=False)
 
None __init__ (self, BitSet src)
 
None __init__ (self, BitSet src)
 
None __init__ (self, VoxelBitSet arg0)
 
VoxelBitSet __ior__ (self, VoxelBitSet b)
 
VoxelBitSet __isub__ (self, VoxelBitSet b)
 
typing.Iterator[VoxelId__iter__ (self)
 
VoxelBitSet __ixor__ (self, VoxelBitSet b)
 
VoxelBitSet __or__ (self, VoxelBitSet b)
 
str __repr__ (self)
 
VoxelBitSet __sub__ (self, VoxelBitSet b)
 
VoxelBitSet __xor__ (self, VoxelBitSet b)
 
None autoResizeSet (self, VoxelId pos, int len, bool val=True)
 
None autoResizeSet (self, VoxelId pos, bool val=True)
 
bool autoResizeTestSet (self, VoxelId pos, bool val=True)
 
VoxelId backId (self)
 
VoxelId endId (self)
 
VoxelId find_first (self)
 
VoxelId find_last (self)
 
VoxelId find_next (self, VoxelId pos)
 
VoxelBitSet flip (self, VoxelId n, int len)
 
VoxelBitSet flip (self, VoxelId n)
 
VoxelBitSet flip (self)
 
VoxelBitSet getMapping (self, Vector_VoxelId_VoxelId map)
 
VoxelBitSet getMapping (self, BMap_VoxelId_VoxelId map)
 
VoxelBitSet getMapping (self, phmap_flat_hash_map_Id_VoxelTag_Id_VoxelTag map)
 
VoxelBitSet getMapping (self, Vector_VoxelId_VoxelId map, int resSize)
 
VoxelBitSet getMapping (self, phmap_flat_hash_map_Id_VoxelTag_Id_VoxelTag map, int resSize)
 
bool intersects (self, VoxelBitSet a)
 
bool is_subset_of (self, VoxelBitSet a)
 
VoxelId nthSetBit (self, int n)
 
VoxelBitSet reset (self, VoxelId n, int len)
 
VoxelBitSet reset (self, VoxelId n)
 
VoxelBitSet reset (self)
 
VoxelBitSet set (self, VoxelId n, int len, bool val)
 
VoxelBitSet set (self, VoxelId n, bool val)
 
VoxelBitSet set (self, VoxelId n)
 
VoxelBitSet set (self)
 
VoxelBitSet subtract (self, VoxelBitSet b, int bShiftInBlocks)
 
bool test (self, VoxelId n)
 
bool test_set (self, VoxelId n, bool val=True)
 
- Public Member Functions inherited from mrmeshpy.BitSet
bool __eq__ (self, BitSet b)
 
typing.Any __rlshift__ (self, typing.Any bs)
 
typing.Any __rrshift__ (self, typing.Any bs)
 
bool all (self)
 
bool any (self)
 
std_vector_unsigned_long bits (self)
 
int capacity (self)
 
None clear (self)
 
int count (self)
 
bool empty (self)
 
int heapBytes (self)
 
bool none (self)
 
int num_blocks (self)
 
None pop_back (self)
 
None push_back (self, bool val)
 
None reserve (self, int numBits)
 
None resize (self, int numBits, bool fillValue=False)
 
None resizeWithReserve (self, int newSize)
 
None reverse (self)
 
None shrink_to_fit (self)
 
int size (self)
 
bool uncheckedTest (self, int n)
 
bool uncheckedTestSet (self, int n, bool val=True)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
VoxelId beginId ()
 
VoxelBitSet operator (*args, **kwargs)
 
VoxelBitSet operator (*args, **kwargs)
 
- Static Public Member Functions inherited from mrmeshpy.BitSet
BitSet fromBlocks (std_vector_unsigned_long blocks)
 

Additional Inherited Members

- Static Public Attributes inherited from mrmeshpy.BitSet
typing bits_per_block = 64
 
typing npos = 18446744073709551615
 

Detailed Description

Generated from:  MR::VoxelBitSet

Vector<bool, I> like container (random-access, I - index type, bool - value type)
with all bits after size() considered off during testing

Constructor & Destructor Documentation

◆ __init__() [1/6]

None mrmeshpy.VoxelBitSet.__init__ ( * args,
** kwargs )
static

Reimplemented from mrmeshpy.BitSet.

◆ __init__() [2/6]

None mrmeshpy.VoxelBitSet.__init__ ( self)

Reimplemented from mrmeshpy.BitSet.

◆ __init__() [3/6]

None mrmeshpy.VoxelBitSet.__init__ ( self,
int numBits,
bool fillValue = False )
creates bitset of given size filled with given value

Reimplemented from mrmeshpy.BitSet.

◆ __init__() [4/6]

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

Reimplemented from mrmeshpy.BitSet.

◆ __init__() [5/6]

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

Reimplemented from mrmeshpy.BitSet.

◆ __init__() [6/6]

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

Reimplemented from mrmeshpy.BitSet.

Member Function Documentation

◆ __and__()

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

Reimplemented from mrmeshpy.BitSet.

◆ __iand__()

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

Reimplemented from mrmeshpy.BitSet.

◆ __ior__()

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

Reimplemented from mrmeshpy.BitSet.

◆ __isub__()

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

Reimplemented from mrmeshpy.BitSet.

◆ __iter__()

typing.Iterator[VoxelId] mrmeshpy.VoxelBitSet.__iter__ ( self)

Reimplemented from mrmeshpy.BitSet.

◆ __ixor__()

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

Reimplemented from mrmeshpy.BitSet.

◆ __or__()

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

Reimplemented from mrmeshpy.BitSet.

◆ __repr__()

str mrmeshpy.VoxelBitSet.__repr__ ( self)

Reimplemented from mrmeshpy.BitSet.

◆ __sub__()

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

Reimplemented from mrmeshpy.BitSet.

◆ __xor__()

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

Reimplemented from mrmeshpy.BitSet.

◆ autoResizeSet() [1/2]

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

Reimplemented from mrmeshpy.BitSet.

◆ autoResizeSet() [2/2]

None mrmeshpy.VoxelBitSet.autoResizeSet ( self,
VoxelId 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 mrmeshpy.BitSet.

◆ autoResizeTestSet()

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

Reimplemented from mrmeshpy.BitSet.

◆ backId()

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

Reimplemented from mrmeshpy.BitSet.

◆ beginId()

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

Reimplemented from mrmeshpy.BitSet.

◆ endId()

VoxelId mrmeshpy.VoxelBitSet.endId ( self)

Reimplemented from mrmeshpy.BitSet.

◆ find_first()

VoxelId mrmeshpy.VoxelBitSet.find_first ( self)
return the smallest index i such that bit i is set, or npos if *this has no on bits.

Reimplemented from mrmeshpy.BitSet.

◆ find_last()

VoxelId mrmeshpy.VoxelBitSet.find_last ( self)
return the highest index i such that bit i is set, or npos if *this has no on bits.

Reimplemented from mrmeshpy.BitSet.

◆ find_next()

VoxelId mrmeshpy.VoxelBitSet.find_next ( self,
VoxelId n )
return the smallest index i>n such that bit i is set, or npos if *this has no on bits.

Reimplemented from mrmeshpy.BitSet.

◆ flip() [1/3]

VoxelBitSet mrmeshpy.VoxelBitSet.flip ( self)

Reimplemented from mrmeshpy.BitSet.

◆ flip() [2/3]

VoxelBitSet mrmeshpy.VoxelBitSet.flip ( self,
VoxelId n )

Reimplemented from mrmeshpy.BitSet.

◆ flip() [3/3]

VoxelBitSet mrmeshpy.VoxelBitSet.flip ( self,
VoxelId n,
int len )

Reimplemented from mrmeshpy.BitSet.

◆ getMapping() [1/5]

VoxelBitSet mrmeshpy.VoxelBitSet.getMapping ( self,
BMap_VoxelId_VoxelId map )

◆ getMapping() [2/5]

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

◆ getMapping() [3/5]

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

◆ getMapping() [4/5]

VoxelBitSet mrmeshpy.VoxelBitSet.getMapping ( self,
Vector_VoxelId_VoxelId map )

◆ getMapping() [5/5]

VoxelBitSet mrmeshpy.VoxelBitSet.getMapping ( self,
Vector_VoxelId_VoxelId map,
int resSize )

◆ intersects()

bool mrmeshpy.VoxelBitSet.intersects ( self,
VoxelBitSet a )
returns true if, there is a bit which is set in this bitset, such that the corresponding bit in bitset a is also set. Otherwise this function returns false.

Reimplemented from mrmeshpy.BitSet.

◆ is_subset_of()

bool mrmeshpy.VoxelBitSet.is_subset_of ( self,
VoxelBitSet a )
returns true if, for every bit that is set in this bitset, the corresponding bit in bitset a is also set. Otherwise this function returns false.

Reimplemented from mrmeshpy.BitSet.

◆ nthSetBit()

VoxelId 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 mrmeshpy.BitSet.

◆ operator() [1/2]

VoxelBitSet mrmeshpy.VoxelBitSet.operator ( * args,
** kwargs )
static

Reimplemented from mrmeshpy.BitSet.

◆ operator() [2/2]

VoxelBitSet mrmeshpy.VoxelBitSet.operator ( * args,
** kwargs )
static

Reimplemented from mrmeshpy.BitSet.

◆ reset() [1/3]

VoxelBitSet mrmeshpy.VoxelBitSet.reset ( self)

Reimplemented from mrmeshpy.BitSet.

◆ reset() [2/3]

VoxelBitSet mrmeshpy.VoxelBitSet.reset ( self,
VoxelId n )

Reimplemented from mrmeshpy.BitSet.

◆ reset() [3/3]

VoxelBitSet mrmeshpy.VoxelBitSet.reset ( self,
VoxelId n,
int len )

Reimplemented from mrmeshpy.BitSet.

◆ set() [1/4]

VoxelBitSet mrmeshpy.VoxelBitSet.set ( self)

Reimplemented from mrmeshpy.BitSet.

◆ set() [2/4]

VoxelBitSet mrmeshpy.VoxelBitSet.set ( self,
VoxelId n )

Reimplemented from mrmeshpy.BitSet.

◆ set() [3/4]

VoxelBitSet mrmeshpy.VoxelBitSet.set ( self,
VoxelId n,
bool val )

Reimplemented from mrmeshpy.BitSet.

◆ set() [4/4]

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

Reimplemented from mrmeshpy.BitSet.

◆ subtract()

VoxelBitSet 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 mrmeshpy.BitSet.

◆ test()

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

Reimplemented from mrmeshpy.BitSet.

◆ test_set()

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

Reimplemented from mrmeshpy.BitSet.


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