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

Classes

struct  LargeByLengthComponentsSettings
 

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)
 
template<typename V >
std::vector< UndirectedEdgeBitSet > getNLargeByLengthComponents (const Polyline< V > &polyline, const LargeByLengthComponentsSettings &settings)
 
MRMESH_API UnionFind< UndirectedEdgeId > getUnionFindStructure (const PolylineTopology &topology)
 
template<typename V >
UndirectedEdgeBitSet getLargestComponent (const Polyline< V > &polyline, float minLength=0, int *numSmallerComponents=nullptr)