Module splashsurf_lib::marching_cubes
source · Expand description
Triangulation of DensityMap
s using marching cubes
Modules
- Classic marching cubes cases. There are 256 possible combinations of the above/below iso-surface states for the 8 vertices of a cube. The following lookup table maps each combination to the corresponding triangulation.
Enums
- Error enum for the marching cubes functions
- Error enum for the marching cubes triangulation stage
Functions
- Checks the consistency of the mesh (currently checks for holes, non-manifold edges and vertices) and returns a string with debug information in case of problems
- Performs a marching cubes triangulation of a density map on the given background grid
- Performs a marching cubes triangulation of a density map on the given background grid, appends triangles to the given mesh