14int main(
int argc,
char* argv[])
17 "Converts 2D mesh file into shapfile such that each element is "
18 "represented by a polygon. Cell attributes are transferred onto shape "
19 "polygons while point attributes are ignored.\n\n"
20 "OpenGeoSys-6 software, version " +
23 "Copyright (c) 2012-2026, OpenGeoSys Community "
24 "(http://www.opengeosys.org)",
27 TCLAP::ValueArg<std::string> output_arg(
"o",
"output-file",
28 "Output (.shp). Esri Shapefile",
29 true,
"",
"OUTPUT_FILE");
32 TCLAP::ValueArg<std::string> input_arg(
"i",
"input-file",
33 "Input (.vtu | .msh). OGS mesh file",
34 true,
"",
"INPUT_FILE");
38 cmd.add(log_level_arg);
39 cmd.parse(argc, argv);
44 std::string
const file_name(input_arg.getValue());
45 std::unique_ptr<MeshLib::Mesh>
const mesh(