12 int main(
int argc,
char** argv) {
20 cout << endl <<
"center key:" << endl;
21 cout <<
"[" << start_key.
k[0] <<
"," << start_key.
k[1] <<
"," << start_key.
k[2] <<
"]" << endl;
23 cout << endl <<
"face neighbor keys:" << endl;
26 cout <<
"N -> [" << neighbor_key.
k[0] <<
"," << neighbor_key.
k[1] <<
"," << neighbor_key.
k[2] <<
"]" << endl;
29 cout <<
"S -> [" << neighbor_key.
k[0] <<
"," << neighbor_key.
k[1] <<
"," << neighbor_key.
k[2] <<
"]" << endl;
32 cout <<
"W -> [" << neighbor_key.
k[0] <<
"," << neighbor_key.
k[1] <<
"," << neighbor_key.
k[2] <<
"]" << endl;
35 cout <<
"E -> [" << neighbor_key.
k[0] <<
"," << neighbor_key.
k[1] <<
"," << neighbor_key.
k[2] <<
"]" << endl;
38 cout <<
"T -> [" << neighbor_key.
k[0] <<
"," << neighbor_key.
k[1] <<
"," << neighbor_key.
k[2] <<
"]" << endl;
41 cout <<
"B -> [" << neighbor_key.
k[0] <<
"," << neighbor_key.
k[1] <<
"," << neighbor_key.
k[2] <<
"]" << endl;
43 cout << endl <<
"some edge neighbor keys:" << endl;
46 cout <<
"SE -> [" << neighbor_key.
k[0] <<
"," << neighbor_key.
k[1] <<
"," << neighbor_key.
k[2] <<
"]" << endl;
49 cout <<
"SW -> [" << neighbor_key.
k[0] <<
"," << neighbor_key.
k[1] <<
"," << neighbor_key.
k[2] <<
"]" << endl;
52 cout <<
"BS -> [" << neighbor_key.
k[0] <<
"," << neighbor_key.
k[1] <<
"," << neighbor_key.
k[2] <<
"]" << endl;
54 cout << endl <<
"some vertex neighbor keys:" << endl;
57 cout <<
"TNW -> [" << neighbor_key.
k[0] <<
"," << neighbor_key.
k[1] <<
"," << neighbor_key.
k[2] <<
"]" << endl;
60 cout <<
"BNW -> [" << neighbor_key.
k[0] <<
"," << neighbor_key.
k[1] <<
"," << neighbor_key.
k[2] <<
"]" << endl;
63 cout <<
"BSE -> [" << neighbor_key.
k[0] <<
"," << neighbor_key.
k[1] <<
"," << neighbor_key.
k[2] <<
"]" << endl;
bool genNeighborKey(const OcTreeKey &node_key, const signed char &dir, OcTreeKey &neighbor_key) const
int main(int argc, char **argv)