Contents

voxels(within:)

Returns a data object containing all voxels within the specified volume.

Declaration

func voxels(within extent: MDLVoxelIndexExtent) -> Data?

Parameters

  • extent:

    The minimum and maximum corners of the volume for which to retrieve voxel data.

Return Value

A data object containing MDLVoxelIndex values.

Discussion

The returned NSData object contains an array of MDLVoxelIndex values describing the locations of voxels within the specified volume as well as their volumetric relationship to the object modeled by the voxel array.

See Also

Examining Voxels