7 from __future__
import print_function
15 for i
in range(0, 100):
17 ei = g.get_extended_index(p)
18 if g.get_has_index(ei):
21 g.add_voxel(ei, count)
28 if g.get_has_index(i):
34 print(
"There are", len(g.get_all_indexes()),
"distinct values", count, in_count)
Grid3D< int, SparseGridStorage3D< int, UnboundedGridStorage3D > > SparseUnboundedIntGrid3D
BoundingBoxD< 3 > get_bounding_box(const Geometry &)
Compute the bounding box of any geometric object.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
double get_distance(const VectorD< D > &v1, const VectorD< D > &v2)
Compute the distance between two vectors.
VectorD< D > get_random_vector_on(const SphereD< D > &s)
Generate a random vector on a sphere with uniform density.