36 #include <ringmesh/ringmesh_tests_config.h> 56 std::vector< std::string > input_model_file_name_list = {
57 "CloudSpin_fixed.ml",
"modelA6.ml" 59 for(
const std::string& input_model_name : input_model_file_name_list )
61 std::string input_model_file_name =
62 ringmesh_test_data_path + input_model_name;
64 Logger::out(
"TEST",
"Geomodel input test. Loading file ",
65 input_model_file_name );
68 bool loaded_model_is_valid =
71 if( !loaded_model_is_valid )
74 "Failed when loading model ", in.name(),
75 ": the loaded model is not valid." );
78 std::string output_model_file_name( ringmesh_test_output_path );
79 output_model_file_name += in.name() +
"_saved_out.ml";
83 bool reloaded_model_is_valid =
86 if( !reloaded_model_is_valid )
89 "Failed when reloading model ", in2.name(),
90 ": the reloaded model is not valid." );
93 std::string output_model_file_name_bis( ringmesh_test_output_path );
94 output_model_file_name_bis += in.name() +
"_saved_out_bis.ml";
98 output_model_file_name, output_model_file_name_bis ) )
106 GeoModel3D not_sealed_cube_geomodel;
107 std::string input_cube_model_file_name( ringmesh_test_data_path );
108 input_cube_model_file_name +=
"not_sealed_cube.ml";
109 geomodel_load( not_sealed_cube_geomodel, input_cube_model_file_name );
116 catch(
const std::exception& e )
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)
void geomodel_save(const GeoModel< DIMENSION > &geomodel, const std::string &filename)
const std::string & category() const
bool RINGMESH_API compare_files(const std::string &f1, const std::string &f2)
Classes to build GeoModel from various inputs.
void RINGMESH_API default_configure()