"Fltk/projectionEditor.cpp" did not exist on "9139fe13abda3dce6f59c10c899ed0dc0e2cbb23"
Forked from
gmsh / gmsh
Source project has a limited visibility.

Christophe Geuzaine
authored
- new GmshInitialize(argc, argv) and GmshFinalize() for library version, now also used throughout - GModel::mesh(dimension) We now have a simple API to do basic stuff. We'll interface more as we go (optimize, adapt, etc.). #include <stdio.h> #include <gmsh/Gmsh.h> #include <gmsh/GModel.h> #include <gmsh/MElement.h> int main(int argc, char **argv) { GmshInitialize(argc, argv); GModel *m = new GModel(); m->readGEO("./tutorial/t5.geo"); m->mesh(3); for(GModel::riter it = m->firstRegion(); it != m->lastRegion(); ++it){ printf("volume %d contains %d elements:\n", (*it)->tag(), (*it)->getNumMeshElements()); for(unsigned int i = 0; i < (*it)->getNumMeshElements(); i++) printf(" %d", (*it)->getMeshElement(i)->getNum()); printf("\n"); } m->writeMSH("test.msh"); m->writeUNV("test.unv"); GmshFinalize(); }
Name | Last commit | Last update |
---|