Returns a data object containing all voxels within the voxel array.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- Model I/O
Declaration
- (NSData *)voxelIndices;
Return Value
A data object containing MDLVoxel
values.
Discussion
The returned NSData
object contains an array of MDLVoxel
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 voxels
method with the value of the voxel
property.