Program Listing for File FastReconstructionTables.hpp
↰ Return to documentation for file (include/lvr2/reconstruction/FastReconstructionTables.hpp)
/*
* MCReconstructionTables.hpp
*
* Created on: 02.03.2011
* Author: Thomas Wiemann
*/
#ifndef MCRECONSTRUCTIONTABLES_HPP_
#define MCRECONSTRUCTIONTABLES_HPP_
namespace lvr2
{
const static int shared_vertex_table[8][28] = {
{-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},
{ 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},
{ 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},
{ 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},
{ 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},
{ 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},
{ 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},
{ 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}
};
const static int box_creation_table[8][3] = {
{-1, -1, -1},
{ 1, -1, -1},
{ 1, 1, -1},
{-1, 1, -1},
{-1, -1, 1},
{ 1, -1, 1},
{ 1, 1, 1},
{-1, 1, 1}
};
const static int box_neighbour_table[8][3] = {
{ 1, 3, 4},
{ 0, 2, 5},
{ 3, 1, 6},
{ 2, 0, 7},
{ 5, 7, 0},
{ 4, 6, 1},
{ 7, 5, 2},
{ 6, 4, 3}
};
const static int TSDFCreateTable[8][3] = {
{ 0, 0, 0},
{ 1, 0, 0},
{ 1, 1, 0},
{ 0, 1, 0},
{ 0, 0, 1},
{ 1, 0, 1},
{ 1, 1, 1},
{ 0, 1, 1}
};
const static int HGCreateTable[8][3] = {
{ 0, 0, 0},
{-1, 0, 0},
{-1, 0, -1},
{ 0, 0, -1},
{ 0, -1, 0},
{-1, -1, 0},
{-1, -1, -1},
{ 0, -1, -1}
};
} // namespace lvr2
#endif /* MCRECONSTRUCTIONTABLES_HPP_ */