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

Static Public Member Functions

static meshlib.FaceBitSet getComponent (meshlib.MeshPart meshPart, meshlib.FaceId id, meshlib.meshcomponents.FaceIncidence incidence, meshlib.UndirectedEdgeBitSet isCompBd)
static meshlib.VertBitSet getComponentVerts (meshlib.Mesh mesh, meshlib.VertId id, meshlib.VertBitSet region)
static meshlib.VertBitSet getLargestComponentVerts (meshlib.Mesh mesh, meshlib.VertBitSet region)
static meshlib.VertBitSet getLargeComponentVerts (meshlib.Mesh mesh, int minVerts, meshlib.VertBitSet region)
static double getLargestComponentArea (meshlib.MeshPart meshPart, meshlib.meshcomponents.FaceIncidence incidence, meshlib.UndirectedEdgeBitSet isCompBd, meshlib.FaceBitSet largestComponent, meshlib.int_output numSmallerComponents)
static meshlib.FaceBitSet getLargestComponent (meshlib.MeshPart meshPart, meshlib.meshcomponents.FaceIncidence incidence, meshlib.UndirectedEdgeBitSet isCompBd, java.lang.Float minArea, meshlib.int_output numSmallerComponents)
static double getLargestComponentVolume (meshlib.MeshPart meshPart, meshlib.meshcomponents.VolumeSelection selection, meshlib.meshcomponents.FaceIncidence incidence, meshlib.UndirectedEdgeBitSet isCompBd, meshlib.FaceBitSet largestComponent, meshlib.int_output numSmallerComponents)
static meshlib.FaceBitSet getComponents (meshlib.MeshPart meshPart, meshlib.FaceBitSet seeds, meshlib.meshcomponents.FaceIncidence incidence, meshlib.UndirectedEdgeBitSet isCompBd)
static meshlib.FaceBitSet getComponents (meshlib.MeshTopology topology, meshlib.FaceBitSet seeds, meshlib.FaceBitSet region, meshlib.meshcomponents.FaceIncidence incidence, meshlib.UndirectedEdgeBitSet isCompBd)
static meshlib.FaceBitSet getLargeByAreaComponents (meshlib.MeshPart meshPart, float minArea, meshlib.UndirectedEdgeBitSet isCompBd)
static meshlib.FaceBitSet getLargeByVolumeComponents (meshlib.MeshPart meshPart, float minVolume)
static meshlib.FaceBitSet getLargeByAreaComponents (meshlib.MeshPart meshPart, meshlib.BaseUnionFind_MR_FaceId unionFind, float minArea, meshlib.UndirectedEdgeBitSet outBdEdgesBetweenLargeComps)
static meshlib.FaceBitSet expandToComponents (meshlib.MeshPart mp, meshlib.FaceBitSet seeds, meshlib.meshcomponents.ExpandToComponentsParams params)
static meshlib.std_vector_MR_FaceBitSet getNLargeByAreaComponents (meshlib.MeshPart meshPart, meshlib.meshcomponents.LargeByAreaComponentsSettings settings)
static meshlib.FaceBitSet getLargeByAreaSmoothComponents (meshlib.MeshPart meshPart, float minArea, float angleFromPlanar, meshlib.UndirectedEdgeBitSet outBdEdgesBetweenLargeComps)
static meshlib.VertBitSet getComponentsVerts (meshlib.Mesh mesh, meshlib.VertBitSet seeds, meshlib.VertBitSet region)
static long getNumComponents (meshlib.MeshPart meshPart, meshlib.meshcomponents.FaceIncidence incidence, meshlib.UndirectedEdgeBitSet isCompBd)
static meshlib.std_vector_MR_FaceBitSet getAllComponents (meshlib.MeshPart meshPart, meshlib.meshcomponents.FaceIncidence incidence, meshlib.UndirectedEdgeBitSet isCompBd)
static meshlib.std_pair_std_vector_MR_FaceBitSet_int getAllComponents (meshlib.MeshPart meshPart, int maxComponentCount, meshlib.meshcomponents.FaceIncidence incidence, meshlib.UndirectedEdgeBitSet isCompBd)
static meshlib.std_vector_MR_FaceBitSet getAllComponents (meshlib.Face2RegionMap componentsMap, int componentsCount, meshlib.FaceBitSet region, int maxComponentCount)
static meshlib.std_pair_MR_Face2RegionMap_int getAllComponentsMap (meshlib.MeshPart meshPart, meshlib.meshcomponents.FaceIncidence incidence, meshlib.UndirectedEdgeBitSet isCompBd)
static meshlib.std_pair_MR_Face2RegionMap_int getAllComponentsMapBySharpEdges (meshlib.MeshPart meshPart, java.lang.Float angleThreshold)
static meshlib.meshcomponents.ComponentsFaces getAllComponentsFaces (meshlib.MeshPart meshPart, meshlib.meshcomponents.FaceIncidence incidence, meshlib.UndirectedEdgeBitSet isCompBd)
static meshlib.meshcomponents.ComponentsFaces getAllComponentsFaces (meshlib.Face2RegionMap componentsMap, int componentsCount, meshlib.FaceBitSet region)
static meshlib.std_pair_MR_Face2RegionMap_int getFacePairRegionMap (meshlib.Mesh mesh, meshlib.std_vector_MR_FaceFace facePairs, meshlib.meshcomponents.FaceIncidence incidence, meshlib.UndirectedEdgeBitSet isCompBd)
static meshlib.Vector_double_MR_RegionId getRegionAreas (meshlib.MeshPart meshPart, meshlib.Face2RegionMap regionMap, int numRegions)
static meshlib.std_pair_MR_FaceBitSet_int getLargeByAreaRegions (meshlib.MeshPart meshPart, meshlib.Face2RegionMap regionMap, int numRegions, float minArea)
static meshlib.std_vector_MR_VertBitSet getAllComponentsVerts (meshlib.Mesh mesh, meshlib.VertBitSet region)
static meshlib.std_vector_MR_VertBitSet getAllComponentsVertsSeparatedByPath (meshlib.Mesh mesh, meshlib.std_vector_MR_EdgePoint path)
static meshlib.std_vector_MR_VertBitSet getAllComponentsVertsSeparatedByPaths (meshlib.Mesh mesh, meshlib.std_vector_std_vector_MR_EdgePoint paths)
static meshlib.std_vector_MR_EdgeBitSet getAllComponentsEdges (meshlib.Mesh mesh, meshlib.EdgeBitSet edges)
static meshlib.std_vector_MR_UndirectedEdgeBitSet getAllComponentsUndirectedEdges (meshlib.Mesh mesh, meshlib.UndirectedEdgeBitSet edges)
static boolean hasFullySelectedComponent (meshlib.Mesh mesh, meshlib.VertBitSet selection)
static boolean hasFullySelectedComponent (meshlib.MeshTopology topology, meshlib.VertBitSet selection)
static void excludeFullySelectedComponents (meshlib.Mesh mesh, meshlib.VertBitSet selection)
static meshlib.BaseUnionFind_MR_FaceId getUnionFindStructureFaces (meshlib.MeshPart meshPart, meshlib.meshcomponents.FaceIncidence incidence, meshlib.UndirectedEdgeBitSet isCompBd)
static meshlib.BaseUnionFind_MR_FaceId getUnionFindStructureFaces (meshlib.MeshTopology topology, meshlib.FaceBitSet region, meshlib.meshcomponents.FaceIncidence incidence, meshlib.UndirectedEdgeBitSet isCompBd)
static meshlib.BaseUnionFind_MR_FaceId getUnionFindStructureFacesPerEdge (meshlib.MeshPart meshPart, meshlib.UndirectedEdgeBitSet isCompBd)
static meshlib.BaseUnionFind_MR_FaceId getUnionFindStructureFacesPerEdge (meshlib.MeshTopology topology, meshlib.FaceBitSet region, meshlib.UndirectedEdgeBitSet isCompBd)
static meshlib.UnionFind_MR_VertId getUnionFindStructureVerts (meshlib.Mesh mesh, meshlib.VertBitSet region)
static meshlib.UnionFind_MR_VertId getUnionFindStructureVerts (meshlib.MeshTopology topology, meshlib.VertBitSet region)
static meshlib.UnionFind_MR_VertId getUnionFindStructureVerts (meshlib.Mesh mesh, meshlib.EdgeBitSet edges)
static meshlib.UnionFind_MR_VertId getUnionFindStructureVerts (meshlib.Mesh mesh, meshlib.UndirectedEdgeBitSet edges)
static meshlib.UnionFind_MR_VertId getUnionFindStructureVertsEx (meshlib.Mesh mesh, meshlib.UndirectedEdgeBitSet ignoreEdges)
static meshlib.UnionFind_MR_VertId getUnionFindStructureVertsSeparatedByPath (meshlib.Mesh mesh, meshlib.std_vector_MR_EdgePoint path, meshlib.VertBitSet outPathVerts)
 gets union-find structure for vertices, separating vertices by given path (either closed or from boundary to boundary)
