17for i
in range(0, 100):
19 ei = g.get_extended_index(p)
20 if g.get_has_index(ei):
23 g.add_voxel(ei, count)
30 if g.get_has_index(i):
36print(
"There are", len(g.get_all_indexes()),
"distinct values",
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
VectorD< D > get_random_vector_on(const BoundingBoxD< D > &bb)
Generate a random vector on a box with uniform density.
BoundingBoxD< D > get_bounding_box(const GridD< D, Storage, Value, Embedding > &g)
Grid3D< int, SparseGridStorage3D< int, UnboundedGridStorage3D > > SparseUnboundedIntGrid3D
double get_distance(const Line3D &s, const Vector3D &p)
Get closest distance between a line and a point.
void setup_from_argv(int argc, char **argv, std::string description)
Parse the command line flags and return the positional arguments.