Go to the documentation of this file.
44 using namespace boost::program_options;
49 m_descr.add_options()(
"help",
"Produce help message")(
51 value<vector<string>>(),
52 "Input file name. Supported formats are .obj and .ply")(
55 "Percentage of faces to remove via edge-collapse (0.0 means no reduction, 1.0 means to "
56 "remove all faces which can be removed)");
62 return (
m_variables[
"inputFile"].as<vector<string>>())[0];
80 cout <<
"Error: You must specify an input file." << endl;
Options(int argc, char **argv)
Ctor. Parses the command parameters given to the main function of the program.
float getEdgeCollapseReductionRatio() const
Reduction ratio for mesh reduction via edge collapse.
variables_map m_variables
The internally used variable map.
float m_edgeCollapseReductionRatio
string getInputFileName() const
Returns the output file name.
virtual void setup()
Setup internal data structures.
options_description m_descr
The internally used option description.
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