Blender V4.3
HeuristicGridDensityProviderFactory.cpp
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
11
12#include "BLI_sys_types.h"
13
14namespace Freestyle {
15
17 uint numFaces)
18 : sizeFactor(sizeFactor), numFaces(numFaces)
19{
20}
21
23 OccluderSource &source, const real proscenium[4])
24{
26 new AverageAreaGridDensityProvider(source, proscenium, sizeFactor));
28 new Pow23GridDensityProvider(source, proscenium, numFaces));
29 if (avg->cellSize() > p23->cellSize()) {
31 }
32
34}
35
37 OccluderSource &source, const BBox<Vec3r> &bbox, const GridHelpers::Transform &transform)
38{
40 new AverageAreaGridDensityProvider(source, bbox, transform, sizeFactor));
42 new Pow23GridDensityProvider(source, bbox, transform, numFaces));
43 if (avg->cellSize() > p23->cellSize()) {
45 }
46
48}
49
65
66} /* namespace Freestyle */
unsigned int uint
Class to define a cell grid surrounding the projected image of a scene.
static void calculateOptimalProscenium(OccluderSource &source, real proscenium[4])
AutoPtr< GridDensityProvider > newGridDensityProvider(OccluderSource &source, const real proscenium[4])
inherits from class Rep
Definition AppCanvas.cpp:20
double real
Definition Precision.h:14