36 #include <ringmesh/ringmesh_tests_config.h> 54 std::string file_name( ringmesh_test_data_path );
55 file_name +=
"annot.ml";
57 Logger::out(
"RINGMesh Test",
"Loading and fixing structural geomodel:",
62 bool init_model_is_valid{
geomodel_load( geomodel, file_name ) };
63 if( init_model_is_valid )
67 " must be invalid to check the repair functionalities." );
73 GeoModelBuilder3D model_builder( geomodel );
80 "RINGMesh Test",
"Fixing the invalid geological model " 81 + geomodel.name() +
" failed." );
92 catch(
const std::exception& e )
bool is_geomodel_valid(const GeoModel< DIMENSION > &geomodel, ValidityCheckMode validity_check_mode=ValidityCheckMode::ALL)
Check global geomodel validity.
bool geomodel_load(GeoModel< DIMENSION > &geomodel, const std::string &filename)
static void err(const std::string &feature, const Args &... args)
static void out(const std::string &feature, const Args &... args)
const std::string & category() const
Classes to build GeoModel from various inputs.
void RINGMESH_API default_configure()