Instance Method


Reduces the voxel array to cover only the volume within both it and another voxel array.


- (void)intersectWithVoxels:(MDLVoxelArray *)voxels;



The voxel array to intersect with this voxel array.


After an intersection operation, the voxel array contains only those voxels that were present in both the original array and the specified array. That is, an intersection operation creates a voxel array representing only the space where two volumes overlap.

Performing a union, intersection, or difference operation clears out shell level information from all voxels in the array. (That is, the w component of every MDLVoxelIndex value in the voxel array is reset to 0.)

See Also

Performing Constructive Solid Geometry Operations

- unionWithVoxels:

Extends the voxel array to also cover the volume of the specified voxel array.

- differenceWithVoxels:

Reduces the voxel array to cover only the portion of its volume not covered by another voxel array.