Blender
V4.3
source
blender
freestyle
intern
geometry
FastGrid.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
12
#include "
Grid.h
"
13
14
namespace
Freestyle
{
15
21
class
FastGrid
:
public
Grid
{
22
public
:
23
FastGrid
() :
Grid
()
24
{
25
_cells
=
nullptr
;
26
_cells_size
= 0;
27
}
28
29
virtual
~FastGrid
()
30
{
31
clear
();
32
}
33
38
virtual
void
clear
();
39
48
virtual
void
configure
(
const
Vec3r
&orig,
const
Vec3r
&size,
uint
nb);
49
51
Cell
*
getCell
(
const
Vec3u
&p);
52
54
virtual
void
fillCell
(
const
Vec3u
&p,
Cell
&cell);
55
56
protected
:
57
Cell
**
_cells
;
58
uint
_cells_size
;
59
60
#ifdef WITH_CXX_GUARDEDALLOC
61
MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:FastGrid"
)
62
#endif
63
};
64
65
}
/* namespace Freestyle */
uint
unsigned int uint
Definition
BLI_sys_types.h:68
Grid.h
Base class to define a cell grid surrounding the bounding box of the scene.
Freestyle::Cell
Definition
Grid.h:42
Freestyle::FastGrid
Definition
FastGrid.h:21
Freestyle::FastGrid::getCell
Cell * getCell(const Vec3u &p)
Definition
FastGrid.cpp:45
Freestyle::FastGrid::FastGrid
FastGrid()
Definition
FastGrid.h:23
Freestyle::FastGrid::_cells_size
uint _cells_size
Definition
FastGrid.h:58
Freestyle::FastGrid::_cells
Cell ** _cells
Definition
FastGrid.h:57
Freestyle::FastGrid::configure
virtual void configure(const Vec3r &orig, const Vec3r &size, uint nb)
Definition
FastGrid.cpp:37
Freestyle::FastGrid::fillCell
virtual void fillCell(const Vec3u &p, Cell &cell)
Definition
FastGrid.cpp:61
Freestyle::FastGrid::clear
virtual void clear()
Definition
FastGrid.cpp:19
Freestyle::FastGrid::~FastGrid
virtual ~FastGrid()
Definition
FastGrid.h:29
Freestyle::Grid
Definition
Grid.h:167
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