| 150 | } |
| 151 | |
| 152 | VertBitSet 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 | |
| 170 | FaceBitSet getComponents( const MeshTopology& topology, const FaceBitSet & seeds, const FaceBitSet* region0, |
| 171 | FaceIncidence incidence, const UndirectedEdgeBitSet * isCompBd ) |
no test coverage detected