public class IterateVoxelsRemaining extends Object
VoxelBuffer
s.
A processor is called on each remaining voxel.
Modifier and Type | Method and Description |
---|---|
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.
|
public static <S,T> void withTwoBuffersWithoutOffset(VoxelBuffer<S> voxelBuffer1, VoxelBuffer<T> voxelBuffer2, ProcessBufferBinaryWithoutOffset<S,T> process)
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.
S
- buffer-type for voxels1
T
- buffer-type for voxels2
voxelBuffer1
- first voxel-buffervoxelBuffer2
- second voxel-bufferprocess
- is called for each voxel in the bufferCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.