- Copyright
- Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org) Distributed under a Modified BSD License. See accompanying file LICENSE.txt or http://www.opengeosys.org/project/license
Definition in file VTK2TIN.cpp.
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 33 of file VTK2TIN.cpp.
36 "Converts VTK mesh into TIN file.\n\n"
37 "OpenGeoSys-6 software, version " +
40 "Copyright (c) 2012-2021, OpenGeoSys Community "
41 "(http://www.opengeosys.org)",
43 TCLAP::ValueArg<std::string> mesh_in(
44 "i",
"mesh-input-file",
45 "the name of the file containing the input mesh",
true,
"",
46 "file name of input mesh");
48 TCLAP::ValueArg<std::string> mesh_out(
49 "o",
"TIN-output-file",
50 "the name of the file the TIN will be written to",
true,
"",
51 "file name of output TIN");
53 cmd.parse(argc, argv);
55 std::unique_ptr<MeshLib::Mesh> mesh(
57 INFO(
"Mesh read: {:d} nodes, {:d} elements.", mesh->getNumberOfNodes(),
58 mesh->getNumberOfElements());
60 INFO(
"Converting the mesh to TIN");
64 INFO(
"Writing TIN into the file");
void INFO(char const *fmt, Args const &... args)
Container class for geometric objects.
const std::vector< Surface * > * getSurfaceVec(const std::string &name) const
Returns the surface vector with the given name as a const.
static void writeSurfaceAsTIN(GeoLib::Surface const &surface, std::string const &file_name)
static MeshLib::Mesh * readVTUFile(std::string const &file_name)
GITINFOLIB_EXPORT const std::string ogs_version
bool convertMeshToGeo(const MeshLib::Mesh &mesh, GeoLib::GEOObjects &geo_objects, double const eps)
References MeshLib::convertMeshToGeo(), GeoLib::GEOObjects::getSurfaceVec(), INFO(), GitInfoLib::GitInfo::ogs_version, MeshLib::IO::VtuInterface::readVTUFile(), and GeoLib::IO::TINInterface::writeSurfaceAsTIN().