MeshLib Documentation
Loading...
Searching...
No Matches
MRPolylineComponents.h File Reference
#include "MRMeshFwd.h"
#include "MRUnionFind.h"

Go to the source code of this file.

Namespaces

namespace  MR
 
namespace  MR::PolylineComponents
 

Functions

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