static meshlib.UnionFind_MR_VertId getUnionFindStructureVertsSeparatedByPaths (meshlib.Mesh mesh, meshlib.std_vector_std_vector_MR_EdgePoint paths, meshlib.VertBitSet outPathVerts)
static meshlib.UnionFind_MR_UndirectedEdgeId getUnionFindStructureUndirectedEdges (meshlib.Mesh mesh, java.lang.Boolean allPointToRoots)
static meshlib.UndirectedEdgeBitSet getComponentsUndirectedEdges (meshlib.Mesh mesh, meshlib.UndirectedEdgeBitSet seeds)

Detailed Description

The free functions of this namespace.

Member Function Documentation

◆ excludeFullySelectedComponents()

void meshlib.meshcomponents.Functions.excludeFullySelectedComponents ( meshlib.Mesh mesh,
meshlib.VertBitSet selection )
static

if all vertices of a mesh connected component are present in selection, excludes these vertices Generated from function MR::MeshComponents::excludeFullySelectedComponents.

Calls MR_MeshComponents_excludeFullySelectedComponents().

◆ expandToComponents()

meshlib.FaceBitSet meshlib.meshcomponents.Functions.expandToComponents ( meshlib.MeshPart mp,
meshlib.FaceBitSet seeds,
meshlib.meshcomponents.ExpandToComponentsParams params )
static

