INuiFusionReconstruction::CalculateMesh Method

Exports a polygon mesh of the zero-crossing dense surfaces from the reconstruction volume with per-vertex color.

Syntax

public:
HRESULT CalculateMesh(
         UINT voxelStep,
         INuiFusionMesh **ppMesh
)

Parameters

  • voxelStep
    Type: UINT
    The step value in voxels for sampling points to use in the volume when exporting a mesh, which determines the final resolution of the mesh. Use higher values for lower resolution meshes. This value must be greater than zero and smaller than the smallest volume axis voxel resolution. To mesh the volume at its full resolution, use a step value of one.

    Note

    Any value higher than one for this parameter runs the risk of missing zero crossings, and hence missing surfaces or surface details.

  • ppMesh
    Type: INuiFusionMesh
    The created mesh object.

Return value

Type: HRESULT
S_OK if successful; otherwise, returns a failure code.

Requirements

Header: nuikinectfusionvolume.h

Library: TBD