| Line |
Branch |
Exec |
Source |
| 1 |
|
|
// SPDX-License-Identifier: BSD-3-Clause |
| 2 |
|
|
|
| 3 |
|
|
/// @file |
| 4 |
|
|
/// @brief Windows of post lattices, tiled and gathered fills, point queries, exact subgrids and |
| 5 |
|
|
/// missing-value marking shared by sources, upsamplers and grounds. |
| 6 |
|
|
#pragma once |
| 7 |
|
|
|
| 8 |
|
|
#include "terraingen/geometry/geometry.h" |
| 9 |
|
|
#include "terraingen/raster/cell_loops.h" |
| 10 |
|
|
#include "terraingen/raster/geo_transform.h" |
| 11 |
|
|
#include "terraingen/raster/grid.h" |
| 12 |
|
|
#include "terraingen/raster/raster.h" |
| 13 |
|
|
#include "terraingen/sources/sample_block.h" |
| 14 |
|
|
#include "terraingen/sources/upsampling.h" |
| 15 |
|
|
#include "terraingen/util/span.h" |
| 16 |
|
|
|
| 17 |
|
|
#include <algorithm> |
| 18 |
|
|
#include <cmath> |
| 19 |
|
|
#include <cstddef> |
| 20 |
|
|
#include <cstdint> |
| 21 |
|
|
#include <limits> |
| 22 |
|
|
#include <optional> |
| 23 |
|
|
#include <vector> |
| 24 |
|
|
|
| 25 |
|
|
namespace terraingen { |
| 26 |
|
|
|
| 27 |
|
|
namespace detail { |
| 28 |
|
|
|
| 29 |
|
|
/// How close to a whole number of posts or nodes a lattice position counts as one. |
| 30 |
|
|
inline constexpr double kOnLattice = 1e-6; |
| 31 |
|
|
|
| 32 |
|
|
/// `value` as an integer when it is within `kOnLattice` of one. |
| 33 |
|
8468116 |
inline std::optional<std::int64_t> NearestWhole(double value) { |
| 34 |
|
8468116 |
const double rounded = std::round(value); |
| 35 |
2/2
✓ Branch 0 taken 3336935 times.
✓ Branch 1 taken 5131181 times.
|
8468116 |
if (!(std::fabs(value - rounded) <= kOnLattice)) { |
| 36 |
|
3336935 |
return std::nullopt; |
| 37 |
|
|
} |
| 38 |
|
5131181 |
return static_cast<std::int64_t>(rounded); |
| 39 |
|
|
} |
| 40 |
|
|
|
| 41 |
|
|
/// An inclusive box of lattice indices, columns [`col0`, `col1`] and rows [`row0`, `row1`]; |
| 42 |
|
|
/// empty until it includes a span. |
| 43 |
|
|
struct IndexBox { |
| 44 |
|
|
std::int64_t col0 = std::numeric_limits<std::int64_t>::max(); |
| 45 |
|
|
std::int64_t row0 = std::numeric_limits<std::int64_t>::max(); |
| 46 |
|
|
std::int64_t col1 = std::numeric_limits<std::int64_t>::min(); |
| 47 |
|
|
std::int64_t row1 = std::numeric_limits<std::int64_t>::min(); |
| 48 |
|
|
|
| 49 |
|
|
/// Grows the box to hold columns [`first`, `last`] and rows [`top`, `bottom`]. |
| 50 |
|
3546287 |
void Include(std::int64_t first, std::int64_t last, std::int64_t top, std::int64_t bottom) { |
| 51 |
2/2
✓ Branch 0 taken 1166355 times.
✓ Branch 1 taken 2379932 times.
|
3546287 |
col0 = std::min(col0, first); |
| 52 |
2/2
✓ Branch 0 taken 1212029 times.
✓ Branch 1 taken 2334258 times.
|
3546287 |
col1 = std::max(col1, last); |
| 53 |
2/2
✓ Branch 0 taken 1181687 times.
✓ Branch 1 taken 2364600 times.
|
3546287 |
row0 = std::min(row0, top); |
| 54 |
2/2
✓ Branch 0 taken 1181704 times.
✓ Branch 1 taken 2364583 times.
|
3546287 |
row1 = std::max(row1, bottom); |
| 55 |
|
3546287 |
} |
| 56 |
|
|
|
| 57 |
|
|
/// Columns in a non-empty box. |
| 58 |
|
1505075 |
std::size_t Columns() const { |
| 59 |
1/1
✓ Branch 1 taken 48 times.
|
706507 |
return static_cast<std::size_t>(col1 - col0 + 1); |
| 60 |
|
|
} |
| 61 |
|
|
|
| 62 |
|
|
/// Rows in a non-empty box. |
| 63 |
|
1505075 |
std::size_t Rows() const { |
| 64 |
2/2
✓ Branch 1 taken 1 time.
✓ Branch 2 taken 353274 times.
|
1505075 |
return static_cast<std::size_t>(row1 - row0 + 1); |
| 65 |
|
|
} |
| 66 |
|
|
|
| 67 |
|
|
/// The number of indices the box holds, as a double so that it cannot overflow. |
| 68 |
|
265500 |
double Area() const { |
| 69 |
1/1
✓ Branch 1 taken 1 time.
|
265500 |
return static_cast<double>(col1 - col0 + 1) * static_cast<double>(row1 - row0 + 1); |
| 70 |
|
|
} |
| 71 |
|
|
}; |
| 72 |
|
|
|
| 73 |
|
|
/// Values over an `IndexBox` of a lattice, row by row. |
| 74 |
1/2
✓ Branch 1 taken 1 time.
✗ Branch 2 not taken.
|
877173 |
template <typename T> struct LatticeWindow { |
| 75 |
|
|
IndexBox box; |
| 76 |
|
|
std::size_t width = 0; |
| 77 |
|
|
std::vector<T> values; |
| 78 |
|
|
|
| 79 |
|
|
/// The window over a non-empty `over`, every value `T{}`. |
| 80 |
|
1151797 |
explicit LatticeWindow(const IndexBox& over) |
| 81 |
|
1151797 |
: box(over), width(over.Columns()), values(over.Columns() * over.Rows()) {} |
| 82 |
|
|
|
| 83 |
|
27750887 |
T& At(std::int64_t col, std::int64_t row) { |
| 84 |
|
27750887 |
return values[static_cast<std::size_t>(row - box.row0) * width + |
| 85 |
|
27750887 |
static_cast<std::size_t>(col - box.col0)]; |
| 86 |
|
|
} |
| 87 |
|
578714637 |
const T& At(std::int64_t col, std::int64_t row) const { |
| 88 |
2/2
✓ Branch 0 taken 539426 times.
✓ Branch 1 taken 26887 times.
|
9111927 |
return values[static_cast<std::size_t>(row - box.row0) * width + |
| 89 |
4/4
terraingen::detail::IndexBox::Include(long, long, long, long):
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
terraingen::detail::LatticeWindow<double>::LatticeWindow(terraingen::detail::IndexBox const&):
✓ Branch 0 taken 565356 times.
✓ Branch 1 taken 1207223 times.
|
546412789 |
static_cast<std::size_t>(col - box.col0)]; |
| 90 |
|
|
} |
| 91 |
|
|
}; |
| 92 |
|
|
|
| 93 |
|
|
/// The posts of `posts` over `box`, NaN where they have no data. |
| 94 |
|
|
LatticeWindow<float> ReadPosts(const PostLattice& posts, const IndexBox& box); |
| 95 |
|
|
|
| 96 |
|
|
/// The index along an axis of the post a lattice read takes for index `at`: wrapped into |
| 97 |
|
|
/// [0, `count`) when `wrap`, as longitudes around a body are, then clamped to [`begin`, `end`), |
| 98 |
|
|
/// so reads beyond the posts held repeat their edge. |
| 99 |
|
2728779 |
inline std::size_t PostIndex(std::int64_t at, bool wrap, std::size_t count, std::size_t begin, |
| 100 |
|
|
std::size_t end) { |
| 101 |
|
2728784 |
const auto n = static_cast<std::int64_t>(count); |
| 102 |
2/2
✓ Branch 0 taken 1051 times.
✓ Branch 1 taken 2727728 times.
|
2728779 |
const std::int64_t wrapped = wrap ? ((at % n) + n) % n : at; |
| 103 |
|
5457545 |
return static_cast<std::size_t>(std::clamp<std::int64_t>( |
| 104 |
4/4
✓ Branch 0 taken 66912 times.
✓ Branch 1 taken 2661858 times.
✓ Branch 5 taken 3 times.
✓ Branch 6 taken 6 times.
|
2728784 |
wrapped, static_cast<std::int64_t>(begin), static_cast<std::int64_t>(end) - 1)); |
| 105 |
|
|
} |
| 106 |
|
|
|
| 107 |
|
|
/// The `PostIndex` of each of the `size` indices from `first` along an axis. |
| 108 |
|
977096 |
inline std::vector<std::size_t> PostIndices(std::int64_t first, std::size_t size, bool wrap, |
| 109 |
|
|
std::size_t count, std::size_t begin, std::size_t end) { |
| 110 |
|
977096 |
std::vector<std::size_t> indices(size); |
| 111 |
2/2
✓ Branch 0 taken 2728803 times.
✓ Branch 1 taken 977098 times.
|
3705901 |
for (std::size_t i = 0; i < size; ++i) { |
| 112 |
|
2728803 |
indices[i] = PostIndex(first + static_cast<std::int64_t>(i), wrap, count, begin, end); |
| 113 |
|
|
} |
| 114 |
|
977098 |
return indices; |
| 115 |
|
|
} |
| 116 |
|
|
|
| 117 |
|
|
/// Where a grid on a lattice starts, in lattice cells. |
| 118 |
|
|
struct LatticeOffset { |
| 119 |
|
|
std::int64_t col = 0; |
| 120 |
|
|
std::int64_t row = 0; |
| 121 |
|
|
}; |
| 122 |
|
|
|
| 123 |
|
|
/// The offset of a grid with transform `grid` on a lattice placed by `lattice`, if its cells are |
| 124 |
|
|
/// the lattice's cells: the same size and rotation, starting a whole number of cells away. |
| 125 |
|
|
std::optional<LatticeOffset> OffsetOnLattice(const GeoTransform& lattice, const GeoTransform& grid); |
| 126 |
|
|
|
| 127 |
|
|
/// Cells per side of the tiles `FillByTiles` hands out. |
| 128 |
|
|
inline constexpr std::size_t kFillTileCells = 128; |
| 129 |
|
|
|
| 130 |
|
|
/// Sets the samples of `samples` by `fill(positions, values)`, which sets `values`, one per |
| 131 |
|
|
/// position: a grid tile by tile, tiles split over threads, each tile's cell centers row by row; |
| 132 |
|
|
/// points all at once. |
| 133 |
|
|
/// @param threads Threads to fill a grid over; 0 for every hardware thread. |
| 134 |
|
|
template <typename FillPoints> |
| 135 |
11/12
void terraingen::detail::FillByTiles<(anonymous namespace)::MeanUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, (anonymous namespace)::MeanUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✓ Branch 0 taken 74 times.
✓ Branch 1 taken 2 times.
void terraingen::detail::FillByTiles<(anonymous namespace)::ThreadNotingUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, (anonymous namespace)::ThreadNotingUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
void terraingen::detail::FillByTiles<terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✓ Branch 0 taken 67684 times.
✓ Branch 1 taken 115 times.
void terraingen::detail::FillByTiles<terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✓ Branch 0 taken 197317 times.
✓ Branch 1 taken 246 times.
void terraingen::detail::FillByTiles<terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✓ Branch 0 taken 5372 times.
✓ Branch 1 taken 12 times.
void terraingen::detail::FillByTiles<terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✓ Branch 0 taken 90385 times.
✓ Branch 1 taken 159 times.
|
361368 |
void FillByTiles(SampleBlock& samples, unsigned threads, const FillPoints& fill) { |
| 136 |
|
361368 |
Raster<float>* grid = samples.Grid(); |
| 137 |
11/12
void terraingen::detail::FillByTiles<(anonymous namespace)::MeanUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, (anonymous namespace)::MeanUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✓ Branch 0 taken 74 times.
✓ Branch 1 taken 2 times.
void terraingen::detail::FillByTiles<(anonymous namespace)::ThreadNotingUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, (anonymous namespace)::ThreadNotingUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
void terraingen::detail::FillByTiles<terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✓ Branch 0 taken 67684 times.
✓ Branch 1 taken 115 times.
void terraingen::detail::FillByTiles<terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✓ Branch 0 taken 197317 times.
✓ Branch 1 taken 246 times.
void terraingen::detail::FillByTiles<terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✓ Branch 0 taken 5372 times.
✓ Branch 1 taken 12 times.
void terraingen::detail::FillByTiles<terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✓ Branch 0 taken 90385 times.
✓ Branch 1 taken 159 times.
|
361368 |
if (grid == nullptr) { |
| 138 |
|
360832 |
fill(samples.Points(), samples.Heights()); |
| 139 |
|
360865 |
return; |
| 140 |
|
|
} |
| 141 |
|
536 |
Raster<float>& heights = *grid; |
| 142 |
|
536 |
ForEachTile(heights.Width(), heights.Height(), kFillTileCells, threads, |
| 143 |
|
1282 |
[&](const PixelWindow& tile) { |
| 144 |
4/4
terraingen::detail::FillByTiles<terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 1 taken 224 times.
terraingen::detail::FillByTiles<terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 1 taken 279 times.
terraingen::detail::FillByTiles<terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 1 taken 18 times.
terraingen::detail::FillByTiles<terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 1 taken 225 times.
|
745 |
const std::size_t width = tile.colEnd - tile.colBegin; |
| 145 |
|
745 |
std::vector<Vec2d> centers; |
| 146 |
4/4
terraingen::detail::FillByTiles<terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 1 taken 224 times.
terraingen::detail::FillByTiles<terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 1 taken 279 times.
terraingen::detail::FillByTiles<terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 1 taken 18 times.
terraingen::detail::FillByTiles<terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 1 taken 225 times.
|
745 |
centers.reserve(width * (tile.rowEnd - tile.rowBegin)); |
| 147 |
8/8
terraingen::detail::FillByTiles<terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 0 taken 14063 times.
✓ Branch 1 taken 224 times.
terraingen::detail::FillByTiles<terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 0 taken 6687 times.
✓ Branch 1 taken 279 times.
terraingen::detail::FillByTiles<terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 0 taken 987 times.
✓ Branch 1 taken 18 times.
terraingen::detail::FillByTiles<terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 0 taken 14586 times.
✓ Branch 1 taken 225 times.
|
37069 |
for (std::size_t row = tile.rowBegin; row < tile.rowEnd; ++row) { |
| 148 |
8/8
terraingen::detail::FillByTiles<terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 0 taken 1424136 times.
✓ Branch 1 taken 14063 times.
terraingen::detail::FillByTiles<terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 0 taken 416389 times.
✓ Branch 1 taken 6687 times.
terraingen::detail::FillByTiles<terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 0 taken 84413 times.
✓ Branch 1 taken 987 times.
terraingen::detail::FillByTiles<terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 0 taken 1252684 times.
✓ Branch 1 taken 14586 times.
|
3213945 |
for (std::size_t col = tile.colBegin; col < tile.colEnd; ++col) { |
| 149 |
4/4
terraingen::detail::FillByTiles<terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 1 taken 1424136 times.
terraingen::detail::FillByTiles<terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 1 taken 416389 times.
terraingen::detail::FillByTiles<terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 1 taken 84413 times.
terraingen::detail::FillByTiles<terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 1 taken 1252684 times.
|
3177622 |
centers.push_back(heights.CellCenter(col, row)); |
| 150 |
|
|
} |
| 151 |
|
|
} |
| 152 |
4/4
terraingen::detail::FillByTiles<terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 1 taken 224 times.
terraingen::detail::FillByTiles<terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 1 taken 279 times.
terraingen::detail::FillByTiles<terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 1 taken 18 times.
terraingen::detail::FillByTiles<terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 1 taken 225 times.
|
746 |
std::vector<float> values(centers.size()); |
| 153 |
4/4
terraingen::detail::FillByTiles<terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 3 taken 224 times.
terraingen::detail::FillByTiles<terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 3 taken 279 times.
terraingen::detail::FillByTiles<terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 3 taken 18 times.
terraingen::detail::FillByTiles<terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 3 taken 225 times.
|
746 |
fill(Span<const Vec2d>(centers), Span<float>(values)); |
| 154 |
8/8
terraingen::detail::FillByTiles<terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 0 taken 14064 times.
✓ Branch 1 taken 224 times.
terraingen::detail::FillByTiles<terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 0 taken 6689 times.
✓ Branch 1 taken 279 times.
terraingen::detail::FillByTiles<terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::ShapeModelSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 0 taken 989 times.
✓ Branch 1 taken 18 times.
terraingen::detail::FillByTiles<terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::SampleBlock&, unsigned int, terraingen::SyntheticSource::FillSamples(terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&)::{lambda(terraingen::PixelWindow const&)#1}::operator()(terraingen::PixelWindow const&) const:
✓ Branch 0 taken 14586 times.
✓ Branch 1 taken 225 times.
|
37074 |
for (std::size_t row = tile.rowBegin; row < tile.rowEnd; ++row) { |
| 155 |
|
36328 |
std::copy_n(values.begin() + |
| 156 |
|
36328 |
static_cast<std::ptrdiff_t>((row - tile.rowBegin) * width), |
| 157 |
|
36328 |
width, heights.Row(row).begin() + tile.colBegin); |
| 158 |
|
|
} |
| 159 |
|
746 |
}); |
| 160 |
|
|
} |
| 161 |
|
|
|
| 162 |
|
|
/// Sets `heights`, one per point of `points`, by `expand(box, points, heights)`: once for them |
| 163 |
|
|
/// all when the box `readBox(points)` gives holds at most `perPoint` indices per point, so points |
| 164 |
|
|
/// close together read the lattice once, otherwise point by point with each point's own box. |
| 165 |
|
|
template <typename ReadBox, typename Expand> |
| 166 |
2/4
void terraingen::detail::ExpandPoints<terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::Span<terraingen::Vec2d const>)#1}, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::detail::IndexBox const&, terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::Span<terraingen::Vec2d const>)#1} const&, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::detail::IndexBox const&, terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✓ Branch 0 taken 67909 times.
✗ Branch 1 not taken.
void terraingen::detail::ExpandPoints<terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::Span<terraingen::Vec2d const>)#1}, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::detail::IndexBox const&, terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::Span<terraingen::Vec2d const>)#1} const&, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::detail::IndexBox const&, terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✓ Branch 0 taken 197592 times.
✗ Branch 1 not taken.
|
265501 |
void ExpandPoints(Span<const Vec2d> points, Span<float> heights, double perPoint, |
| 167 |
|
|
const ReadBox& readBox, const Expand& expand) { |
| 168 |
2/4
void terraingen::detail::ExpandPoints<terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::Span<terraingen::Vec2d const>)#1}, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::detail::IndexBox const&, terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::Span<terraingen::Vec2d const>)#1} const&, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::detail::IndexBox const&, terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✓ Branch 0 taken 67909 times.
✗ Branch 1 not taken.
void terraingen::detail::ExpandPoints<terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::Span<terraingen::Vec2d const>)#1}, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::detail::IndexBox const&, terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::Span<terraingen::Vec2d const>)#1} const&, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::detail::IndexBox const&, terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✓ Branch 0 taken 197592 times.
✗ Branch 1 not taken.
|
265501 |
if (points.empty()) { |
| 169 |
|
263082 |
return; |
| 170 |
|
|
} |
| 171 |
|
265499 |
const IndexBox box = readBox(points); |
| 172 |
4/4
void terraingen::detail::ExpandPoints<terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::Span<terraingen::Vec2d const>)#1}, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::detail::IndexBox const&, terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::Span<terraingen::Vec2d const>)#1} const&, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::detail::IndexBox const&, terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✓ Branch 0 taken 65497 times.
✓ Branch 1 taken 2412 times.
void terraingen::detail::ExpandPoints<terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::Span<terraingen::Vec2d const>)#1}, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::detail::IndexBox const&, terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::Span<terraingen::Vec2d const>)#1} const&, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::detail::IndexBox const&, terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✓ Branch 0 taken 197587 times.
✓ Branch 1 taken 3 times.
|
265499 |
if (box.Area() <= perPoint * static_cast<double>(points.size())) { |
| 173 |
|
263084 |
expand(box, points, heights); |
| 174 |
|
263082 |
return; |
| 175 |
|
|
} |
| 176 |
4/4
void terraingen::detail::ExpandPoints<terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::Span<terraingen::Vec2d const>)#1}, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::detail::IndexBox const&, terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::Span<terraingen::Vec2d const>)#1} const&, terraingen::DiamondSquareUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::detail::IndexBox const&, terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✓ Branch 0 taken 43196 times.
✓ Branch 1 taken 2412 times.
void terraingen::detail::ExpandPoints<terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::Span<terraingen::Vec2d const>)#1}, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::detail::IndexBox const&, terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}>(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::Span<terraingen::Vec2d const>)#1} const&, terraingen::KernelUpsampler::FillSamples(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}::operator()(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>) const::{lambda(terraingen::detail::IndexBox const&, terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&):
✓ Branch 0 taken 43 times.
✓ Branch 1 taken 5 times.
|
45656 |
for (std::size_t i = 0; i < points.size(); ++i) { |
| 177 |
|
43239 |
const Span<const Vec2d> point = points.subspan(i, 1); |
| 178 |
|
43251 |
expand(readBox(point), point, heights.subspan(i, 1)); |
| 179 |
|
|
} |
| 180 |
|
|
} |
| 181 |
|
|
|
| 182 |
|
|
/// Evaluates the samples `pick` chooses all at once: `pick(i)` gives the position to evaluate |
| 183 |
|
|
/// sample i of `count` at, or nothing to pass it by, in order; `evaluate(positions, values)` sets |
| 184 |
|
|
/// one value per position chosen, and `place(i, value)` gives sample i its value. |
| 185 |
|
|
template <typename Pick, typename Evaluate, typename Place> |
| 186 |
|
484922 |
void EvaluateChosen(std::size_t count, const Pick& pick, const Evaluate& evaluate, |
| 187 |
|
|
const Place& place) { |
| 188 |
|
484922 |
std::vector<Vec2d> chosen; |
| 189 |
|
484922 |
std::vector<std::size_t> at; |
| 190 |
12/12
void terraingen::detail::EvaluateChosen<EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#1}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#1} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 4 times.
✓ Branch 1 taken 1 time.
void terraingen::detail::EvaluateChosen<EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#2}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#2}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#2}>(unsigned long, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#2} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#2} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#2} const&):
✓ Branch 0 taken 4 times.
✓ Branch 1 taken 1 time.
void terraingen::detail::EvaluateChosen<terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long)#1}, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long)#1} const&, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 103939 times.
✓ Branch 1 taken 100658 times.
void terraingen::detail::EvaluateChosen<terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 3081182 times.
✓ Branch 1 taken 32340 times.
void terraingen::detail::EvaluateChosen<terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 44166 times.
✓ Branch 1 taken 44162 times.
void terraingen::detail::EvaluateChosen<terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 315646 times.
✓ Branch 1 taken 307765 times.
|
4029868 |
for (std::size_t i = 0; i < count; ++i) { |
| 191 |
14/14
void terraingen::detail::EvaluateChosen<EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#1}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#1} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 2 times.
✓ Branch 2 taken 2 times.
✓ Branch 3 taken 2 times.
void terraingen::detail::EvaluateChosen<terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long)#1}, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long)#1} const&, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 103939 times.
✓ Branch 3 taken 100441 times.
✓ Branch 4 taken 3498 times.
void terraingen::detail::EvaluateChosen<terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 589073 times.
✓ Branch 2 taken 2492055 times.
void terraingen::detail::EvaluateChosen<terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 26049 times.
✓ Branch 2 taken 18117 times.
void terraingen::detail::EvaluateChosen<terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 315647 times.
✓ Branch 3 taken 254535 times.
✓ Branch 4 taken 61112 times.
|
3544945 |
if (const std::optional<Vec2d> position = pick(i)) { |
| 192 |
5/5
void terraingen::detail::EvaluateChosen<EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#1}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#1} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 2 times.
void terraingen::detail::EvaluateChosen<terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long)#1}, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long)#1} const&, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 100441 times.
void terraingen::detail::EvaluateChosen<terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 589150 times.
void terraingen::detail::EvaluateChosen<terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 26049 times.
void terraingen::detail::EvaluateChosen<terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 254539 times.
|
970100 |
chosen.push_back(*position); |
| 193 |
5/5
void terraingen::detail::EvaluateChosen<EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#1}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#1} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 2 times.
void terraingen::detail::EvaluateChosen<terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long)#1}, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long)#1} const&, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 100441 times.
void terraingen::detail::EvaluateChosen<terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 589127 times.
void terraingen::detail::EvaluateChosen<terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 26049 times.
void terraingen::detail::EvaluateChosen<terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 254539 times.
|
970181 |
at.push_back(i); |
| 194 |
|
|
} |
| 195 |
|
|
} |
| 196 |
10/12
void terraingen::detail::EvaluateChosen<EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#1}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#1} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
void terraingen::detail::EvaluateChosen<EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#2}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#2}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#2}>(unsigned long, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#2} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#2} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#2} const&):
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
void terraingen::detail::EvaluateChosen<terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long)#1}, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long)#1} const&, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 3179 times.
✓ Branch 1 taken 97479 times.
void terraingen::detail::EvaluateChosen<terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 24369 times.
✓ Branch 1 taken 7971 times.
void terraingen::detail::EvaluateChosen<terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 18115 times.
✓ Branch 1 taken 26047 times.
void terraingen::detail::EvaluateChosen<terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 60670 times.
✓ Branch 1 taken 247095 times.
|
484927 |
if (chosen.empty()) { |
| 197 |
|
|
return; |
| 198 |
|
|
} |
| 199 |
5/6
void terraingen::detail::EvaluateChosen<EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#1}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#1} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 1 time.
void terraingen::detail::EvaluateChosen<EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#2}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#2}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#2}>(unsigned long, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#2} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#2} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#2} const&):
✗ Branch 1 not taken.
void terraingen::detail::EvaluateChosen<terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long)#1}, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long)#1} const&, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 97479 times.
void terraingen::detail::EvaluateChosen<terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 7971 times.
void terraingen::detail::EvaluateChosen<terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 26047 times.
void terraingen::detail::EvaluateChosen<terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 1 taken 247093 times.
|
378593 |
std::vector<float> values(chosen.size()); |
| 200 |
4/4
void terraingen::detail::EvaluateChosen<terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long)#1}, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long)#1} const&, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long, float)#1} const&):
✓ Branch 3 taken 97479 times.
void terraingen::detail::EvaluateChosen<terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 3 taken 7971 times.
void terraingen::detail::EvaluateChosen<terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 2 taken 26047 times.
void terraingen::detail::EvaluateChosen<terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 2 taken 247089 times.
|
378593 |
evaluate(Span<const Vec2d>(chosen), Span<float>(values)); |
| 201 |
10/12
void terraingen::detail::EvaluateChosen<EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#1}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#1}>(unsigned long, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#1} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 1 time.
void terraingen::detail::EvaluateChosen<EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#2}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#2}, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#2}>(unsigned long, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long)#2} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#2} const&, EvaluateChosen_EvaluatesTheChosenSamplesAtOnceAndPlacesThem_Test::TestBody()::{lambda(unsigned long, float)#2} const&):
✗ Branch 0 not taken.
✗ Branch 1 not taken.
void terraingen::detail::EvaluateChosen<terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long)#1}, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long)#1} const&, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::(anonymous namespace)::FillPointsAtPostSpacing<terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1}>(terraingen::PostLattice const&, terraingen::SampleBlock&, terraingen::Upsampler::Fill(terraingen::PostLattice const&, terraingen::SampleBlock&, double, unsigned int) const::{lambda(terraingen::SampleBlock&)#1} const&)::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 100441 times.
✓ Branch 1 taken 97479 times.
void terraingen::detail::EvaluateChosen<terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::ShapeModelSource::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 589181 times.
✓ Branch 1 taken 7971 times.
void terraingen::detail::EvaluateChosen<terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::SourceChain::FillPointGaps(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 26049 times.
✓ Branch 1 taken 26047 times.
void terraingen::detail::EvaluateChosen<terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1}, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1}, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1}>(unsigned long, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long)#1} const&, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>)#1} const&, terraingen::detail::RasterHeights::FillPoints(terraingen::Span<terraingen::Vec2d const>, terraingen::Span<float>, double) const::{lambda(unsigned long, float)#1} const&):
✓ Branch 0 taken 254532 times.
✓ Branch 1 taken 247091 times.
|
1348794 |
for (std::size_t k = 0; k < at.size(); ++k) { |
| 202 |
1/1
✓ Branch 1 taken 26049 times.
|
970205 |
place(at[k], values[k]); |
| 203 |
|
|
} |
| 204 |
|
484929 |
} |
| 205 |
|
|
|
| 206 |
|
|
/// The height `fill(samples)` gives a block of the one point (`x`, `y`). |
| 207 |
|
7538123 |
template <typename Fill> float PointHeight(double x, double y, const Fill& fill) { |
| 208 |
|
7538123 |
const Vec2d point{x, y}; |
| 209 |
|
7538123 |
float height = 0.0f; |
| 210 |
|
7538123 |
SampleBlock samples(Span<const Vec2d>(&point, 1), Span<float>(&height, 1)); |
| 211 |
|
7545267 |
fill(samples); |
| 212 |
|
7554914 |
return height; |
| 213 |
|
|
} |
| 214 |
|
|
|
| 215 |
|
|
/// The grid of the cells `cells` of an unrotated `grid` (`Subgrid`) when it places their centers |
| 216 |
|
|
/// where `grid` does to the bit, so a fill of it gives the bits a fill of `grid` gives them; |
| 217 |
|
|
/// nothing otherwise, for a rotated grid or for no cells. |
| 218 |
|
|
std::optional<RasterGrid> ExactSubgrid(const RasterGrid& grid, const PixelWindow& cells); |
| 219 |
|
|
|
| 220 |
|
|
} // namespace detail |
| 221 |
|
|
|
| 222 |
|
|
/// Gives the NaN cells of `heights`, filled from a source with no-data value `noData`, that value, |
| 223 |
|
|
/// and `heights` that no-data value, or NaN without one if any cell was missing. |
| 224 |
|
|
void MarkMissing(Raster<float>& heights, std::optional<float> noData); |
| 225 |
|
|
|
| 226 |
|
|
} // namespace terraingen |
| 227 |
|
|
|