expands given seeds to whole components Generated from function MR::MeshComponents::expandToComponents.

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

◆ getAllComponents() [1/3]

meshlib.std_vector_MR_FaceBitSet meshlib.meshcomponents.Functions.getAllComponents ( meshlib.Face2RegionMap componentsMap,
int componentsCount,
meshlib.FaceBitSet region,
int maxComponentCount )
static

gets all connected components from components map ( FaceId => RegionId )

if components number more than the maxComponentCount, they will be combined into groups of the same size (this similarly changes componentsMap)

Parameters
maxComponentCountshould be more than 1
Returns
components bitsets vector Generated from function MR::MeshComponents::getAllComponents.

Calls MR_MeshComponents_getAllComponents_4_MR_Face2RegionMap().

◆ getAllComponents() [2/3]

meshlib.std_pair_std_vector_MR_FaceBitSet_int meshlib.meshcomponents.Functions.getAllComponents ( meshlib.MeshPart meshPart,
int maxComponentCount,
meshlib.meshcomponents.FaceIncidence incidence,
meshlib.UndirectedEdgeBitSet isCompBd )
static

gets all connected components of mesh part

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

Calls MR_MeshComponents_getAllComponents_4_MR_MeshPart().

◆ getAllComponents() [3/3]

meshlib.std_vector_MR_FaceBitSet meshlib.meshcomponents.Functions.getAllComponents ( meshlib.MeshPart meshPart,
meshlib.meshcomponents.FaceIncidence incidence,
meshlib.UndirectedEdgeBitSet isCompBd )
static

gets all connected components of mesh part

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

Calls MR_MeshComponents_getAllComponents_3().

◆ getAllComponentsEdges()

meshlib.std_vector_MR_EdgeBitSet meshlib.meshcomponents.Functions.getAllComponentsEdges ( meshlib.Mesh mesh,
meshlib.EdgeBitSet edges )
static

subdivides given edges on connected components Generated from function MR::MeshComponents::getAllComponentsEdges.

Calls MR_MeshComponents_getAllComponentsEdges().

◆ getAllComponentsFaces() [1/2]

meshlib.meshcomponents.ComponentsFaces meshlib.meshcomponents.Functions.getAllComponentsFaces ( meshlib.Face2RegionMap componentsMap,
int componentsCount,
meshlib.FaceBitSet region )
static

gets all connected components from components map ( FaceId => RegionId in [0, componentsCount) ) for the faces of given region Generated from function MR::MeshComponents::getAllComponentsFaces.

