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

Static Public Member Functions

static long getNumComponents (meshlib.PolylineTopology topology)
static meshlib.UndirectedEdgeBitSet getComponent (meshlib.PolylineTopology topology, meshlib.UndirectedEdgeId id)
static meshlib.std_vector_MR_UndirectedEdgeBitSet getAllComponents (meshlib.PolylineTopology topology)
static meshlib.std_pair_std_vector_MR_UndirectedEdgeBitSet_int getAllComponents (meshlib.PolylineTopology topology, int maxComponentCount)
static meshlib.std_vector_MR_UndirectedEdgeBitSet getNLargeByLengthComponents (meshlib.Polyline2 polyline, meshlib.polylinecomponents.LargeByLengthComponentsSettings settings)
static meshlib.std_vector_MR_UndirectedEdgeBitSet getNLargeByLengthComponents (meshlib.Polyline3 polyline, meshlib.polylinecomponents.LargeByLengthComponentsSettings settings)
static meshlib.UnionFind_MR_UndirectedEdgeId getUnionFindStructure (meshlib.PolylineTopology topology)
static meshlib.UndirectedEdgeBitSet getLargestComponent (meshlib.Polyline2 polyline, java.lang.Float minLength, meshlib.int_output numSmallerComponents)
static meshlib.UndirectedEdgeBitSet getLargestComponent (meshlib.Polyline3 polyline, java.lang.Float minLength, meshlib.int_output numSmallerComponents)

Detailed Description

The free functions of this namespace.

Member Function Documentation

◆ getAllComponents() [1/2]

meshlib.std_vector_MR_UndirectedEdgeBitSet meshlib.polylinecomponents.Functions.getAllComponents ( meshlib.PolylineTopology topology)
static

gets all connected components of polyline topology

Note
be careful, if mesh is large enough and has many components, the memory overflow will occur Generated from function MR::PolylineComponents::getAllComponents.

Calls MR_PolylineComponents_getAllComponents_1().

◆ getAllComponents() [2/2]

meshlib.std_pair_std_vector_MR_UndirectedEdgeBitSet_int meshlib.polylinecomponents.Functions.getAllComponents ( meshlib.PolylineTopology topology,
int maxComponentCount )
static

gets all connected components of polyline topology

if components number more than the maxComponentCount, they will be combined into groups of the same size

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::PolylineComponents::getAllComponents.

Calls MR_PolylineComponents_getAllComponents_2().

◆ getComponent()

meshlib.UndirectedEdgeBitSet meshlib.polylinecomponents.Functions.getComponent ( meshlib.PolylineTopology topology,
meshlib.UndirectedEdgeId id )
static

returns one connected component containing given undirected edge id, not effective to call more than once, if several components are needed use getAllComponents Generated from function MR::PolylineComponents::getComponent.

Calls MR_PolylineComponents_getComponent().

◆ getLargestComponent() [1/2]

meshlib.UndirectedEdgeBitSet meshlib.polylinecomponents.Functions.getLargestComponent ( meshlib.Polyline2 polyline,
java.lang.Float minLength,
meshlib.int_output numSmallerComponents )
static

returns largest by length component Generated from function MR::PolylineComponents::getLargestComponent<MR::Vector2f>.

Calls MR_PolylineComponents_getLargestComponent_MR_Vector2f().

◆ getLargestComponent() [2/2]

meshlib.UndirectedEdgeBitSet meshlib.polylinecomponents.Functions.getLargestComponent ( meshlib.Polyline3 polyline,
java.lang.Float minLength,
meshlib.int_output numSmallerComponents )
static

returns largest by length component Generated from function MR::PolylineComponents::getLargestComponent<MR::Vector3f>.

Calls MR_PolylineComponents_getLargestComponent_MR_Vector3f().

◆ getNLargeByLengthComponents() [1/2]

meshlib.std_vector_MR_UndirectedEdgeBitSet meshlib.polylinecomponents.Functions.getNLargeByLengthComponents ( meshlib.Polyline2 polyline,
meshlib.polylinecomponents.LargeByLengthComponentsSettings settings )
static

returns requested number of largest by length connected components in descending by length order Generated from function MR::PolylineComponents::getNLargeByLengthComponents<MR::Vector2f>.

Calls MR_PolylineComponents_getNLargeByLengthComponents_MR_Vector2f().

◆ getNLargeByLengthComponents() [2/2]

meshlib.std_vector_MR_UndirectedEdgeBitSet meshlib.polylinecomponents.Functions.getNLargeByLengthComponents ( meshlib.Polyline3 polyline,
meshlib.polylinecomponents.LargeByLengthComponentsSettings settings )
static

returns requested number of largest by length connected components in descending by length order Generated from function MR::PolylineComponents::getNLargeByLengthComponents<MR::Vector3f>.

Calls MR_PolylineComponents_getNLargeByLengthComponents_MR_Vector3f().

◆ getNumComponents()

long meshlib.polylinecomponents.Functions.getNumComponents ( meshlib.PolylineTopology topology)
static

returns the number of connected components in polyline Generated from function MR::PolylineComponents::getNumComponents.

Calls MR_PolylineComponents_getNumComponents().

◆ getUnionFindStructure()

meshlib.UnionFind_MR_UndirectedEdgeId meshlib.polylinecomponents.Functions.getUnionFindStructure ( meshlib.PolylineTopology topology)
static

gets union-find structure for given polyline Generated from function MR::PolylineComponents::getUnionFindStructure.

Calls MR_PolylineComponents_getUnionFindStructure().


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