MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::PolylineComponents Namespace Reference

Classes

struct  LargeByLengthComponentsSettings

Functions

size_t getNumComponents (const PolylineTopology &topology)
 returns the number of connected components in polyline
UndirectedEdgeBitSet getComponent (const PolylineTopology &topology, UndirectedEdgeId id)
std::vector< UndirectedEdgeBitSet > getAllComponents (const PolylineTopology &topology)
std::pair< std::vector< UndirectedEdgeBitSet >, int > getAllComponents (const PolylineTopology &topology, int maxComponentCount)
template<typename V>
std::vector< UndirectedEdgeBitSet > getNLargeByLengthComponents (const Polyline< V > &polyline, const LargeByLengthComponentsSettings &settings)
UnionFind< UndirectedEdgeId > getUnionFindStructure (const PolylineTopology &topology)
template<typename V>
UndirectedEdgeBitSet getLargestComponent (const Polyline< V > &polyline, float minLength=0, int *numSmallerComponents=nullptr)