| 31 | |
| 32 | |
| 33 | NeighborhoodSearch::NeighborhoodSearch(Real r, bool erase_empty_cells) |
| 34 | : m_r2(r * r), m_inv_cell_size(1.0 / r) |
| 35 | , m_erase_empty_cells(erase_empty_cells) |
| 36 | , m_initialized(false) |
| 37 | { |
| 38 | if (r <= 0.0) |
| 39 | { |
| 40 | std::cerr << "WARNING: Neighborhood search may not be initialized with a zero or negative" |
| 41 | << " search radius. This may lead to unexpected behavior." << std::endl; |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | // Computes triple index to a world space position x. |
| 46 | HashKey |
nothing calls this directly
no outgoing calls
no test coverage detected