3dpcp/.svn/pristine/8d/8dd451c354c59d46301a1b7d901353cd3ecbe93d.svn-base

39 lines
657 B
Text
Raw Normal View History

2012-09-16 12:33:11 +00:00
#ifndef __NNPARAMS_H__
#define __NNPARAMS_H__
struct NNParams {
/**
* pointer to the closest point. size = 4 bytes of 32 bit machines
*/
void *closest;
/**
* distance to the closest point. size = 8 bytes
*/
double closest_d2;
// distance to the closest point in voxels
int closest_v;
// location of the query point in voxel coordinates
int x;
int y;
int z;
/**
* pointer to the point, size = 4 bytes of 32 bit machines
*/
double *p;
/**
* expand to 128 bytes to avoid false-sharing, 16 bytes from above + 28*4 bytes = 128 bytes
*/
// int padding[24];
int count;
int max_count;
};
#endif