Calls MR_MeshComponents_getAllComponentsFaces_MR_Face2RegionMap().

◆ getAllComponentsFaces() [2/2]

meshlib.meshcomponents.ComponentsFaces meshlib.meshcomponents.Functions.getAllComponentsFaces ( meshlib.MeshPart meshPart,
meshlib.meshcomponents.FaceIncidence incidence,
meshlib.UndirectedEdgeBitSet isCompBd )
static

gets all connected components of mesh part as a list of faces per component; unlike getAllComponents, the memory is proportional to the number of faces in the part and not to the number of components Generated from function MR::MeshComponents::getAllComponentsFaces.

Calls MR_MeshComponents_getAllComponentsFaces_MR_MeshPart().

◆ getAllComponentsMap()

meshlib.std_pair_MR_Face2RegionMap_int meshlib.meshcomponents.Functions.getAllComponentsMap ( meshlib.MeshPart meshPart,
meshlib.meshcomponents.FaceIncidence incidence,
meshlib.UndirectedEdgeBitSet isCompBd )
static

gets all connected components of mesh part as

  1. the mapping: FaceId -> Component ID in [0, 1, 2, ...)
  2. the total number of components Generated from function MR::MeshComponents::getAllComponentsMap.

Calls MR_MeshComponents_getAllComponentsMap().

◆ getAllComponentsMapBySharpEdges()

meshlib.std_pair_MR_Face2RegionMap_int meshlib.meshcomponents.Functions.getAllComponentsMapBySharpEdges ( meshlib.MeshPart meshPart,
java.lang.Float angleThreshold )
static

gets all components of mesh part separated by sharp edges with dihedral angle in [angleThreshold, PI-angleThreshold] (see findSharpEdges); nearly planar and nearly folded edges do not separate components, so overlapping coplanar triangles stay together

Parameters
angleThresholdin (0, PI/2)
Returns
the mapping FaceId -> component id (meaningful only for the faces of mesh part) and the number of components Generated from function MR::MeshComponents::getAllComponentsMapBySharpEdges.

Calls MR_MeshComponents_getAllComponentsMapBySharpEdges().

◆ getAllComponentsUndirectedEdges()

meshlib.std_vector_MR_UndirectedEdgeBitSet meshlib.meshcomponents.Functions.getAllComponentsUndirectedEdges ( meshlib.Mesh mesh,
meshlib.UndirectedEdgeBitSet edges )
static

subdivides given edges on connected components Generated from function MR::MeshComponents::getAllComponentsUndirectedEdges.

Calls MR_MeshComponents_getAllComponentsUndirectedEdges().

◆ getAllComponentsVerts()

meshlib.std_vector_MR_VertBitSet meshlib.meshcomponents.Functions.getAllComponentsVerts ( meshlib.Mesh mesh,
meshlib.VertBitSet region )
static

gets all connected components of mesh part Generated from function MR::MeshComponents::getAllComponentsVerts.

Calls MR_MeshComponents_getAllComponentsVerts().

◆ getAllComponentsVertsSeparatedByPath()

meshlib.std_vector_MR_VertBitSet meshlib.meshcomponents.Functions.getAllComponentsVertsSeparatedByPath ( meshlib.Mesh mesh,
meshlib.std_vector_MR_EdgePoint path )
static

gets all connected components, separating vertices by given path (either closed or from boundary to boundary) Generated from function MR::MeshComponents::getAllComponentsVertsSeparatedByPath.

Calls MR_MeshComponents_getAllComponentsVertsSeparatedByPath().

◆ getAllComponentsVertsSeparatedByPaths()

meshlib.std_vector_MR_VertBitSet meshlib.meshcomponents.Functions.getAllComponentsVertsSeparatedByPaths ( meshlib.Mesh mesh,
meshlib.std_vector_std_vector_MR_EdgePoint paths )
static

gets all connected components, separating vertices by given paths (either closed or from boundary to boundary) Generated from function MR::MeshComponents::getAllComponentsVertsSeparatedByPaths.

Calls MR_MeshComponents_getAllComponentsVertsSeparatedByPaths().

◆ getComponent()

