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

No commit message

No commit message
parent 061c02f5
No related branches found
No related tags found
No related merge requests found
...@@ -265,6 +265,9 @@ FlGui::FlGui(int argc, char **argv) ...@@ -265,6 +265,9 @@ FlGui::FlGui(int argc, char **argv)
Fl::scheme(CTX::instance()->guiTheme.c_str()); Fl::scheme(CTX::instance()->guiTheme.c_str());
Fl_Tooltip::size(FL_NORMAL_SIZE); Fl_Tooltip::size(FL_NORMAL_SIZE);
Fl_Tooltip::delay(0.5); Fl_Tooltip::delay(0.5);
#if defined(__APPLE__)
Fl_Tooltip::color(FL_LIGHT2);
#endif
// register image formats not in core fltk library (jpeg/png) // register image formats not in core fltk library (jpeg/png)
fl_register_images(); fl_register_images();
......
...@@ -48,13 +48,18 @@ int GModel::readGEO(const std::string &name) ...@@ -48,13 +48,18 @@ int GModel::readGEO(const std::string &name)
int GModel::exportDiscreteGEOInternals() int GModel::exportDiscreteGEOInternals()
{ {
if(_geo_internals) delete _geo_internals; int maxv = 1;
if(_geo_internals){
maxv = _geo_internals->MaxVolumeNum;
delete _geo_internals;
}
_geo_internals = new GEO_Internals; _geo_internals = new GEO_Internals;
for(viter it = firstVertex(); it != lastVertex(); it++){ for(viter it = firstVertex(); it != lastVertex(); it++){
Vertex *v = Create_Vertex((*it)->tag(), (*it)->x(), (*it)->y(), (*it)->z(), Vertex *v = Create_Vertex((*it)->tag(), (*it)->x(), (*it)->y(), (*it)->z(),
(*it)->prescribedMeshSizeAtVertex(), 1.0); (*it)->prescribedMeshSizeAtVertex(), 1.0);
Tree_Add(this->getGEOInternals()->Points, &v); Tree_Add(_geo_internals->Points, &v);
} }
for(eiter it = firstEdge(); it != lastEdge(); it++){ for(eiter it = firstEdge(); it != lastEdge(); it++){
...@@ -79,7 +84,7 @@ int GModel::exportDiscreteGEOInternals() ...@@ -79,7 +84,7 @@ int GModel::exportDiscreteGEOInternals()
} }
} }
End_Curve(c); End_Curve(c);
Tree_Add(this->getGEOInternals()->Curves, &c); Tree_Add(_geo_internals->Curves, &c);
CreateReversedCurve(c); CreateReversedCurve(c);
List_Delete(points); List_Delete(points);
} }
...@@ -100,12 +105,14 @@ int GModel::exportDiscreteGEOInternals() ...@@ -100,12 +105,14 @@ int GModel::exportDiscreteGEOInternals()
} }
} }
} }
Tree_Add(this->getGEOInternals()->Surfaces, &s); Tree_Add(_geo_internals->Surfaces, &s);
List_Delete(curves); List_Delete(curves);
} }
} }
// TODO: create Volumes from discreteRegions // TODO: create Volumes from discreteRegions ; meanwhile, keep track of
// maximum volume num so that we don't break later operations:
_geo_internals->MaxVolumeNum = maxv;
Msg::Debug("Geo internal model has:"); Msg::Debug("Geo internal model has:");
Msg::Debug("%d Vertices", Tree_Nbr(_geo_internals->Points)); Msg::Debug("%d Vertices", Tree_Nbr(_geo_internals->Points));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment