MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.pointcloudcomponents.Functions Class Reference

Static Public Member Functions

static meshlib.VertBitSet getLargeComponentsUnion (meshlib.PointCloud pointCloud, float maxDist, int minSize, meshlib.std_function_bool_from_float pc)
static meshlib.VertBitSet getLargeComponentsUnion (meshlib.UnionFind_MR_VertId unionStructs, meshlib.VertBitSet region, int minSize, meshlib.std_function_bool_from_float pc)
static meshlib.std_vector_MR_VertBitSet getLargeComponents (meshlib.PointCloud pointCloud, float maxDist, int minSize, meshlib.std_function_bool_from_float pc)
static meshlib.std_pair_std_vector_MR_VertBitSet_int getAllComponents (meshlib.PointCloud pointCloud, float maxDist, java.lang.Integer maxComponentCount, meshlib.std_function_bool_from_float pc)
static meshlib.UnionFind_MR_VertId getUnionFindStructureVerts (meshlib.PointCloud pointCloud, float maxDist, meshlib.VertBitSet region, meshlib.std_function_bool_from_float pc)

Detailed Description

The free functions of this namespace.

Member Function Documentation

◆ getAllComponents()

meshlib.std_pair_std_vector_MR_VertBitSet_int meshlib.pointcloudcomponents.Functions.getAllComponents ( meshlib.PointCloud pointCloud,
float maxDist,
java.lang.Integer maxComponentCount,
meshlib.std_function_bool_from_float pc )
static

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

Parameters
maxDist

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 than 1
Returns
pair components bitsets vector and number components in one group if components number more than maxComponentCount Generated from function MR::PointCloudComponents::getAllComponents.

Calls MR_PointCloudComponents_getAllComponents(). The C++ function returns expected<std::pair<std::vector<MR::VertBitSet>, int>, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ getLargeComponents()

meshlib.std_vector_MR_VertBitSet meshlib.pointcloudcomponents.Functions.getLargeComponents ( meshlib.PointCloud pointCloud,
float maxDist,
int minSize,
meshlib.std_function_bool_from_float pc )
static

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.

Calls MR_PointCloudComponents_getLargeComponents(). The C++ function returns expected<std::vector<MR::VertBitSet>, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ getLargeComponentsUnion() [1/2]

meshlib.VertBitSet meshlib.pointcloudcomponents.Functions.getLargeComponentsUnion ( meshlib.PointCloud pointCloud,
float maxDist,
int minSize,
meshlib.std_function_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

Parameters
maxDist
minSizemust be more than 1 Generated from function MR::PointCloudComponents::getLargeComponentsUnion.

Calls MR_PointCloudComponents_getLargeComponentsUnion_MR_PointCloud(). The C++ function returns expected<MR::VertBitSet, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ getLargeComponentsUnion() [2/2]

meshlib.VertBitSet meshlib.pointcloudcomponents.Functions.getLargeComponentsUnion ( meshlib.UnionFind_MR_VertId unionStructs,
meshlib.VertBitSet region,
int minSize,
meshlib.std_function_bool_from_float pc )
static

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.

Calls MR_PointCloudComponents_getLargeComponentsUnion_MR_UnionFind_MR_VertId(). The C++ function returns expected<MR::VertBitSet, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ getUnionFindStructureVerts()

meshlib.UnionFind_MR_VertId meshlib.pointcloudcomponents.Functions.getUnionFindStructureVerts ( meshlib.PointCloud pointCloud,
float maxDist,
meshlib.VertBitSet region,
meshlib.std_function_bool_from_float pc )
static

gets union - find structure for vertices in

Parameters
regionconnected by a distance no greater than
maxDistGenerated from function MR::PointCloudComponents::getUnionFindStructureVerts.

Calls MR_PointCloudComponents_getUnionFindStructureVerts(). The C++ function returns expected<MR::UnionFind<MR::VertId>, std::string>: the value is returned and an error is thrown as UnexpectedResultException.


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