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

Public Member Functions

VoxelBitSet __and__ (self, ConstVoxelBitSet b)
 __init__ (self, *args, **kwargs)
typing.Iterator[VoxelId] __iter__ (self)
VoxelBitSet __or__ (self, ConstVoxelBitSet b)
str __repr__ (self)
VoxelBitSet __sub__ (self, ConstVoxelBitSet b)
VoxelBitSet __xor__ (self, ConstVoxelBitSet b)
VoxelId backId (self)
VoxelId endId (self)
VoxelId find_first (self)
VoxelId find_first_not_set (self)
VoxelId find_last (self)
VoxelId find_last_not_set (self)
VoxelId find_next (self, ConstVoxelId pos)
VoxelId find_next_not_set (self, ConstVoxelId pos)
VoxelBitSet getMapping (self, ConstVector_VoxelId_VoxelId map)
VoxelBitSet getMapping (self, ConstBMap_VoxelId_VoxelId map)
VoxelBitSet getMapping (self, Const_phmap_flat_hash_map_Id_VoxelTag_Id_VoxelTag_phmap_Hash_Id_VoxelTag_phmap_EqualTo_Id_VoxelTag_Allocator_std_pair_Id_VoxelTag_const_Id_VoxelTag map)
VoxelBitSet getMapping (self, ConstVector_VoxelId_VoxelId map, int resSize)
VoxelBitSet getMapping (self, Const_phmap_flat_hash_map_Id_VoxelTag_Id_VoxelTag_phmap_Hash_Id_VoxelTag_phmap_EqualTo_Id_VoxelTag_Allocator_std_pair_Id_VoxelTag_const_Id_VoxelTag map, int resSize)
bool intersects (self, ConstVoxelBitSet a)
bool is_subset_of (self, ConstVoxelBitSet a)
VoxelId nthSetBit (self, int n)
bool test (self, ConstVoxelId n)
Public Member Functions inherited from mrmeshpy.ConstBitSet
BitSet __and__ (self, ConstBitSet b)
bool __eq__ (self, ConstBitSet b)
 __init__ (self, *args, **kwargs)
typing.Iterator[int] __iter__ (self)
bool __ne__ (self, ConstBitSet b)
BitSet __or__ (self, ConstBitSet b)
str __repr__ (self)
typing.Any __rlshift__ (self, typing.Any bs)
BitSet __sub__ (self, ConstBitSet b)
BitSet __xor__ (self, ConstBitSet b)
bool all (self)
bool any (self)
Const_std_vector_unsigned_long_Allocator_unsigned_long bits (self)
int capacity (self)
int count (self)
BitSet.Counts countBitsAndBlocks (self, int maxBits='~MR::BitSet::size_type{}')
bool empty (self)
int heapBytes (self)
bool none (self)
int num_blocks (self)
int size (self)
bool uncheckedTest (self, int n)

Static Public Member Functions

VoxelId beginId ()
Static Public Member Functions inherited from mrmeshpy.ConstBitSet
BitSet fromBlocks (std_vector_unsigned_long_Allocator_unsigned_long blocks)

Additional Inherited Members

Static Public Attributes inherited from mrmeshpy.ConstBitSet
typing bits_per_block = 64
typing npos = 18446744073709551615
 Blocks = std_vector_unsigned_long_Allocator_unsigned_long
 ConstBlocks = Const_std_vector_unsigned_long_Allocator_unsigned_long

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__()

mrmeshpy.ConstVoxelBitSet.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstVoxelBitSet) -> None

2. __init__(self: meshlib.mrmeshpy.ConstVoxelBitSet, numBits: int, fillValue: bool = False) -> None

creates bitset of given size filled with given value

3. __init__(self: meshlib.mrmeshpy.ConstVoxelBitSet, src: meshlib.mrmeshpy.ConstBitSet) -> None

copies all bits from another BitSet (or a descending class, e.g. `TypedBitSet<U>`)

4. __init__(self: meshlib.mrmeshpy.ConstVoxelBitSet, src: meshlib.mrmeshpy.BitSet) -> None

moves all bits from another BitSet (or a descending class, e.g. `TypedBitSet<U>`)

5. __init__(self: meshlib.mrmeshpy.ConstVoxelBitSet, arg0: meshlib.mrmeshpy.ConstVoxelBitSet) -> None

Implicit copy constructor.

6. __init__(self: meshlib.mrmeshpy.ConstVoxelBitSet, : meshlib.mrmeshpy.ConstVoxelBitSet) -> None

Member Function Documentation

◆ __and__()

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

◆ __iter__()

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

◆ __or__()

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

◆ __repr__()

str mrmeshpy.ConstVoxelBitSet.__repr__ ( self)

◆ __sub__()

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

◆ __xor__()

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

◆ backId()

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

Reimplemented from mrmeshpy.ConstBitSet.

◆ beginId()

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

Reimplemented from mrmeshpy.ConstBitSet.

◆ endId()

VoxelId mrmeshpy.ConstVoxelBitSet.endId ( self)

Reimplemented from mrmeshpy.ConstBitSet.

◆ find_first()

VoxelId mrmeshpy.ConstVoxelBitSet.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.ConstBitSet.

◆ find_first_not_set()

VoxelId mrmeshpy.ConstVoxelBitSet.find_first_not_set ( self)
return the smallest index i such that bit i is NOT set, or npos if *this has no off bits.

Reimplemented from mrmeshpy.ConstBitSet.

◆ find_last()

VoxelId mrmeshpy.ConstVoxelBitSet.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.ConstBitSet.

◆ find_last_not_set()

VoxelId mrmeshpy.ConstVoxelBitSet.find_last_not_set ( self)
return the highest index i such that bit i is NOT set, or npos if *this has no off bits.

Reimplemented from mrmeshpy.ConstBitSet.

◆ find_next()

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

Reimplemented from mrmeshpy.ConstBitSet.

◆ find_next_not_set()

VoxelId mrmeshpy.ConstVoxelBitSet.find_next_not_set ( self,
ConstVoxelId n )
return the smallest index i>n such that bit i is NOT set, or npos if *this has no off bits.

Reimplemented from mrmeshpy.ConstBitSet.

◆ getMapping() [1/5]

◆ getMapping() [2/5]

◆ getMapping() [3/5]

VoxelBitSet mrmeshpy.ConstVoxelBitSet.getMapping ( self,
ConstBMap_VoxelId_VoxelId map )

◆ getMapping() [4/5]

VoxelBitSet mrmeshpy.ConstVoxelBitSet.getMapping ( self,
ConstVector_VoxelId_VoxelId map )

◆ getMapping() [5/5]

VoxelBitSet mrmeshpy.ConstVoxelBitSet.getMapping ( self,
ConstVector_VoxelId_VoxelId map,
int resSize )

◆ intersects()

bool mrmeshpy.ConstVoxelBitSet.intersects ( self,
ConstVoxelBitSet 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.ConstBitSet.

◆ is_subset_of()

bool mrmeshpy.ConstVoxelBitSet.is_subset_of ( self,
ConstVoxelBitSet 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.ConstBitSet.

◆ nthSetBit()

VoxelId mrmeshpy.ConstVoxelBitSet.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.ConstBitSet.

◆ test()

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

Reimplemented from mrmeshpy.ConstBitSet.


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