Interface VoxelPartitionFactory<T>
- Type Parameters:
T- the type of parts stored in the voxel partition
- All Known Implementing Classes:
VoxelPartitonFactoryHistogram
public interface VoxelPartitionFactory<T>
A factory for creating
VoxelPartition instances.-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an unused part to the factory.create(int numSlices) Creates a newVoxelPartitionwith the specified number of slices.
-
Method Details
-
create
Creates a newVoxelPartitionwith the specified number of slices.- Parameters:
numSlices- the number of slices in the voxel partition- Returns:
- a new
VoxelPartitioninstance
-
addUnused
Adds an unused part to the factory.This method is typically used to recycle parts that are no longer needed, allowing them to be reused in future voxel partitions.
- Parameters:
part- the unused part to add
-