#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 行定义.
被这些函数引用 eve::decal::bakeProceduralDecal(), eve::physics::BuoyancyGeometry::circle2D(), eve::archspace::Document::createWall(), eve::physics::exposeForceBindings(), eve::physics::FractureRecipe::fromValue(), eve::procgen::generateCableChainRope(), eve::editor::ArchSpaceWallDrawTool::inspect(), eve::archspace_editing::ArchSpaceDocumentTarget::makeCreateWall(), eve::physics::BuoyancyGeometry::rectangle2D(), eve::procgen::registerLinearStructureRecipes(), eve::procgen::ArrowGenerator::setBevel(), eve::physics::LayeredClothGPU::setContact(), eve::graphics::AmbientOcclusion::setThickness(), eve::graphics::ContactShadow::setThickness(), eve::graphics::GlobalIllumination::setThickness(), eve::spritestack::SpriteStack2D::setThickness(), eve::editor::ArchSpaceWallDrawTool::setWallThickness(), eve::spritestack::SpriteStack::sliceModel() , 以及 eve::spritestack::SpriteStack::slicePrimitive().
◆ x
| float x = 0.f |
在文件 LinearStructure.cpp 第 12 行定义.
◆ y
| float y = 0.f |
在文件 LinearStructure.cpp 第 12 行定义.
◆ z
| float z = 0.f |
在文件 LinearStructure.cpp 第 12 行定义.