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

Public Member Functions

FaceBitSet __and__ (self, FaceBitSet b)
 
bool __eq__ (self, FaceBitSet b)
 
FaceBitSet __iand__ (self, FaceBitSet b)
 
None __init__ (self, BitSet src)
 
None __init__ (self, BitSet src)
 
None __init__ (self)
 
None __init__ (self, FaceBitSet arg0)
 
FaceBitSet __ior__ (self, FaceBitSet b)
 
FaceBitSet __isub__ (self, FaceBitSet b)
 
typing.Iterator[FaceId__iter__ (self)
 
FaceBitSet __ixor__ (self, FaceBitSet b)
 
FaceBitSet __or__ (self, FaceBitSet b)
 
str __repr__ (self)
 
FaceBitSet __sub__ (self, FaceBitSet b)
 
FaceBitSet __xor__ (self, FaceBitSet b)
 
None autoResizeSet (self, FaceId pos, int len, bool val=True)
 
None autoResizeSet (self, FaceId pos, bool val=True)
 
bool autoResizeTestSet (self, FaceId pos, bool val=True)
 
FaceId backId (self)
 
FaceId endId (self)
 
FaceId find_first (self)
 
FaceId find_last (self)
 
FaceId find_next (self, FaceId pos)
 
FaceBitSet flip (self, FaceId n, int len)
 
FaceBitSet flip (self, FaceId n)
 
FaceBitSet flip (self)
 
FaceBitSet getMapping (self, FaceMap map)
 
FaceBitSet getMapping (self, FaceBMap map)
 
FaceBitSet getMapping (self, phmap_flat_hash_map_Id_FaceTag_Id_FaceTag map)
 
FaceBitSet getMapping (self, FaceMap map, int resSize)
 
FaceBitSet getMapping (self, phmap_flat_hash_map_Id_FaceTag_Id_FaceTag map, int resSize)
 
bool intersects (self, FaceBitSet a)
 
bool is_proper_subset_of (self, FaceBitSet a)
 
bool is_subset_of (self, FaceBitSet a)
 
FaceId nthSetBit (self, int n)
 
bool operator (self, FaceId pos)
 
FaceBitSet reset (self, FaceId n, int len)
 
FaceBitSet reset (self, FaceId n)
 
FaceBitSet reset (self)
 
FaceBitSet set (self, FaceId n, int len, bool val)
 
FaceBitSet set (self, FaceId n, bool val=True)
 
FaceBitSet set (self)
 
FaceBitSet subtract (self, FaceBitSet b, int bShiftInBlocks)
 
bool test (self, FaceId n)
 
bool test_set (self, FaceId n, bool val=True)
 
- Public Member Functions inherited from 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

FaceId beginId ()
 

Static Protected Member Functions

 _pybind11_conduit_v1_ (*args, **kwargs)
 

Detailed Description

Generated from:  MR::FaceBitSet
Aliases:  ColorMapAggregator_FaceTag_ElementBitSet, Vector_FaceBitSet_GraphVertId.reference, Vector_FaceBitSet_GraphVertId.value_type, Vector_FaceBitSet_GraphVertId.const_reference, AABBTreeBase_AABBTreeTraits_FaceTag_Box3f.LeafBitSet

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

Constructor & Destructor Documentation

◆ __init__() [1/4]

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

Reimplemented from mrmeshpy.BitSet.

◆ __init__() [2/4]

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

Reimplemented from mrmeshpy.BitSet.

◆ __init__() [3/4]

None mrmeshpy.FaceBitSet.__init__ ( self)
Implicit default constructor.

Reimplemented from mrmeshpy.BitSet.

◆ __init__() [4/4]

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

Reimplemented from mrmeshpy.BitSet.

Member Function Documentation

◆ __and__()

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

Reimplemented from mrmeshpy.BitSet.

◆ __eq__()

bool mrmeshpy.FaceBitSet.__eq__ ( self,
FaceBitSet 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 mrmeshpy.BitSet.

◆ __iand__()

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

Reimplemented from mrmeshpy.BitSet.

◆ __ior__()

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

Reimplemented from mrmeshpy.BitSet.

◆ __isub__()

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

Reimplemented from mrmeshpy.BitSet.

◆ __iter__()

typing.Iterator[FaceId] mrmeshpy.FaceBitSet.__iter__ ( self)

Reimplemented from mrmeshpy.BitSet.

◆ __ixor__()

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

Reimplemented from mrmeshpy.BitSet.

◆ __or__()

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

Reimplemented from mrmeshpy.BitSet.

◆ __repr__()

str mrmeshpy.FaceBitSet.__repr__ ( self)

Reimplemented from mrmeshpy.BitSet.

◆ __sub__()

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

Reimplemented from mrmeshpy.BitSet.

◆ __xor__()

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

Reimplemented from mrmeshpy.BitSet.

◆ _pybind11_conduit_v1_()

mrmeshpy.FaceBitSet._pybind11_conduit_v1_ ( * args,
** kwargs )
staticprotected

Reimplemented from mrmeshpy.BitSet.

◆ autoResizeSet() [1/2]

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

Reimplemented from mrmeshpy.BitSet.

◆ backId()

FaceId mrmeshpy.FaceBitSet.backId ( self)
returns the identifier of the back() element

Reimplemented from mrmeshpy.BitSet.

◆ beginId()

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

Reimplemented from mrmeshpy.BitSet.

◆ endId()

FaceId mrmeshpy.FaceBitSet.endId ( self)

Reimplemented from mrmeshpy.BitSet.

◆ find_first()

FaceId mrmeshpy.FaceBitSet.find_first ( self)

◆ find_last()

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

Reimplemented from mrmeshpy.BitSet.

◆ find_next()

FaceId mrmeshpy.FaceBitSet.find_next ( self,
FaceId pos )

◆ flip() [1/3]

FaceBitSet mrmeshpy.FaceBitSet.flip ( self)

Reimplemented from mrmeshpy.BitSet.

◆ flip() [2/3]

FaceBitSet mrmeshpy.FaceBitSet.flip ( self,
FaceId n )

Reimplemented from mrmeshpy.BitSet.

◆ flip() [3/3]

FaceBitSet mrmeshpy.FaceBitSet.flip ( self,
FaceId n,
int len )

Reimplemented from mrmeshpy.BitSet.

◆ getMapping() [1/5]

FaceBitSet mrmeshpy.FaceBitSet.getMapping ( self,
FaceBMap map )

◆ getMapping() [2/5]

FaceBitSet mrmeshpy.FaceBitSet.getMapping ( self,
FaceMap map )

◆ getMapping() [3/5]

FaceBitSet mrmeshpy.FaceBitSet.getMapping ( self,
FaceMap map,
int resSize )

◆ getMapping() [4/5]

FaceBitSet mrmeshpy.FaceBitSet.getMapping ( self,
phmap_flat_hash_map_Id_FaceTag_Id_FaceTag map )

◆ getMapping() [5/5]

FaceBitSet mrmeshpy.FaceBitSet.getMapping ( self,
phmap_flat_hash_map_Id_FaceTag_Id_FaceTag map,
int resSize )

◆ intersects()

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

◆ is_proper_subset_of()

bool mrmeshpy.FaceBitSet.is_proper_subset_of ( self,
FaceBitSet a )
returns true if, for every bit that is set in this bitset, the corresponding bit in bitset a is also set and if this->count() < a.count(). Otherwise this function returns false.

◆ is_subset_of()

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

◆ nthSetBit()

FaceId mrmeshpy.FaceBitSet.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()

bool mrmeshpy.FaceBitSet.operator ( self,
FaceId pos )

◆ reset() [1/3]

FaceBitSet mrmeshpy.FaceBitSet.reset ( self)

Reimplemented from mrmeshpy.BitSet.

◆ reset() [2/3]

FaceBitSet mrmeshpy.FaceBitSet.reset ( self,
FaceId n )

Reimplemented from mrmeshpy.BitSet.

◆ reset() [3/3]

FaceBitSet mrmeshpy.FaceBitSet.reset ( self,
FaceId n,
int len )

Reimplemented from mrmeshpy.BitSet.

◆ set() [1/3]

FaceBitSet mrmeshpy.FaceBitSet.set ( self)

Reimplemented from mrmeshpy.BitSet.

◆ set() [2/3]

FaceBitSet mrmeshpy.FaceBitSet.set ( self,
FaceId n,
bool val = True )

Reimplemented from mrmeshpy.BitSet.

◆ set() [3/3]

FaceBitSet mrmeshpy.FaceBitSet.set ( self,
FaceId n,
int len,
bool val )

Reimplemented from mrmeshpy.BitSet.

◆ subtract()

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

Reimplemented from mrmeshpy.BitSet.

◆ test_set()

bool mrmeshpy.FaceBitSet.test_set ( self,
FaceId n,
bool val = True )

Reimplemented from mrmeshpy.BitSet.


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