meshlib.FaceBitSet meshlib.meshcomponents.Functions.getComponent ( meshlib.MeshPart meshPart,
meshlib.FaceId id,
meshlib.meshcomponents.FaceIncidence incidence,
meshlib.UndirectedEdgeBitSet isCompBd )
static

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

Calls MR_MeshComponents_getComponent().

◆ getComponents() [1/2]

meshlib.FaceBitSet meshlib.meshcomponents.Functions.getComponents ( meshlib.MeshPart meshPart,
meshlib.FaceBitSet seeds,
meshlib.meshcomponents.FaceIncidence incidence,
meshlib.UndirectedEdgeBitSet isCompBd )
static

returns union of connected components, each of which contains at least one seed face Generated from function MR::MeshComponents::getComponents.

Calls MR_MeshComponents_getComponents_4().

◆ getComponents() [2/2]

meshlib.FaceBitSet meshlib.meshcomponents.Functions.getComponents ( meshlib.MeshTopology topology,
meshlib.FaceBitSet seeds,
meshlib.FaceBitSet region,
meshlib.meshcomponents.FaceIncidence incidence,
meshlib.UndirectedEdgeBitSet isCompBd )
static

Generated from function MR::MeshComponents::getComponents.

Calls MR_MeshComponents_getComponents_5().

◆ getComponentsUndirectedEdges()

meshlib.UndirectedEdgeBitSet meshlib.meshcomponents.Functions.getComponentsUndirectedEdges ( meshlib.Mesh mesh,
meshlib.UndirectedEdgeBitSet seeds )
static

returns union of connected components, each of which contains at least one seed edge Generated from function MR::MeshComponents::getComponentsUndirectedEdges.

Calls MR_MeshComponents_getComponentsUndirectedEdges().

◆ getComponentsVerts()

meshlib.VertBitSet meshlib.meshcomponents.Functions.getComponentsVerts ( meshlib.Mesh mesh,
meshlib.VertBitSet seeds,
meshlib.VertBitSet region )
static

returns union of connected components, each of which contains at least one seed vert Generated from function MR::MeshComponents::getComponentsVerts.

Calls MR_MeshComponents_getComponentsVerts().

◆ getComponentVerts()

meshlib.VertBitSet meshlib.meshcomponents.Functions.getComponentVerts ( meshlib.Mesh mesh,
meshlib.VertId id,
meshlib.VertBitSet region )
static

returns one connected component containing given vertex, not effective to call more than once, if several components are needed use getAllComponentsVerts Generated from function MR::MeshComponents::getComponentVerts.

Calls MR_MeshComponents_getComponentVerts().

◆ getFacePairRegionMap()

meshlib.std_pair_MR_Face2RegionMap_int meshlib.meshcomponents.Functions.getFacePairRegionMap ( meshlib.Mesh mesh,
meshlib.std_vector_MR_FaceFace facePairs,
meshlib.meshcomponents.FaceIncidence incidence,
meshlib.UndirectedEdgeBitSet isCompBd )
static

given some face pairs, collects them in regions, where for each face in a region its pair face and its incident faces from other pairs are also attributed to that region; returns 1. the mapping: FaceId -> RegionId, 2. the total number of regions Generated from function MR::MeshComponents::getFacePairRegionMap.

Calls MR_MeshComponents_getFacePairRegionMap().

◆ getLargeByAreaComponents() [1/2]

meshlib.FaceBitSet meshlib.meshcomponents.Functions.getLargeByAreaComponents ( meshlib.MeshPart meshPart,
float minArea,
meshlib.UndirectedEdgeBitSet isCompBd )
static

returns the union of connected components, each having at least given area Generated from function MR::MeshComponents::getLargeByAreaComponents.

Calls MR_MeshComponents_getLargeByAreaComponents().

◆ getLargeByAreaComponents() [2/2]

meshlib.FaceBitSet meshlib.meshcomponents.Functions.getLargeByAreaComponents ( meshlib.MeshPart meshPart,
meshlib.BaseUnionFind_MR_FaceId unionFind,
float minArea,
meshlib.UndirectedEdgeBitSet outBdEdgesBetweenLargeComps )
static

given prepared union-find structure returns the union of connected components, each having at least given area Generated from function MR::MeshComponents::getLargeByAreaComponents.

Calls MR_MeshComponents_getLargeByAreaComponents_unionFind().

◆ getLargeByAreaRegions()

