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

Public Member Functions

 __init__ (self, *args, **kwargs)
Public Member Functions inherited from mrmeshpy.ConstBaseUnionFind_VertId
 __init__ (self, *args, **kwargs)
bool isRoot (self, ConstVertId a)
VertId parent (self, ConstVertId a)
ConstVertMap parents (self)
int size (self)

Detailed Description

Generated from:  MR::UnionFind<MR::VertId>

\\brief Union-find data structure for representing disjoint sets of elements with few very quick operations:
1) union of two sets in one,
2) checking whether two elements pertain to the same set,
3) finding representative element (root) of each set by any set's element.
Sequential implementation that selects the root of a united pair by set size for best performance.
\\tparam I is the identifier of a set's element, e.g. FaceId

Constructor & Destructor Documentation

◆ __init__()

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

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

2. __init__(self: meshlib.mrmeshpy.ConstUnionFind_VertId, size: int) -> None

creates union-find with given number of elements, each element is the only one in its disjoint set

3. __init__(self: meshlib.mrmeshpy.ConstUnionFind_VertId, base: meshlib.mrmeshpy.BaseUnionFind_VertId) -> None

adopts the parent forest of a base/parallel union-find and (re)computes set sizes,
so the result supports the full sequential interface (e.g. unite, sizeOfComp)

4. __init__(self: meshlib.mrmeshpy.ConstUnionFind_VertId, arg0: meshlib.mrmeshpy.ConstUnionFind_VertId) -> None

Implicit copy constructor.

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

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