14 for i
in range(0, 100):
16 ei = g.get_extended_index(p)
17 if g.get_has_index(ei):
20 g.add_voxel(ei, count)
27 if g.get_has_index(i):
33 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.