35 #ifndef _LVR2_RECONSTRUCTION_FASTBOX_H_ 36 #define _LVR2_RECONSTRUCTION_FASTBOX_H_ 49 using std::numeric_limits;
54 template<
typename BoxT>
64 template<
typename BaseVecT>
88 void setVertex(
int index,
uint value);
106 uint getVertex(
int index);
125 virtual void getSurface(
131 virtual void getSurface(
136 vector<unsigned int>& duplicates,
137 float comparePrecision
162 if(fabs(num1 - num2) < std::numeric_limits<double>::epsilon())
181 void getIntersections(BaseVecT* corners,
float* distance, BaseVecT* positions);
208 float calcIntersection(
float x1,
float x2,
float d1,
float d2);
223 #include "lvr2/reconstruction/FastBox.tcc" FastBox< BaseVecT > BoxType
BaseVecT m_center
The box center.
static uint INVALID_INDEX
An index value that is used to reference vertices that are not in the grid.
Semantically equivalent to boost::optional<VertexHandle>
Interface for triangle-meshes with adjacency information.
A dynamic bounding box class.
static float m_voxelsize
The voxelsize of the reconstruction grid.
A query Vector for marching cubes reconstructions. It represents a Vector in space together with a 'd...
bool compareFloat(double num1, double num2)
virtual ~FastBox()
Destructor.NormalT.
A volume representation used by the standard Marching Cubes implementation.