11namespace PolylineComponents
64MR_BIND_TEMPLATE( UndirectedEdgeBitSet
getLargestComponent( const Polyline2& polyline,
float minLength = 0,
int* numSmallerComponents =
nullptr ) )
65MR_BIND_TEMPLATE( UndirectedEdgeBitSet
getLargestComponent( const Polyline3& polyline,
float minLength = 0,
int* numSmallerComponents =
nullptr ) )
Definition MRPolylineTopology.h:18
Union-find data structure for representing disjoin sets of elements with few very quick operations: 1...
Definition MRUnionFind.h:23
UndirectedEdgeBitSet getLargestComponent(const Polyline< V > &polyline, float minLength=0, int *numSmallerComponents=nullptr)
MRMESH_API UnionFind< UndirectedEdgeId > getUnionFindStructure(const PolylineTopology &topology)
MRMESH_API std::vector< UndirectedEdgeBitSet > getAllComponents(const PolylineTopology &topology)
MRMESH_API UndirectedEdgeBitSet getComponent(const PolylineTopology &topology, UndirectedEdgeId id)
std::vector< UndirectedEdgeBitSet > getNLargeByLengthComponents(const Polyline< V > &polyline, const LargeByLengthComponentsSettings &settings)
int * numSmallerComponents
optional output: the number of components in addition to returned ones
Definition MRPolylineComponents.h:41
MRMESH_API size_t getNumComponents(const PolylineTopology &topology)
returns the number of connected components in polyline
int maxLargeComponents
return at most given number of largest by length connected components
Definition MRPolylineComponents.h:38
float minLength
do not consider a component large if its length is below this value
Definition MRPolylineComponents.h:44
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRPolylineComponents.h:36
Definition MRPolyline.h:18