3dpcp/.svn/pristine/8d/8dd451c354c59d46301a1b7d901353cd3ecbe93d.svn-base
2012-09-16 14:33:11 +02:00

38 lines
657 B
Text

#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