meshlib.std_pair_MR_FaceBitSet_int meshlib.meshcomponents.Functions.getLargeByAreaRegions ( meshlib.MeshPart meshPart,
meshlib.Face2RegionMap regionMap,
int numRegions,
float minArea )
static

returns

  1. the union of all regions with area >= minArea
  2. the number of such regions Generated from function MR::MeshComponents::getLargeByAreaRegions.

Calls MR_MeshComponents_getLargeByAreaRegions().

◆ getLargeByAreaSmoothComponents()

meshlib.FaceBitSet meshlib.meshcomponents.Functions.getLargeByAreaSmoothComponents ( meshlib.MeshPart meshPart,
float minArea,
float angleFromPlanar,
meshlib.UndirectedEdgeBitSet outBdEdgesBetweenLargeComps )
static

returns the union of connected components, each having at least given area, and any two faces in a connected component have a path along the surface across the edges, where surface does not deviate from plane more than on given angle Generated from function MR::MeshComponents::getLargeByAreaSmoothComponents.

Calls MR_MeshComponents_getLargeByAreaSmoothComponents().

◆ getLargeByVolumeComponents()

meshlib.FaceBitSet meshlib.meshcomponents.Functions.getLargeByVolumeComponents ( meshlib.MeshPart meshPart,
float minVolume )
static

returns the union of connected components, each having at least given volume note that function require closed mesh part Generated from function MR::MeshComponents::getLargeByVolumeComponents.

Calls MR_MeshComponents_getLargeByVolumeComponents().

◆ getLargeComponentVerts()

meshlib.VertBitSet meshlib.meshcomponents.Functions.getLargeComponentVerts ( meshlib.Mesh mesh,
int minVerts,
meshlib.VertBitSet region )
static

returns the union of vertex connected components, each having at least

Parameters
minVertsvertices Generated from function MR::MeshComponents::getLargeComponentVerts.

Calls MR_MeshComponents_getLargeComponentVerts().

◆ getLargestComponent()

meshlib.FaceBitSet meshlib.meshcomponents.Functions.getLargestComponent ( meshlib.MeshPart meshPart,
meshlib.meshcomponents.FaceIncidence incidence,
meshlib.UndirectedEdgeBitSet isCompBd,
java.lang.Float minArea,
meshlib.int_output numSmallerComponents )
static

returns the largest by surface area component or empty set if its area is smaller than

Parameters
minAreaGenerated from function MR::MeshComponents::getLargestComponent.

Calls MR_MeshComponents_getLargestComponent().

◆ getLargestComponentArea()

double meshlib.meshcomponents.Functions.getLargestComponentArea ( meshlib.MeshPart meshPart,
meshlib.meshcomponents.FaceIncidence incidence,
meshlib.UndirectedEdgeBitSet isCompBd,
meshlib.FaceBitSet largestComponent,
meshlib.int_output numSmallerComponents )
static

returns the area of the largest by surface area component, and zero if there are no components at all Generated from function MR::MeshComponents::getLargestComponentArea.

Calls MR_MeshComponents_getLargestComponentArea().

◆ getLargestComponentVerts()

meshlib.VertBitSet meshlib.meshcomponents.Functions.getLargestComponentVerts ( meshlib.Mesh mesh,
meshlib.VertBitSet region )
static

returns the largest by number of elements component Generated from function MR::MeshComponents::getLargestComponentVerts.

Calls MR_MeshComponents_getLargestComponentVerts().

◆ getLargestComponentVolume()

double meshlib.meshcomponents.Functions.getLargestComponentVolume ( meshlib.MeshPart meshPart,
meshlib.meshcomponents.VolumeSelection selection,
meshlib.meshcomponents.FaceIncidence incidence,
meshlib.UndirectedEdgeBitSet isCompBd,
meshlib.FaceBitSet largestComponent,
meshlib.int_output numSmallerComponents )
static

returns the signed volume of the component selected by given rule, and zero if no component satisfies it, which is possible for Positive and Negative rules only, since they never select a component of zero volume; the volume of each component is computed as if it were closed, so the result is correct only for a closed mesh part (or if the area of holes in it is almost zero) Generated from function MR::MeshComponents::getLargestComponentVolume.

Calls MR_MeshComponents_getLargestComponentVolume().

◆ getNLargeByAreaComponents()

