14 int main(
int,
char * []) {
25 IMP_FOREACH(Grid::Index i, grid.get_all_indexes()) {
31 std::cout <<
"Smooth" << std::endl;
32 for (
double x = .5; x < 4; x += .1) {
35 std::cout << vo <<
" ";
37 std::cout << std::endl;
39 std::cout <<
"Chunky" << std::endl;
40 for (
double x = .5; x < 4; x += .1) {
42 std::cout << vo <<
" ";
44 std::cout << std::endl;
A voxel grid in d-dimensional space space.
double get_distance(const Plane3D &pln, const Vector3D &p)
Return the distance between a plane and a point in 3D.
Functions to generate vectors.
Value get_linearly_interpolated(const GridD< D, Storage, Value, Embedding > &g, const VectorD< D > &pt)
All grids that are in the Python API should be defined here.
A class to represent a voxel grid.