Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Export a polygon mesh of the zero-crossing dense surfaces from the reconstruction volume.
Syntax
public Mesh CalculateMesh (
int voxelStep
)
Parameters
voxelStep
Type: Int32The 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. voxelStep must be greater than 0 and smaller than the smallest volume axis voxel resolution. To mesh the volume at its full resolution, use a step value of 1.
Note: Any value higher than 1 for this parameter runs the risk of missing zero crossings, and hence missing surfaces or surface details.
Return Value
Type: Mesh
Returns the mesh object created by Kinect Fusion.
This method raises the following exceptions:
Exception | Raised By |
ArgumentException | Thrown when the voxelStep parameter is less than 1 or greater than the maximum unsigned int value or the smallest volume axis resolution. |
OutOfMemoryException | Thrown if the CPU memory required for mesh calculation could not be allocated. |
InvalidOperationException | Thrown when the Kinect Runtime could not be accessed, the device is not connected, a GPU memory allocation failed or the call failed for an unknown reason. |
Requirements
Namespace: Microsoft.Kinect.Toolkit.Fusion
Assembly: Microsoft.Kinect.Toolkit.Fusion (in microsoft.kinect.toolkit.fusion.dll)
See Also
Reference
Reconstruction Class
Reconstruction Members
Microsoft.Kinect.Toolkit.Fusion Namespace