Blender  V3.3
HashGrid.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
8 #include "HashGrid.h"
9 
10 namespace Freestyle {
11 
13 {
14  if (!_cells.empty()) {
15  for (GridHashTable::iterator it = _cells.begin(); it != _cells.end(); it++) {
16  Cell *cell = (*it).second;
17  delete cell;
18  }
19  _cells.clear();
20  }
21 
22  Grid::clear();
23 }
24 
25 void HashGrid::configure(const Vec3r &orig, const Vec3r &size, unsigned nb)
26 {
27  Grid::configure(orig, size, nb);
28 }
29 
30 } /* namespace Freestyle */
Class to define a cell grid surrounding the bounding box of the scene.
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition: btDbvt.cpp:52
virtual void configure(const Vec3r &orig, const Vec3r &size, unsigned nb)
Definition: Grid.cpp:96
virtual void clear()
Definition: Grid.cpp:80
GridHashTable _cells
Definition: HashGrid.h:88
virtual void configure(const Vec3r &orig, const Vec3r &size, unsigned nb)
Definition: HashGrid.cpp:25
virtual void clear()
Definition: HashGrid.cpp:12
inherits from class Rep
Definition: AppCanvas.cpp:18