Blender
V4.3
source
blender
freestyle
intern
geometry
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
14
namespace
Freestyle
{
15
16
void
HashGrid::clear
()
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
26
Grid::clear
();
27
}
28
29
void
HashGrid::configure
(
const
Vec3r
&orig,
const
Vec3r
&size,
uint
nb)
30
{
31
Grid::configure
(orig, size, nb);
32
}
33
34
}
/* namespace Freestyle */
BLI_sys_types.h
uint
unsigned int uint
Definition
BLI_sys_types.h:68
HashGrid.h
Class to define a cell grid surrounding the bounding box of the scene.
Freestyle::Cell
Definition
Grid.h:42
Freestyle::Grid::configure
virtual void configure(const Vec3r &orig, const Vec3r &size, uint nb)
Definition
Grid.cpp:100
Freestyle::Grid::clear
virtual void clear()
Definition
Grid.cpp:84
Freestyle::HashGrid::configure
virtual void configure(const Vec3r &orig, const Vec3r &size, uint nb)
Definition
HashGrid.cpp:29
Freestyle::HashGrid::_cells
GridHashTable _cells
Definition
HashGrid.h:88
Freestyle::HashGrid::clear
virtual void clear()
Definition
HashGrid.cpp:16
Freestyle::VecMat::Vec3< real >
Freestyle
inherits from class Rep
Definition
AppCanvas.cpp:20
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0