OGS
|
Definition in file generateGeometry.cpp.
#include <tclap/CmdLine.h>
#include <mpi.h>
#include <numeric>
#include "GeoLib/GEOObjects.h"
#include "GeoLib/IO/XmlIO/Boost/BoostXmlGmlInterface.h"
#include "GeoLib/Point.h"
#include "GeoLib/Polyline.h"
#include "GeoLib/Utils.h"
#include "InfoLib/GitInfo.h"
Go to the source code of this file.
Functions | |
std::tuple< std::vector< GeoLib::Polyline * >, GeoLib::PolylineVec::NameIdMap > | appendNamedPolyline (std::unique_ptr< GeoLib::Polyline > polyline, std::string &&polyline_name) |
void | generateSinglePointGeometry (GeoLib::Point const &point, std::string &&point_name, std::string &geometry_name, GeoLib::GEOObjects &geometry) |
void | generatePolylineGeometry (GeoLib::Point const &point0, GeoLib::Point const &point1, int const number_of_subdivisions, std::string &&polyline_name, std::string &geometry_name, GeoLib::GEOObjects &geometry) |
std::vector< GeoLib::Point * > | generateQuadPoints (std::array< GeoLib::Point, 4 > const &points, std::array< int, 4 > const &number_of_subdivisions_per_edge) |
int | generateQuadGeometry (GeoLib::Point const &point0, GeoLib::Point const &point1, int const number_of_subdivisions_first_x, int const number_of_subdivisions_second_x, int const number_of_subdivisions_first_y, int const number_of_subdivisions_second_y, int const number_of_subdivisions_first_z, int const number_of_subdivisions_second_z, std::string &&quad_name, std::string &geometry_name, GeoLib::GEOObjects &geometry) |
int | main (int argc, char *argv[]) |
std::tuple< std::vector< GeoLib::Polyline * >, GeoLib::PolylineVec::NameIdMap > appendNamedPolyline | ( | std::unique_ptr< GeoLib::Polyline > | polyline, |
std::string && | polyline_name ) |
Definition at line 28 of file generateGeometry.cpp.
Referenced by generatePolylineGeometry(), and generateQuadGeometry().
void generatePolylineGeometry | ( | GeoLib::Point const & | point0, |
GeoLib::Point const & | point1, | ||
int const | number_of_subdivisions, | ||
std::string && | polyline_name, | ||
std::string & | geometry_name, | ||
GeoLib::GEOObjects & | geometry ) |
Definition at line 53 of file generateGeometry.cpp.
References GeoLib::GEOObjects::addPointVec(), GeoLib::GEOObjects::addPolylineVec(), appendNamedPolyline(), GeoLib::createPolyline(), GeoLib::generateEquidistantPoints(), and GeoLib::GEOObjects::getPointVecObj().
Referenced by main().
int generateQuadGeometry | ( | GeoLib::Point const & | point0, |
GeoLib::Point const & | point1, | ||
int const | number_of_subdivisions_first_x, | ||
int const | number_of_subdivisions_second_x, | ||
int const | number_of_subdivisions_first_y, | ||
int const | number_of_subdivisions_second_y, | ||
int const | number_of_subdivisions_first_z, | ||
int const | number_of_subdivisions_second_z, | ||
std::string && | quad_name, | ||
std::string & | geometry_name, | ||
GeoLib::GEOObjects & | geometry ) |
Definition at line 104 of file generateGeometry.cpp.
References GeoLib::GEOObjects::addPointVec(), GeoLib::GEOObjects::addPolylineVec(), appendNamedPolyline(), GeoLib::createPolyline(), ERR(), generateQuadPoints(), and GeoLib::GEOObjects::getPointVecObj().
Referenced by main().
std::vector< GeoLib::Point * > generateQuadPoints | ( | std::array< GeoLib::Point, 4 > const & | points, |
std::array< int, 4 > const & | number_of_subdivisions_per_edge ) |
Definition at line 79 of file generateGeometry.cpp.
References GeoLib::generateEquidistantPoints().
Referenced by generateQuadGeometry().
void generateSinglePointGeometry | ( | GeoLib::Point const & | point, |
std::string && | point_name, | ||
std::string & | geometry_name, | ||
GeoLib::GEOObjects & | geometry ) |
Definition at line 40 of file generateGeometry.cpp.
References GeoLib::GEOObjects::addPointVec().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] ) |
Definition at line 181 of file generateGeometry.cpp.
References BaseLib::IO::XMLInterface::export_name, generatePolylineGeometry(), generateQuadGeometry(), generateSinglePointGeometry(), GeoLib::GEOObjects::getGeometryNames(), GitInfoLib::GitInfo::ogs_version, and BaseLib::IO::writeStringToFile().