MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.PointCloudComponents Class Reference

Static Public Member Functions

tuple[std_vector_TypedBitSet_Id_VertTag, int] getAllComponents (ConstPointCloud pointCloud, float maxDist, int maxComponentCount=2147483647, Const_func_bool_from_float pc='{}')
std_vector_TypedBitSet_Id_VertTag getLargeComponents (ConstPointCloud pointCloud, float maxDist, int minSize, Const_func_bool_from_float pc='{}')
VertBitSet getLargeComponentsUnion (ConstPointCloud pointCloud, float maxDist, int minSize, Const_func_bool_from_float pc='{}')
VertBitSet getLargeComponentsUnion (UnionFind_VertId unionStructs, ConstVertBitSet region, int minSize, Const_func_bool_from_float pc='{}')
UnionFind_VertId getUnionFindStructureVerts (ConstPointCloud pointCloud, float maxDist, ConstVertBitSet region=None, Const_func_bool_from_float pc='{}')

Detailed Description

This is a namespace.

Member Function Documentation

◆ getAllComponents()

tuple[std_vector_TypedBitSet_Id_VertTag, int] mrmeshpy.PointCloudComponents.getAllComponents ( ConstPointCloud pointCloud,
float maxDist,
int maxComponentCount = 2147483647,
Const_func_bool_from_float pc = '{}' )
static
gets all components of point cloud connected by a distance no greater than \\param maxDist
\\details if components number more than the maxComponentCount, they will be combined into groups of the same size
\\note be careful, if point cloud is large enough and has many components, the memory overflow will occur
\\param maxComponentCount should be more than 1
\\return pair components bitsets vector and number components in one group if components number more than maxComponentCount

◆ getLargeComponents()

std_vector_TypedBitSet_Id_VertTag mrmeshpy.PointCloudComponents.getLargeComponents ( ConstPointCloud pointCloud,
float maxDist,
int minSize,
Const_func_bool_from_float pc = '{}' )
static
returns vector of point cloud components containing at least minSize points and connected by a distance no greater than \\param maxDist
\\param minSize must be more than 1

◆ getLargeComponentsUnion() [1/2]

VertBitSet mrmeshpy.PointCloudComponents.getLargeComponentsUnion ( ConstPointCloud pointCloud,
float maxDist,
int minSize,
Const_func_bool_from_float pc = '{}' )
static
returns the union of point cloud components containing at least minSize points and connected by a distance no greater than \\param maxDist
\\param minSize must be more than 1

◆ getLargeComponentsUnion() [2/2]

VertBitSet mrmeshpy.PointCloudComponents.getLargeComponentsUnion ( UnionFind_VertId unionStructs,
ConstVertBitSet region,
int minSize,
Const_func_bool_from_float pc = '{}' )
static
returns the union of vertices components containing at least minSize points
\\param unionStructs prepared point union structure
\\note have side effect: call unionStructs.roots() that change unionStructs

◆ getUnionFindStructureVerts()

UnionFind_VertId mrmeshpy.PointCloudComponents.getUnionFindStructureVerts ( ConstPointCloud pointCloud,
float maxDist,
ConstVertBitSet region = None,
Const_func_bool_from_float pc = '{}' )
static
gets union - find structure for vertices in \\param region connected by a distance no greater than \\param maxDist

The documentation for this class was generated from the following file: