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

Public Member Functions

 __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::BaseUnionFind<MR::VertId>

\\brief base of union-find data structures: stores only the parent forest and the operations
that depend on it alone, so it is shared by the sequential UnionFind and the ParallelUnionFind
\\tparam I is the identifier of a set's element, e.g. FaceId

Constructor & Destructor Documentation

◆ __init__()

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

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

2. __init__(self: meshlib.mrmeshpy.ConstBaseUnionFind_VertId, arg0: meshlib.mrmeshpy.ConstBaseUnionFind_VertId) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstBaseUnionFind_VertId, : meshlib.mrmeshpy.ConstBaseUnionFind_VertId) -> None

Member Function Documentation

◆ isRoot()

bool mrmeshpy.ConstBaseUnionFind_VertId.isRoot ( self,
ConstVertId a )
returns true if given element is the root of some set

◆ parent()

VertId mrmeshpy.ConstBaseUnionFind_VertId.parent ( self,
ConstVertId a )
return parent element of this element, which is equal to given element only for set's root

◆ parents()

ConstVertMap mrmeshpy.ConstBaseUnionFind_VertId.parents ( self)
gets the parents of all elements as is

◆ size()

int mrmeshpy.ConstBaseUnionFind_VertId.size ( self)
returns the number of elements in union-find

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