43 max_depth(_max_depth) {
526 unsigned int retval = 0;
527 if (key.
k[0] & (1 << i)) retval += 1;
528 if (key.
k[1] & (1 << i)) retval += 2;
529 if (key.
k[2] & (1 << i)) retval += 4;
540 key.
k[0] &= ~(1 << i);
541 key.
k[1] &= ~(1 << i);
542 key.
k[2] &= ~(1 << i);
545 key.
k[0] |= (1 << i);
546 key.
k[1] &= ~(1 << i);
547 key.
k[2] &= ~(1 << i);
550 key.
k[0] &= ~(1 << i);
551 key.
k[1] |= (1 << i);
552 key.
k[2] &= ~(1 << i);
555 key.
k[0] |= (1 << i);
556 key.
k[1] |= (1 << i);
557 key.
k[2] &= ~(1 << i);
560 key.
k[0] &= ~(1 << i);
561 key.
k[1] &= ~(1 << i);
562 key.
k[2] |= (1 << i);
565 key.
k[0] |= (1 << i);
566 key.
k[1] &= ~(1 << i);
567 key.
k[2] |= (1 << i);
570 key.
k[0] &= ~(1 << i);
571 key.
k[1] |= (1 << i);
572 key.
k[2] |= (1 << i);
575 key.
k[0] |= (1 << i);
576 key.
k[1] |= (1 << i);
577 key.
k[2] |= (1 << i);
586 neighbor_key.
k[0] = node_key.
k[0];
587 neighbor_key.
k[1] = node_key.
k[1];
588 neighbor_key.
k[2] = node_key.
k[2];
590 unsigned int depth = 0;
591 signed char curDir = dir;
595 pos =
static_cast<signed char>(
genPos(neighbor_key, depth));
bool genNeighborKey(const OcTreeKey &node_key, const signed char &dir, OcTreeKey &neighbor_key) const
OcTreeLUT(unsigned int _max_depth)
signed char nf_multiple_values[26][4]
void changeKey(const int &val, OcTreeKey &key, const unsigned short int &i) const
unsigned int genPos(const OcTreeKey &key, const int &i) const
signed char nf_values[8][26]
signed char nf_rec_values[8][26]