src
tools
lvr2_octree_test
src/tools/lvr2_octree_test/Main.cpp
Go to the documentation of this file.
1
#include "
lvr2/display/PointOctree.hpp
"
2
#include "
lvr2/io/PointBuffer.hpp
"
3
#include "
lvr2/geometry/BaseVector.hpp
"
4
#include "
lvr2/io/Timestamp.hpp
"
5
#include "
lvr2/io/ModelFactory.hpp
"
6
#include "
lvr2/io/IOUtils.hpp
"
7
8
9
using namespace
lvr2
;
10
using
Vec
=
lvr2::BaseVector<float>
;
11
12
int
main
(
int
argc
,
char
**
argv
)
13
{
14
if
(argc < 2)
15
{
16
return
0;
17
}
18
19
std::cout << argv[1] << std::endl;
20
ModelPtr
model =
ModelFactory::readModel
(std::string(argv[1]));
21
22
// Parse loaded data
23
if
(!model)
24
{
25
std::cout <<
"IO Error: Unable to parse "
<< std::endl;
26
return
0;
27
}
28
29
PointOctree<Vec>
oct =
PointOctree<Vec>
(model->m_pointCloud, 5);
30
31
return
0;
32
}
33
IOUtils.hpp
lvr2::ModelFactory::readModel
static ModelPtr readModel(std::string filename)
Definition:
ModelFactory.cpp:65
lvr2::PointOctree
Definition:
PointOctree.hpp:32
ModelFactory.hpp
BaseVector.hpp
argc
int argc
Definition:
tests_high_five_parallel.cpp:27
lvr2::ModelPtr
std::shared_ptr< Model > ModelPtr
Definition:
Model.hpp:80
PointOctree.hpp
lvr2::BaseVector< float >
main
int main(int argc, char **argv)
Definition:
src/tools/lvr2_octree_test/Main.cpp:12
lvr2
Definition:
BaseBufferManipulators.hpp:39
Timestamp.hpp
PointBuffer.hpp
argv
char ** argv
Definition:
tests_high_five_parallel.cpp:28
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