Instance Method

voxelsWithinExtent:

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

Declaration

- (NSData *)voxelsWithinExtent:(MDLVoxelIndexExtent)extent;

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

count

The number of voxels in the array.

voxelIndexExtent

The indexes that define the corners of the three-dimensional voxel grid.

- voxelExistsAtIndex:allowAnyX:allowAnyY:allowAnyZ:allowAnyShell:

Returns a Boolean value indicating whether the voxel array contains voxel data for the specified index.

- voxelIndices

Returns a data object containing all voxels within the voxel array.