Instance Method

voxelIndices

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

Declaration

- (NSData *)voxelIndices;

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 voxel array as well as their volumetric relationship to the object modeled by the voxel array.

Calling this method is equivalent to calling the voxelsWithinExtent: method with the value of the voxelIndexExtent property.

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.

- voxelsWithinExtent:

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software