MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / getAllComponentsMap

Function getAllComponentsMap

source/MRMesh/MRMeshComponents.cpp:583–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583std::pair<Face2RegionMap, int> getAllComponentsMap( const MeshPart& meshPart, FaceIncidence incidence, const UndirectedEdgeBitSet * isCompBd )
584{
585 MR_TIMER;
586 auto unionFindStruct = getUnionFindStructureFaces( meshPart, incidence, isCompBd );
587 const auto& mesh = meshPart.mesh;
588 const FaceBitSet& region = mesh.topology.getFaceIds( meshPart.region );
589
590 const auto& allRoots = unionFindStruct.roots();
591 return getUniqueRootIds( allRoots, region );
592}
593
594std::pair<Face2RegionMap, int> getFacePairRegionMap( const Mesh& mesh, const std::vector<FaceFace>& facePairs,
595 FaceIncidence incidence, const UndirectedEdgeBitSet * isCompBd )

Callers 8

EMSCRIPTEN_BINDINGSFunction · 0.85
expandToComponentsFunction · 0.85
getAllComponentsFunction · 0.85
getFacesFunction · 0.85
fixOldFunction · 0.85
fixFunction · 0.85
uniteComponentsFunction · 0.85

Calls 2

getUniqueRootIdsFunction · 0.70

Tested by

no test coverage detected