MeshLib C++ Docs
Loading...
Searching...
No Matches
MRPolylineComponents.h File Reference
#include "MRMeshFwd.h"
#include "MRUnionFind.h"

Go to the source code of this file.

Classes

struct  MR::PolylineComponents::LargeByLengthComponentsSettings

Namespaces

namespace  MR
 only for bindings generation
namespace  MR::PolylineComponents

Functions

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