Blender V4.3
HashGrid.cpp
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2012-2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10#include "HashGrid.h"
11
12#include "BLI_sys_types.h"
13
14namespace Freestyle {
15
17{
18 if (!_cells.empty()) {
19 for (GridHashTable::iterator it = _cells.begin(); it != _cells.end(); it++) {
20 Cell *cell = (*it).second;
21 delete cell;
22 }
23 _cells.clear();
24 }
25
27}
28
29void HashGrid::configure(const Vec3r &orig, const Vec3r &size, uint nb)
30{
31 Grid::configure(orig, size, nb);
32}
33
34} /* namespace Freestyle */
unsigned int uint
Class to define a cell grid surrounding the bounding box of the scene.
virtual void configure(const Vec3r &orig, const Vec3r &size, uint nb)
Definition Grid.cpp:100
virtual void clear()
Definition Grid.cpp:84
virtual void configure(const Vec3r &orig, const Vec3r &size, uint nb)
Definition HashGrid.cpp:29
GridHashTable _cells
Definition HashGrid.h:88
virtual void clear()
Definition HashGrid.cpp:16
inherits from class Rep
Definition AppCanvas.cpp:20