MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/CompactNSearch / NeighborhoodSearch

Method NeighborhoodSearch

src/CompactNSearch.cpp:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32
33NeighborhoodSearch::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.
46HashKey

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected