Class IterateVoxelsRemaining
Object
IterateVoxelsRemaining
Utilities for iterating over remaining voxels in one or more
VoxelBuffers.
A processor is called on each remaining voxel.
- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S,T> void withTwoBuffersWithoutOffset(VoxelBuffer<S> voxelBuffer1, VoxelBuffer<T> voxelBuffer2, ProcessBufferBinaryWithoutOffset<S, T> process) Iterate over remaining voxels each voxel - with two associated buffers for each slice.
-
Method Details
-
withTwoBuffersWithoutOffset
public static <S,T> void withTwoBuffersWithoutOffset(VoxelBuffer<S> voxelBuffer1, VoxelBuffer<T> voxelBuffer2, ProcessBufferBinaryWithoutOffset<S, T> process) Iterate over remaining voxels each voxel - with two associated buffers for each slice.Precondition: that both buffer's current position are jointly set to a position, with an identical number of remaining voxels, otherwise an exception is thrown e.g. two identically sized buffers with offset=0.
- Type Parameters:
S- buffer-type forvoxels1T- buffer-type forvoxels2- Parameters:
voxelBuffer1- first voxel-buffervoxelBuffer2- second voxel-bufferprocess- is called for each voxel in the buffer
-