MeshLib Documentation
Loading...
Searching...
No Matches
MR::PolylineComponents Namespace Reference

Functions

MRMESH_API size_t getNumComponents (const PolylineTopology &topology)
 returns the number of connected components in polyline
 
MRMESH_API UndirectedEdgeBitSet getComponent (const PolylineTopology &topology, UndirectedEdgeId id)
 
MRMESH_API std::vector< UndirectedEdgeBitSet > getAllComponents (const PolylineTopology &topology)
 
MRMESH_API std::pair< std::vector< UndirectedEdgeBitSet >, int > getAllComponents (const PolylineTopology &topology, int maxComponentCount)
 
MRMESH_API UnionFind< UndirectedEdgeId > getUnionFindStructure (const PolylineTopology &topology)
 
template<typename V >
UndirectedEdgeBitSet getLargestComponent (const Polyline< V > &polyline)
 

Function Documentation

◆ getNumComponents()

MRMESH_API size_t MR::PolylineComponents::getNumComponents ( const PolylineTopology & topology)
nodiscard

returns the number of connected components in polyline