public class VoxelsConverterMulti extends Object
Constructor and Description |
---|
VoxelsConverterMulti() |
Modifier and Type | Method and Description |
---|---|
<S,T> Voxels<S> |
convert(VoxelsUntyped voxels,
VoxelsFactoryTypeBound<T> outputVoxelsFactory)
Converts a
Voxels to another type. |
public <S,T> Voxels<S> convert(VoxelsUntyped voxels, VoxelsFactoryTypeBound<T> outputVoxelsFactory)
Voxels
to another type.
If outputVoxelType
matches the existing data-type, the existing voxels
is
returned uncchanged.
Otherwise a new Voxels
of identical size is created for the new type.
S
- voxel data type to convert from.T
- voxel data type to convert to.voxels
- the voxels to convert.outputVoxelsFactory
- a factory for creating the data-type to convert to.Voxels
to match outputVoxelsFactory
, either reused (if already
identical, or newly-created).Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.