Interface UniformGrid3d<V>

Type Parameters:
V - the type of elements to be stored in the grid
All Superinterfaces:
UniformGrid<javax.vecmath.Tuple3d,V>
All Known Implementing Classes:
UniformGrid3dImpl

public interface UniformGrid3d<V> extends UniformGrid<javax.vecmath.Tuple3d,V>
Infinite uniform 3D grid with the given cell size.
  • Method Details

    • create

      static <V> UniformGrid3d<V> create(double cellSize)
      Creates new 3D grid.
      Parameters:
      cellSize - Cell size. Must be bigger that one.
      Returns:
      new 3D grid
    • create

      static <V> UniformGrid3d<V> create(double cellSize, Collection<V> objects, Function<? super V,javax.vecmath.Tuple3d> mapFunc)
      Creates new 3D grid. As the mapping function, use (MeshPoint mp) -> mp.getPosition() or (Point3d p) -> p, for instance.
      Parameters:
      cellSize - Cell size. Must be bigger that one.
      objects - Objects to be stored
      mapFunc - A function that computes a 3D space location from an object
      Returns:
      new 3D grid