载入中...
搜索中...
未找到
TerrainMeshStamp.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Result.h"
4
5#include <cstdint>
6#include <vector>
7
8namespace eve::procgen {
9class MeshBuild;
10class Heightmap;
11
21public:
29 [[nodiscard]] Result<int> setSource(const MeshBuild& mesh);
30
48 [[nodiscard]] Result<int> bake(Heightmap& heights, Heightmap& coverage, double minX, double minZ, double width,
49 double depth, double feather) const;
50
51private:
52 std::vector<float> positions_;
53 std::vector<std::uint32_t> indices_;
54};
55} // namespace eve::procgen
#define EVENGINE_API_DOMAINS
Definition Export.h:110
std::uint32_t width
std::string coverage
OceanMeshSettings mesh
Move-only, checked operation results for the common layer.
std::uint32_t depth
Move-only operation result carrying either a value or Status.
Definition Result.h:176
In-memory terrain heightmap: a dense float grid (row-major, index = y * width + x) materialized from ...
Definition Heightmap.h:21
CPU triangle mesh from procedural mesh recipes (e.g. marching cubes). Positions/normals are xyz-packe...
Definition MeshBuild.h:20
Owning CPU mesh-to-heightfield builder; topmost Y wins regardless of winding. @ownership Owns copied ...