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)
22 print "There are", len(g.get_all_indexes()),
"distinct values", count
Grid3D< int, SparseGridStorage3D< int, UnboundedGridStorage3D > > SparseUnboundedIntGrid3D
See IMP.algebra for more information.
VectorD< D > get_random_vector_on(const SphereD< D > &s)
Generate a random vector on a sphere with uniform density.