| 75 | } |
| 76 | |
| 77 | void Grid::addVertex( const Vector3f& p, VertId vid, ObjId oid ) |
| 78 | { |
| 79 | const auto pos = pointPos( p ); |
| 80 | auto & ge = voxels_[ toVoxelId( pos ) ]; |
| 81 | const auto distSq = ( p - voxelCenter( pos ) ).lengthSq(); |
| 82 | if ( distSq < ge.centerDistSq ) |
| 83 | { |
| 84 | ge.centerDistSq = distSq; |
| 85 | ge.vid = vid; |
| 86 | ge.oid = oid; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | VertBitSet Grid::getSamples() const |
| 91 | { |
no test coverage detected