| 58 | } |
| 59 | |
| 60 | VertBitSet getComponentVerts( const Mesh& mesh, VertId id, const VertBitSet* region /*= nullptr */ ) |
| 61 | { |
| 62 | MR_TIMER; |
| 63 | auto unionFindStruct = getUnionFindStructureVerts( mesh, region ); |
| 64 | const VertBitSet& vertsRegion = mesh.topology.getVertIds( region ); |
| 65 | |
| 66 | int vertRoot = unionFindStruct.find( id ); |
| 67 | const auto& allRoots = unionFindStruct.roots(); |
| 68 | VertBitSet res; |
| 69 | res.resize( allRoots.size() ); |
| 70 | for ( auto v : vertsRegion ) |
| 71 | { |
| 72 | if ( allRoots[v] == vertRoot ) |
| 73 | res.set( v ); |
| 74 | } |
| 75 | return res; |
| 76 | |
| 77 | } |
| 78 | |
| 79 | FaceBitSet getLargestComponent( const MeshPart& meshPart, FaceIncidence incidence, const UndirectedEdgeBitSet * isCompBd, float minArea, int * numSmallerComponents ) |
| 80 | { |
nothing calls this directly
no test coverage detected