#define MRMESH_API
Definition MRMeshFwd.h:80
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)
std::vector< UndirectedEdgeBitSet > getAllComponents(const PolylineTopology &topology)
UnionFind< UndirectedEdgeId > getUnionFindStructure(const PolylineTopology &topology)
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
Polyline2
Definition MRMeshFwd.h:663
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
size_t getNumComponents(const PolylineTopology &topology)
returns the number of connected components in polyline
MR_BIND_TEMPLATE(std::pair< Vector3f, TriPointf > closestPointInTriangle(const Vector3f &p, const Vector3f &a, const Vector3f &b, const Vector3f &c))
Definition MRPolylineComponents.h:12
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRPolylineComponents.h:36
Definition MRPolyline.h:18