FastReconstructionTables.hpp
Go to the documentation of this file.
1 
28  /*
29  * MCReconstructionTables.hpp
30  *
31  * Created on: 02.03.2011
32  * Author: Thomas Wiemann
33  */
34 
35 #ifndef MCRECONSTRUCTIONTABLES_HPP_
36 #define MCRECONSTRUCTIONTABLES_HPP_
37 
38 namespace lvr2
39 {
40 
70 const static int shared_vertex_table[8][28] = {
71  {-1, 0, 0, 1, -1, -1, 0, 2, 0, -1, 0, 3, -1, 0, -1, 5, -1, -1, -1, 6, 0, -1, -1, 7, 0, 0, -1, 4},
72  { 1, 0, 0, 0, 1, -1, 0, 3, 0, -1, 0, 2, 0, 0, -1, 5, 1, 0, -1, 4, 1, -1, -1, 7, 0, -1, -1, 6},
73  { 1, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 3, 1, 1, -1, 4, 0, 1, -1, 5, 0, 0, -1, 6, 1, 0, -1, 7},
74  { 0, 1, 0, 0, -1, 1, 0, 1, -1, 0, 0, 2, 0, 1, -1, 4, -1, 1, -1, 5, -1, 0, -1, 6, 0, 0, -1, 7},
75  { 0, 0, 1, 0, -1, 0, 1, 1, -1, -1, 1, 2, 0, -1, 1, 3, -1, 0, 0, 5, -1, -1, 0, 6, 0, -1, 0, 7},
76  { 1, 0, 1, 0, 0, 0, 1, 1, 0, -1, 1, 2, 1, -1, 1, 3, 1, 0, 0, 4, 0, -1, 0, 6, 1, -1, 0, 7},
77  { 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 2, 1, 0, 1, 3, 1, 1, 0, 4, 0, 1, 0, 5, 1, 0, 0, 7},
78  { 0, 1, 1, 0, -1, 1, 1, 1, -1, 0, 1, 2, 0, 0, 1, 3, 0, 1, 0, 4, -1, 1, 0, 5, -1, 0, 0, 6}
79 };
80 
81 
86 const static int box_creation_table[8][3] = {
87  {-1, -1, -1},
88  { 1, -1, -1},
89  { 1, 1, -1},
90  {-1, 1, -1},
91  {-1, -1, 1},
92  { 1, -1, 1},
93  { 1, 1, 1},
94  {-1, 1, 1}
95 };
96 
97 const static int box_neighbour_table[8][3] = {
98  { 1, 3, 4},
99  { 0, 2, 5},
100  { 3, 1, 6},
101  { 2, 0, 7},
102  { 5, 7, 0},
103  { 4, 6, 1},
104  { 7, 5, 2},
105  { 6, 4, 3}
106 };
107 
113 const static int TSDFCreateTable[8][3] = {
114  { 0, 0, 0},
115  { 1, 0, 0},
116  { 1, 1, 0},
117  { 0, 1, 0},
118  { 0, 0, 1},
119  { 1, 0, 1},
120  { 1, 1, 1},
121  { 0, 1, 1}
122 };
123 
124 const static int HGCreateTable[8][3] = {
125  { 0, 0, 0},
126  {-1, 0, 0},
127  {-1, 0, -1},
128  { 0, 0, -1},
129  { 0, -1, 0},
130  {-1, -1, 0},
131  {-1, -1, -1},
132  { 0, -1, -1}
133 
134 };
135 
136 } // namespace lvr2
137 
138 #endif /* MCRECONSTRUCTIONTABLES_HPP_ */
static const int box_creation_table[8][3]
This table states where each coordinate of a box vertex is relative to the box center.
static const int HGCreateTable[8][3]
static const int TSDFCreateTable[8][3]
This tables stors adjacency information for the grid creation algorithm.
static const int shared_vertex_table[8][28]
A table coding the relations between shared vertices of adjacent positions in the grid created during...
static const int box_neighbour_table[8][3]


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:06