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 SpherePatch3D &g)
See IMP.algebra for more information.
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.