meshlib.std_vector_MR_FaceBitSet meshlib.meshcomponents.Functions.getNLargeByAreaComponents ( meshlib.MeshPart meshPart,
meshlib.meshcomponents.LargeByAreaComponentsSettings settings )
static

returns requested number of largest by area connected components in descending by area order Generated from function MR::MeshComponents::getNLargeByAreaComponents.

Calls MR_MeshComponents_getNLargeByAreaComponents().

◆ getNumComponents()

long meshlib.meshcomponents.Functions.getNumComponents ( meshlib.MeshPart meshPart,
meshlib.meshcomponents.FaceIncidence incidence,
meshlib.UndirectedEdgeBitSet isCompBd )
static

returns the number of connected components in mesh part Generated from function MR::MeshComponents::getNumComponents.

Calls MR_MeshComponents_getNumComponents().

◆ getRegionAreas()

meshlib.Vector_double_MR_RegionId meshlib.meshcomponents.Functions.getRegionAreas ( meshlib.MeshPart meshPart,
meshlib.Face2RegionMap regionMap,
int numRegions )
static

computes the area of each region given via the map Generated from function MR::MeshComponents::getRegionAreas.

Calls MR_MeshComponents_getRegionAreas().

◆ getUnionFindStructureFaces() [1/2]

meshlib.BaseUnionFind_MR_FaceId meshlib.meshcomponents.Functions.getUnionFindStructureFaces ( meshlib.MeshPart meshPart,
meshlib.meshcomponents.FaceIncidence incidence,
meshlib.UndirectedEdgeBitSet isCompBd )
static

gets union-find structure for faces with different options of face-connectivity Generated from function MR::MeshComponents::getUnionFindStructureFaces.

Calls MR_MeshComponents_getUnionFindStructureFaces_3().

◆ getUnionFindStructureFaces() [2/2]

meshlib.BaseUnionFind_MR_FaceId meshlib.meshcomponents.Functions.getUnionFindStructureFaces ( meshlib.MeshTopology topology,
meshlib.FaceBitSet region,
meshlib.meshcomponents.FaceIncidence incidence,
meshlib.UndirectedEdgeBitSet isCompBd )
static

Generated from function MR::MeshComponents::getUnionFindStructureFaces.

Calls MR_MeshComponents_getUnionFindStructureFaces_4().

◆ getUnionFindStructureFacesPerEdge() [1/2]

meshlib.BaseUnionFind_MR_FaceId meshlib.meshcomponents.Functions.getUnionFindStructureFacesPerEdge ( meshlib.MeshPart meshPart,
meshlib.UndirectedEdgeBitSet isCompBd )
static

gets union-find structure for faces with connectivity by shared edge, and optional edge predicate whether to skip uniting components over it it is guaranteed that isCompBd is invoked in a thread-safe manner (that left and right face are always processed by one thread) Generated from function MR::MeshComponents::getUnionFindStructureFacesPerEdge.

Calls MR_MeshComponents_getUnionFindStructureFacesPerEdge_2().

◆ getUnionFindStructureFacesPerEdge() [2/2]

meshlib.BaseUnionFind_MR_FaceId meshlib.meshcomponents.Functions.getUnionFindStructureFacesPerEdge ( meshlib.MeshTopology topology,
meshlib.FaceBitSet region,
meshlib.UndirectedEdgeBitSet isCompBd )
static

Generated from function MR::MeshComponents::getUnionFindStructureFacesPerEdge.

Calls MR_MeshComponents_getUnionFindStructureFacesPerEdge_3().

◆ getUnionFindStructureUndirectedEdges()

meshlib.UnionFind_MR_UndirectedEdgeId meshlib.meshcomponents.Functions.getUnionFindStructureUndirectedEdges ( meshlib.Mesh mesh,
java.lang.Boolean allPointToRoots )
static

gets union-find structure for all undirected edges in

Parameters
mesh
allPointToRootsif true, then every element in the structure will point directly to the root of its respective component Generated from function MR::MeshComponents::getUnionFindStructureUndirectedEdges.

Calls MR_MeshComponents_getUnionFindStructureUndirectedEdges().

◆ getUnionFindStructureVerts() [1/4]

meshlib.UnionFind_MR_VertId meshlib.meshcomponents.Functions.getUnionFindStructureVerts ( meshlib.Mesh mesh,
meshlib.EdgeBitSet edges )
static

