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) |
|
nodiscard |
returns the number of connected components in polyline