|
| 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 ¶ms, 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 ¶ms, MeshBuild &out, std::string &error) |
| | Build mesh from Params (field + resolution + isolevel).
|
| |
| bool | eve::procgen::generateHexPlanetMesh (const Params ¶ms, 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)).
|
| |