载入中...
搜索中...
未找到
MarchingCubes.cpp 文件参考

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::procgen
 

函数

bool eve::procgen::generateHexPlanetMesh (const Params &params, MeshBuild &out, std::string &error)
 Build the dual of a subdivided icosahedron. The result is a closed planet made of hexagonal cells plus the twelve pentagons required by spherical topology. Params: radius (1), subdivisions (2), tileInset (0.06, in [0, 0.5)).
 
bool eve::procgen::marchingCubes (const float *density, int nx, int ny, int nz, float isolevel, MeshBuild &out, std::string *error=nullptr)
 Classic Marching Cubes (Lorensen & Cline) over a regular scalar volume. Density >= isolevel is treated as solid; normals point toward empty space.
 
bool eve::procgen::fillDensityField (const Params &params, std::vector< float > &density, int &nx, int &ny, int &nz, std::string &error)
 Fill a density volume from a named field recipe (sphere / noise / terrain / torus).
 
bool eve::procgen::generateMarchingCubesMesh (const Params &params, MeshBuild &out, std::string &error)
 Build mesh from Params (field + resolution + isolevel).
 

变量说明

◆ a

uint32_t a

在文件 MarchingCubes.cpp 第 130 行定义.

被这些函数引用 eve::procgen::marchingCubes().

◆ b

uint32_t b

在文件 MarchingCubes.cpp 第 130 行定义.

被这些函数引用 eve::procgen::marchingCubes().

◆ c

uint32_t c

在文件 MarchingCubes.cpp 第 130 行定义.

◆ x

float x = 0.f

在文件 MarchingCubes.cpp 第 114 行定义.

被这些函数引用 eve::procgen::fillDensityField() , 以及 eve::procgen::marchingCubes().

◆ y

float y = 0.f

在文件 MarchingCubes.cpp 第 114 行定义.

被这些函数引用 eve::procgen::fillDensityField() , 以及 eve::procgen::marchingCubes().

◆ z

float z = 0.f

在文件 MarchingCubes.cpp 第 114 行定义.

被这些函数引用 eve::procgen::fillDensityField() , 以及 eve::procgen::marchingCubes().