MeshLib C# Docs
Loading...
Searching...
No Matches
MR.PointCloudComponents Class Reference

Static Public Member Functions

static unsafe MR.VertBitSet getLargeComponentsUnion (MR.Const_PointCloud pointCloud, float maxDist, int minSize, MR.Std._ByValue_Function_BoolFuncFromFloat? pc=null)
 returns the union of point cloud components containing at least minSize points and connected by a distance no greater than
 
static unsafe MR.VertBitSet getLargeComponentsUnion (MR.UnionFind_MRVertId unionStructs, MR.Const_VertBitSet region, int minSize, MR.Std._ByValue_Function_BoolFuncFromFloat? pc=null)
 returns the union of vertices components containing at least minSize points
 
static unsafe MR.Std.Vector_MRVertBitSet getLargeComponents (MR.Const_PointCloud pointCloud, float maxDist, int minSize, MR.Std._ByValue_Function_BoolFuncFromFloat? pc=null)
 returns vector of point cloud components containing at least minSize points and connected by a distance no greater than
 
static unsafe MR.Std.Pair_StdVectorMRVertBitSet_Int getAllComponents (MR.Const_PointCloud pointCloud, float maxDist, int? maxComponentCount=null, MR.Std._ByValue_Function_BoolFuncFromFloat? pc=null)
 gets all components of point cloud connected by a distance no greater than
 
static unsafe MR.UnionFind_MRVertId getUnionFindStructureVerts (MR.Const_PointCloud pointCloud, float maxDist, MR.Const_VertBitSet? region=null, MR.Std._ByValue_Function_BoolFuncFromFloat? pc=null)
 gets union - find structure for vertices in
 

Member Function Documentation

◆ getAllComponents()

static unsafe MR.Std.Pair_StdVectorMRVertBitSet_Int MR.PointCloudComponents.getAllComponents ( MR.Const_PointCloud pointCloud,
float maxDist,
int? maxComponentCount = null,
MR.Std._ByValue_Function_BoolFuncFromFloat? pc = null )
inlinestatic

gets all components of point cloud connected by a distance no greater than

Parameters
maxDist\detail 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
Parameters
maxComponentCountshould be more then 1
Returns
pair components bitsets vector and number components in one group if components number more than maxComponentCount Generated from function MR.PointCloudComponents.getAllComponents. Parameter maxComponentCount defaults to 2147483647. Parameter pc defaults to {}.

◆ getLargeComponents()

static unsafe MR.Std.Vector_MRVertBitSet MR.PointCloudComponents.getLargeComponents ( MR.Const_PointCloud pointCloud,
float maxDist,
int minSize,
MR.Std._ByValue_Function_BoolFuncFromFloat? pc = null )
inlinestatic

returns vector of point cloud components containing at least minSize points and connected by a distance no greater than

Parameters
maxDist
minSizemust be more than 1 Generated from function MR.PointCloudComponents.getLargeComponents. Parameter pc defaults to {}.

◆ getLargeComponentsUnion() [1/2]

static unsafe MR.VertBitSet MR.PointCloudComponents.getLargeComponentsUnion ( MR.Const_PointCloud pointCloud,
float maxDist,
int minSize,
MR.Std._ByValue_Function_BoolFuncFromFloat? pc = null )
inlinestatic

returns the union of point cloud components containing at least minSize points and connected by a distance no greater than

Parameters
maxDist
minSizemust be more than 1 Generated from function MR.PointCloudComponents.getLargeComponentsUnion. Parameter pc defaults to {}.

◆ getLargeComponentsUnion() [2/2]

static unsafe MR.VertBitSet MR.PointCloudComponents.getLargeComponentsUnion ( MR.UnionFind_MRVertId unionStructs,
MR.Const_VertBitSet region,
int minSize,
MR.Std._ByValue_Function_BoolFuncFromFloat? pc = null )
inlinestatic

returns the union of vertices components containing at least minSize points

Parameters
unionStructsprepared point union structure
Note
have side effect: call unionStructs.roots() that change unionStructs Generated from function MR.PointCloudComponents.getLargeComponentsUnion. Parameter pc defaults to {}.

◆ getUnionFindStructureVerts()

static unsafe MR.UnionFind_MRVertId MR.PointCloudComponents.getUnionFindStructureVerts ( MR.Const_PointCloud pointCloud,
float maxDist,
MR.Const_VertBitSet? region = null,
MR.Std._ByValue_Function_BoolFuncFromFloat? pc = null )
inlinestatic

gets union - find structure for vertices in

Parameters
regionconnected by a distance no greater than
maxDistGenerated from function MR.PointCloudComponents.getUnionFindStructureVerts. Parameter pc defaults to {}.

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