Template Function gamer::marchingCubes

Function Documentation

template<typename NumType, typename = std::enable_if_t<std::is_arithmetic<NumType>::value>, class Inserter>
std::unique_ptr<SurfaceMesh> gamer::marchingCubes(NumType *dataset, NumType maxval, const Vector3i &dim, const Vector3f &span, NumType isovalue, Inserter holelist)

Marching cubes algorithm.

Return

Surface mesh

Parameters
  • dataset: Voxel array to mesh

  • [in] maxval: Maximum value in the dataset

  • [in] dim: Dimension of the dataset

  • [in] span: Real space size of a voxel

  • [in] isovalue: Isovalue to contour at

  • [in] holelist: Inserter to append holes

Template Parameters
  • NumType: Numerical typename

  • <unnamed>: Check to ensure NumType is numerical

  • Inserter: Typename of the inserter