Module isosurface::marching_cubes [] [src]

Convert isosurfaces to meshes using marching cubes.

Pros:

  • Pretty fast.
  • Extraction has no dependencies on neighbouring chunks.

Cons:

  • Produces a lot of small triangle slivers
  • Can't accurately reproduce sharp corners in the isosurface.
  • Cracks between chunks of differing levels of detail

Structs

MarchingCubes

Extracts meshes from distance fields using the marching cubes algorithm.