| 102 | } |
| 103 | |
| 104 | std::vector<MR::ObjVertId> Grid::setSamplesPerModel() const |
| 105 | { |
| 106 | size_t counter = 0; |
| 107 | for ( const auto& ge : voxels_ ) |
| 108 | if ( ge.vid ) |
| 109 | ++counter; |
| 110 | |
| 111 | std::vector<MR::ObjVertId> res( counter ); |
| 112 | counter = 0; |
| 113 | for ( const auto& ge : voxels_ ) |
| 114 | { |
| 115 | if ( !ge.vid ) |
| 116 | continue; |
| 117 | res[counter] = { ge.oid,ge.vid }; |
| 118 | ++counter; |
| 119 | } |
| 120 | return res; |
| 121 | } |
| 122 | |
| 123 | std::optional<VertBitSet> verticesGridSampling( const MeshPart & mp, float voxelSize, const ProgressCallback & cb ) |
| 124 | { |
no outgoing calls
no test coverage detected