gets union-find structure for vertices, considering connections by given edges only Generated from function MR::MeshComponents::getUnionFindStructureVerts.

Calls MR_MeshComponents_getUnionFindStructureVerts_const_MR_Mesh_ref_MR_EdgeBitSet().

◆ getUnionFindStructureVerts() [2/4]

meshlib.UnionFind_MR_VertId meshlib.meshcomponents.Functions.getUnionFindStructureVerts ( meshlib.Mesh mesh,
meshlib.UndirectedEdgeBitSet edges )
static

gets union-find structure for vertices, considering connections by given undirected edges only Generated from function MR::MeshComponents::getUnionFindStructureVerts.

Calls MR_MeshComponents_getUnionFindStructureVerts_const_MR_Mesh_ref_MR_UndirectedEdgeBitSet().

◆ getUnionFindStructureVerts() [3/4]

meshlib.UnionFind_MR_VertId meshlib.meshcomponents.Functions.getUnionFindStructureVerts ( meshlib.Mesh mesh,
meshlib.VertBitSet region )
static

gets union-find structure for vertices Generated from function MR::MeshComponents::getUnionFindStructureVerts.

Calls MR_MeshComponents_getUnionFindStructureVerts_const_MR_Mesh_ref_const_MR_VertBitSet_ptr().

◆ getUnionFindStructureVerts() [4/4]

meshlib.UnionFind_MR_VertId meshlib.meshcomponents.Functions.getUnionFindStructureVerts ( meshlib.MeshTopology topology,
meshlib.VertBitSet region )
static

Generated from function MR::MeshComponents::getUnionFindStructureVerts.

Calls MR_MeshComponents_getUnionFindStructureVerts_const_MR_MeshTopology_ref().

◆ getUnionFindStructureVertsEx()

meshlib.UnionFind_MR_VertId meshlib.meshcomponents.Functions.getUnionFindStructureVertsEx ( meshlib.Mesh mesh,
meshlib.UndirectedEdgeBitSet ignoreEdges )
static

gets union-find structure for vertices, considering connections by all edges excluding given ones Generated from function MR::MeshComponents::getUnionFindStructureVertsEx.

Calls MR_MeshComponents_getUnionFindStructureVertsEx().

◆ getUnionFindStructureVertsSeparatedByPath()

meshlib.UnionFind_MR_VertId meshlib.meshcomponents.Functions.getUnionFindStructureVertsSeparatedByPath ( meshlib.Mesh mesh,
meshlib.std_vector_MR_EdgePoint path,
meshlib.VertBitSet outPathVerts )
static

gets union-find structure for vertices, separating vertices by given path (either closed or from boundary to boundary)

Parameters
outPathVertsthis set receives all vertices passed by the path

Generated from function MR::MeshComponents::getUnionFindStructureVertsSeparatedByPath.

Calls MR_MeshComponents_getUnionFindStructureVertsSeparatedByPath().

◆ getUnionFindStructureVertsSeparatedByPaths()

meshlib.UnionFind_MR_VertId meshlib.meshcomponents.Functions.getUnionFindStructureVertsSeparatedByPaths ( meshlib.Mesh mesh,
meshlib.std_vector_std_vector_MR_EdgePoint paths,
meshlib.VertBitSet outPathVerts )
static

Generated from function MR::MeshComponents::getUnionFindStructureVertsSeparatedByPaths.

Calls MR_MeshComponents_getUnionFindStructureVertsSeparatedByPaths().

◆ hasFullySelectedComponent() [1/2]

boolean meshlib.meshcomponents.Functions.hasFullySelectedComponent ( meshlib.Mesh mesh,
meshlib.VertBitSet selection )
static

returns true if all vertices of a mesh connected component are present in selection Generated from function MR::MeshComponents::hasFullySelectedComponent.

Calls MR_MeshComponents_hasFullySelectedComponent_MR_Mesh().

◆ hasFullySelectedComponent() [2/2]

boolean meshlib.meshcomponents.Functions.hasFullySelectedComponent ( meshlib.MeshTopology topology,
meshlib.VertBitSet selection )
static

Generated from function MR::MeshComponents::hasFullySelectedComponent.

Calls MR_MeshComponents_hasFullySelectedComponent_MR_MeshTopology().


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