src/tools/lvr2_hdf5_mesh_builder/Options.cpp
Go to the documentation of this file.
1 
28 #include "Options.hpp"
29 
30 namespace hdf5meshtool
31 {
32 
33 Options::Options(int argc, char** argv) : m_descr("Supported options")
34 {
35 
36  // Create option descriptions
37 
38  m_descr.add_options()
39  ("help", "Produce help message")
40  ("inputFile,i", value<string>()->default_value("triangle_mesh.ply"), "Input mesh file.")
41  ("outputFile,o", value<string>()->default_value("mesh.h5"), "Output file.")
42  ("meshName,m", value<string>()->default_value("mesh"), "The name of the mesh to write")
43  ("edgeCollapse,e", value<size_t>()->default_value(0), "Edge collapse reduction algorithm, the number of edges to collapse.")
44  ("localRadius,r", value<float>()->default_value(0.3), "The local radius used for roughness and height differences computation.")
45  ;
46 
47 
48  // Parse command line and generate variables map
49  store(command_line_parser(argc, argv).options(m_descr).positional(m_pdescr).run(), m_variables);
50  notify(m_variables);
51 
52  if(m_variables.count("help")) {
53  ::std::cout<< m_descr << ::std::endl;
54  exit(-1);
55  }
56 
57 
58 }
59 
61  // TODO Auto-generated destructor stub
62 }
63 
64 } // namespace reconstruct
const kaboom::Options * options
Options(int argc, char **argv)
Ctor. Parses the command parameters given to the main function of the program.
variables_map m_variables
The internally used variable map.
options_description m_descr
The internally used option description.
positional_options_description m_pdescr
The internally used positional option desription.
char ** argv


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