36 #include <ringmesh/ringmesh_tests_config.h> 55 bool loaded_model_is_valid{
geomodel_load( model, file_name ) };
57 if( !loaded_model_is_valid )
60 model.name(),
": the loaded model is not valid." );
65 if( model.nb_corners() != 52 || model.nb_lines() != 98
66 || model.nb_surfaces() != 55 || model.nb_regions() != 8
67 || model.nb_geological_entities( Interface3D::type_name_static() ) != 11
68 || model.nb_geological_entities( Contact3D::type_name_static() ) != 38
69 || model.mesh.vertices.nb() != 6691 || model.mesh.polygons.nb() != 10049
70 || model.mesh.cells.nb() != 34540 )
73 model.name(),
": wrong number of entities." );
86 "Import two meshed GeoModels (1 TSolid & 1 LightTSolid) from .so" );
88 std::vector< std::future< void > > futures;
90 futures.emplace_back( std::async( std::launch::async, &
test_mesh,
91 ringmesh_test_data_path +
"modelA4.so" ) );
93 futures.emplace_back( std::async( std::launch::async, &
test_mesh,
94 ringmesh_test_data_path +
"modelA4_lts.so" ) );
96 for(
auto& future : futures )
106 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 test_mesh(const std::string &file_name)
const std::string & category() const
Classes to build GeoModel from various inputs.
void RINGMESH_API default_configure()