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

Public Member Functions

 __init__ (self, *args, **kwargs)
bool isRoot (self, ConstFaceId a)
FaceId parent (self, ConstFaceId a)
ConstFaceMap parents (self)
int size (self)

Detailed Description

Generated from:  MR::BaseUnionFind<MR::FaceId>

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

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

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

Implicit copy constructor.

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

Member Function Documentation

◆ isRoot()

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

◆ parent()

FaceId mrmeshpy.ConstBaseUnionFind_FaceId.parent ( self,
ConstFaceId a )
return parent element of this element, which is equal to given element only for set's root

◆ parents()

ConstFaceMap mrmeshpy.ConstBaseUnionFind_FaceId.parents ( self)
gets the parents of all elements as is

◆ size()

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

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