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

Function getLargeComponentVerts

source/MRMesh/MRMeshComponents.cpp:152–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152VertBitSet getLargeComponentVerts( const Mesh& mesh, int minVerts, const VertBitSet* region )
153{
154 MR_TIMER;
155 assert( minVerts >= 2 );
156 if ( minVerts <= 1 )
157 return mesh.topology.getVertIds( region );
158
159 auto unionFind = getUnionFindStructureVerts( mesh, region );
160
161 VertBitSet res( mesh.topology.vertSize() );
162 for ( auto f : mesh.topology.getVertIds( region ) )
163 {
164 if ( unionFind.sizeOfComp( f ) >= minVerts )
165 res.set( f );
166 }
167 return res;
168}
169
170FaceBitSet getComponents( const MeshTopology& topology, const FaceBitSet & seeds, const FaceBitSet* region0,
171 FaceIncidence incidence, const UndirectedEdgeBitSet * isCompBd )

Callers 1

findInnerShellVertsFunction · 0.85

Calls 4

sizeOfCompMethod · 0.80
vertSizeMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected