MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.PolylineComponents Class Reference

Static Public Member Functions

std_vector_TaggedBitSet_UndirectedEdgeTag getAllComponents (PolylineTopology topology)
 
tuple[std_vector_TaggedBitSet_UndirectedEdgeTag, int] getAllComponents (PolylineTopology topology, int maxComponentCount)
 
UndirectedEdgeBitSet getComponent (PolylineTopology topology, UndirectedEdgeId id)
 
int getNumComponents (PolylineTopology topology)
 
UnionFind_UndirectedEdgeId getUnionFindStructure (PolylineTopology topology)
 

Detailed Description

This is a namespace.

Member Function Documentation

◆ getAllComponents() [1/2]

std_vector_TaggedBitSet_UndirectedEdgeTag meshlib.mrmeshpy.PolylineComponents.getAllComponents ( PolylineTopology topology)
static
gets all connected components of polyline topology
\\ingroup ComponentsGroup
\\note be careful, if mesh is large enough and has many components, the memory overflow will occur

◆ getAllComponents() [2/2]

tuple[std_vector_TaggedBitSet_UndirectedEdgeTag, int] meshlib.mrmeshpy.PolylineComponents.getAllComponents ( PolylineTopology topology,
int maxComponentCount )
static
gets all connected components of polyline topology
\\ingroup ComponentsGroup
\\detail if components  number more than the maxComponentCount, they will be combined into groups of the same size 
\\param maxComponentCount should be more then 1
\\return pair components bitsets vector and number components in one group if components number more than maxComponentCount

◆ getComponent()

UndirectedEdgeBitSet meshlib.mrmeshpy.PolylineComponents.getComponent ( PolylineTopology topology,
UndirectedEdgeId id )
static
returns one connected component containing given undirected edge id, 
not effective to call more than once, if several components are needed use getAllComponents
\\ingroup ComponentsGroup

◆ getNumComponents()

int meshlib.mrmeshpy.PolylineComponents.getNumComponents ( PolylineTopology topology)
static
returns the number of connected components in polyline

◆ getUnionFindStructure()

UnionFind_UndirectedEdgeId meshlib.mrmeshpy.PolylineComponents.getUnionFindStructure ( PolylineTopology topology)
static
gets union-find structure for given polyline
\\ingroup ComponentsGroup

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