Instance Property

voxelIndexExtent

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

Declaration

@property(nonatomic, readonly) MDLVoxelIndexExtent voxelIndexExtent;

Discussion

This property determines which MDLVoxelIndex values are valid for referring to the contents of the voxel array using methods such as setVoxelAtIndex: or voxelBoundingBoxAtIndex:. For example, if the minimum extent is {0, 0, 0, 0} and the maximum extent is {10, 10, 10, 0}, the voxel index {5, 5, 5, 0} lies within the array but the voxel index {0, 20, 10, 0} does not.

See Also

Examining Voxels

count

The number of voxels in the array.

- voxelExistsAtIndex:allowAnyX:allowAnyY:allowAnyZ:allowAnyShell:

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

- voxelsWithinExtent:

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

- voxelIndices

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