<div dir="ltr"><div class="gmail_extra">Hi Simone,</div><div class="gmail_extra"><br></div><div class="gmail_extra">You may also be interested in this example</div><div class="gmail_extra"><a href="http://geuz.org/pipermail/gmsh/2011/006803.html">http://geuz.org/pipermail/gmsh/2011/006803.html</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Best,</div><div class="gmail_extra">Mikhail</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 5, 2015 at 5:00 AM,  <span dir="ltr"><<a href="mailto:gmsh-request@ace20.montefiore.ulg.ac.be" target="_blank">gmsh-request@ace20.montefiore.ulg.ac.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":2j4" class="" style="overflow:hidden">Dear all,<br>
I have included Gmsh as library in my c++ program and I need to use it to mesh a volume region bounded by a surface mesh: in my program I have defined a surface mesh and I need to import its vertices and elements into a gmsh structure to be able to create a volume mesh starting from this surface.<br>
Steps to do so, as far as I can understand, are:<br>
<br>
-          Declare a GModel* that will contain the surface<br>
<br>
-          Add a GFace* into the GModel<br>
<br>
-          Add vertices and cells to the GFace* (get them from the mesh created in my program). Actually define a mesh for this GFace object<br>
<br>
-          Create the volume mesh<br>
<br>
Is this correct? Does anyone have any suggestion on how to write this portion of code?<br>
<br>
PS I have already looked at the example in utils/api_demos/mainSimple.cpp and have adapted it to my case, but I would rather avoid reading/writing files to transfer meshes between the my program and gmsh to avoid performance issues.<br>
<br>
Simone</div></blockquote></div><br><br></div></div>