Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
Grid_of_cubes< Traits > Struct Template Reference

#include <grid_of_cubes.h>

Detailed Description

template<class Traits>
struct ESBTL::Grid_of_cubes< Traits >

This class offers an intersection detection between atoms using a grid. The bounding box of all the atoms is subdivided using a regular grid of cubes (which edge length is twice the largest radius + epsilon). Testing intersection between two atoms then reduces to test intersection between atoms in the same cube or in a direct neighboring cube.

Template Parameters
Traitsis a class providing static function indicating how to handle stored objects (see Traits_for_grid for an example.)