Template Function gamer::marchingCubes¶
Defined in File MarchingCube.h
Function Documentation¶
-
template<typename
NumType
, typename = std::enable_if_t<std::is_arithmetic<NumType>::value>, classInserter
>
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 numericalInserter
: Typename of the inserter