include
lvr2
reconstruction
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
"
41
#include "
lvr2/geometry/BoundingBox.hpp
"
42
43
namespace
lvr2
44
{
45
46
template
<
typename
BaseVecT,
typename
BoxT>
47
class
PointsetGrid
:
public
HashGrid
<BaseVecT, BoxT>
48
{
49
public
:
50
PointsetGrid
(
51
float
cellSize,
52
PointsetSurfacePtr<BaseVecT>
surface,
53
BoundingBox<BaseVecT>
bb,
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
72
PointsetSurfacePtr<BaseVecT>
m_surface
;
73
};
74
75
}
// namespace lvr2
76
77
#include "lvr2/reconstruction/PointsetGrid.tcc"
78
79
80
#endif // _LVR2_RECONSTRUCTION_POINTSETGRID_H_
PointsetSurface.hpp
HashGrid.hpp
lvr2::PointsetGrid::calcDistanceValues
void calcDistanceValues()
lvr2::PointsetGrid::PointsetGrid
PointsetGrid(float cellSize, PointsetSurfacePtr< BaseVecT > surface, BoundingBox< BaseVecT > bb, bool isVoxelsize=true, bool extrude=true)
lvr2::PointsetSurfacePtr
std::shared_ptr< PointsetSurface< BaseVecT > > PointsetSurfacePtr
Definition:
PointsetSurface.hpp:161
lvr2::BoundingBox
A dynamic bounding box class.
Definition:
BoundingBox.hpp:49
lvr2::PointsetGrid::~PointsetGrid
virtual ~PointsetGrid()
Definition:
PointsetGrid.hpp:58
lvr2::PointsetGrid::m_surface
PointsetSurfacePtr< BaseVecT > m_surface
Definition:
PointsetGrid.hpp:72
lvr2
Definition:
BaseBufferManipulators.hpp:39
lvr2::PointsetGrid::calcIndex
int calcIndex(float f)
Rounds the given value to the neares integer value.
Definition:
PointsetGrid.hpp:67
lvr2::PointsetGrid
Definition:
PointsetGrid.hpp:47
BoundingBox.hpp
lvr2::HashGrid
Definition:
HashGrid.hpp:94
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 Wed Mar 2 2022 00:37:24