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 Type
    Method
    Description
    void
    addUnused(T part)
    Adds an unused part to the factory.
    create(int numSlices)
    Creates a new VoxelPartition with the specified number of slices.
  • Method Details

    • create

      VoxelPartition<T> create(int numSlices)
      Creates a new VoxelPartition with the specified number of slices.
      Parameters:
      numSlices - the number of slices in the voxel partition
      Returns:
      a new VoxelPartition instance
    • addUnused

      void addUnused(T part)
      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