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

Public Member Functions

 __init__ (self, *args, **kwargs)
bool isRoot (self, ConstUndirectedEdgeId a)
UndirectedEdgeId parent (self, ConstUndirectedEdgeId a)
ConstUndirectedEdgeMap parents (self)
int size (self)

Detailed Description

Generated from:  MR::BaseUnionFind<MR::UndirectedEdgeId>

\\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_UndirectedEdgeId.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

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

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

Implicit copy constructor.

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

Member Function Documentation

◆ isRoot()

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

◆ parent()

UndirectedEdgeId mrmeshpy.ConstBaseUnionFind_UndirectedEdgeId.parent ( self,
ConstUndirectedEdgeId a )
return parent element of this element, which is equal to given element only for set's root

◆ parents()

ConstUndirectedEdgeMap mrmeshpy.ConstBaseUnionFind_UndirectedEdgeId.parents ( self)
gets the parents of all elements as is

◆ size()

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

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