PointsetGrid.hpp
Go to the documentation of this file.
1 
28 /*
29  * PointsetGrid.hpp
30  *
31  * Created on: Nov 27, 2014
32  * Author: twiemann
33  */
34 
35 #ifndef _LVR2_RECONSTRUCTION_POINTSETGRID_H_
36 #define _LVR2_RECONSTRUCTION_POINTSETGRID_H_
37 
38 #include "HashGrid.hpp"
39 
40 #include "PointsetSurface.hpp"
42 
43 namespace lvr2
44 {
45 
46 template<typename BaseVecT, typename BoxT>
47 class PointsetGrid: public HashGrid<BaseVecT, BoxT>
48 {
49 public:
51  float cellSize,
54  bool isVoxelsize = true,
55  bool extrude = true
56  );
57 
58  virtual ~PointsetGrid() {}
59 
60  void calcDistanceValues();
61 
62 private:
63 
67  inline int calcIndex(float f)
68  {
69  return f < 0 ? f - .5 : f + .5;
70  }
71 
73 };
74 
75 } // namespace lvr2
76 
77 #include "lvr2/reconstruction/PointsetGrid.tcc"
78 
79 
80 #endif // _LVR2_RECONSTRUCTION_POINTSETGRID_H_
PointsetSurfacePtr< BaseVecT > m_surface
int calcIndex(float f)
Rounds the given value to the neares integer value.
A dynamic bounding box class.
Definition: BoundingBox.hpp:49
PointsetGrid(float cellSize, PointsetSurfacePtr< BaseVecT > surface, BoundingBox< BaseVecT > bb, bool isVoxelsize=true, bool extrude=true)
std::shared_ptr< PointsetSurface< BaseVecT > > PointsetSurfacePtr
virtual ~PointsetGrid()


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:08