载入中...
搜索中...
未找到
LinearStructure.cpp 文件参考
#include "procgen/algorithms/LinearStructure.h"
#include "procgen/algorithms/MarchingCubes.h"
#include <algorithm>
#include <cmath>
#include <string>

浏览源代码.

命名空间

namespace  eve
 
namespace  eve::procgen
 

函数

bool eve::procgen::generateLinearStructure (const std::string &kind, const Params &params, 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 &registry)
 Register all built-in linear structure mesh recipes into a registry.
 

变量说明

◆ depth

◆ height

float height = 1.f

在文件 LinearStructure.cpp30 行定义.

◆ thickness

◆ x

float x = 0.f

在文件 LinearStructure.cpp12 行定义.

◆ y

float y = 0.f

在文件 LinearStructure.cpp12 行定义.

◆ z

float z = 0.f

在文件 LinearStructure.cpp12 行定义.