Skip to content
Snippets Groups Projects
Commit b00952a2 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

send basic 3d meshing progress message to client

parent 59499f1a
No related branches found
No related tags found
No related merge requests found
......@@ -666,7 +666,7 @@ void Msg::StatusBar(bool log, const char *fmt, ...)
}
if(_logFile) fprintf(_logFile, "Info: %s\n", str);
if(_callback && log) (*_callback)("Progress", str);
if(_callback && log) (*_callback)("Info", str);
if(_client && log) _client->Info(str);
#if defined(HAVE_FLTK)
......
......@@ -825,6 +825,11 @@ static void Mesh3D(GModel *m)
Msg::StatusBar(true, "Meshing 3D...");
double t1 = Cpu();
Msg::ResetProgressMeter();
if(m->getNumRegions())
Msg::ProgressMeter(0, 100, false, "Meshing 3D...");
// mesh the extruded volumes first
std::for_each(m->firstRegion(), m->lastRegion(), meshGRegionExtruded());
......@@ -940,11 +945,15 @@ static void Mesh3D(GModel *m)
// std::for_each(m->firstRegion(), m->lastRegion(), optimizeMeshGRegionNetgen());
if(Msg::GetVerbosity() > 98)
std::for_each(m->firstRegion(), m->lastRegion(), TEST_IF_MESH_IS_COMPATIBLE_WITH_EMBEDDED_ENTITIES ());
std::for_each(m->firstRegion(), m->lastRegion(),
TEST_IF_MESH_IS_COMPATIBLE_WITH_EMBEDDED_ENTITIES());
CTX::instance()->mesh.changed = ENT_ALL;
double t2 = Cpu();
CTX::instance()->meshTimer[2] = t2 - t1;
if(m->getNumRegions())
Msg::ProgressMeter(100, 100, false, "Meshing 3D...");
Msg::StatusBar(true, "Done meshing 3D (%g s)", CTX::instance()->meshTimer[2]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment