MeshLib C# Docs
Loading...
Searching...
No Matches
MR.PolylineComponents Class Reference

Static Public Member Functions

static unsafe ulong getNumComponents (MR.Const_PolylineTopology topology)
 returns the number of connected components in polyline Generated from function MR.PolylineComponents.getNumComponents.
 
static unsafe MR.UndirectedEdgeBitSet getComponent (MR.Const_PolylineTopology topology, MR.UndirectedEdgeId id)
 returns one connected component containing given undirected edge id, not effective to call more than once, if several components are needed use getAllComponents Generated from function MR.PolylineComponents.getComponent.
 
static unsafe MR.Std.Vector_MRUndirectedEdgeBitSet getAllComponents (MR.Const_PolylineTopology topology)
 gets all connected components of polyline topology
 
static unsafe MR.Std.Pair_StdVectorMRUndirectedEdgeBitSet_Int getAllComponents (MR.Const_PolylineTopology topology, int maxComponentCount)
 gets all connected components of polyline topology \detail if components number more than the maxComponentCount, they will be combined into groups of the same size
 
static unsafe MR.UnionFind_MRUndirectedEdgeId getUnionFindStructure (MR.Const_PolylineTopology topology)
 gets union-find structure for given polyline Generated from function MR.PolylineComponents.getUnionFindStructure.
 

Member Function Documentation

◆ getAllComponents() [1/2]

static unsafe MR.Std.Vector_MRUndirectedEdgeBitSet MR.PolylineComponents.getAllComponents ( MR.Const_PolylineTopology topology)
inlinestatic

gets all connected components of polyline topology

Note
be careful, if mesh is large enough and has many components, the memory overflow will occur Generated from function MR.PolylineComponents.getAllComponents.

◆ getAllComponents() [2/2]

static unsafe MR.Std.Pair_StdVectorMRUndirectedEdgeBitSet_Int MR.PolylineComponents.getAllComponents ( MR.Const_PolylineTopology topology,
int maxComponentCount )
inlinestatic

gets all connected components of polyline topology \detail if components number more than the maxComponentCount, they will be combined into groups of the same size

Parameters
maxComponentCountshould be more then 1
Returns
pair components bitsets vector and number components in one group if components number more than maxComponentCount Generated from function MR.PolylineComponents.getAllComponents.

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