| 88 | } |
| 89 | |
| 90 | VertBitSet Grid::getSamples() const |
| 91 | { |
| 92 | VertId maxId; |
| 93 | for ( const auto & ge : voxels_ ) |
| 94 | maxId = std::max( maxId, ge.vid ); |
| 95 | |
| 96 | VertBitSet res( (size_t)maxId + 1 ); |
| 97 | for ( const auto & ge : voxels_ ) |
| 98 | if ( ge.vid ) |
| 99 | res.set( ge.vid ); |
| 100 | |
| 101 | return res; |
| 102 | } |
| 103 | |
| 104 | std::vector<MR::ObjVertId> Grid::setSamplesPerModel() const |
| 105 | { |
no test coverage detected