载入中...
搜索中...
未找到
#include "procgen/algorithms/LinearStructure.h"#include "procgen/algorithms/MarchingCubes.h"#include <algorithm>#include <cmath>#include <string>命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::procgen |
函数 | |
| bool | eve::procgen::generateLinearStructure (const std::string &kind, const Params ¶ms, MeshBuild &out, std::string &error) |
Procedural linear, tileable structures (fences, walls, bridges, the Great Wall, hedges, cheval de frise, ...). Each recipe builds one tileable unit segment from axis-aligned boxes and oriented beams, then repeats it segments times along the X axis so units join seamlessly end-to-end. | |
| void | eve::procgen::registerLinearStructureRecipes (MeshRecipeRegistry ®istry) |
| Register all built-in linear structure mesh recipes into a registry. | |
变量说明
◆ depth
| float depth = 1.f |
在文件 LinearStructure.cpp 第 31 行定义.
◆ height
| float height = 1.f |
在文件 LinearStructure.cpp 第 30 行定义.
◆ thickness
| float thickness = 0.1f |
在文件 LinearStructure.cpp 第 32 行定义.
◆ x
| float x = 0.f |
在文件 LinearStructure.cpp 第 12 行定义.
◆ y
| float y = 0.f |
在文件 LinearStructure.cpp 第 12 行定义.
◆ z
| float z = 0.f |
在文件 LinearStructure.cpp 第 12 行定义.