[Gmsh] gmsh Digest, Vol 145, Issue 7
Mikhail Artemyev
artemiev.mikhail at gmail.com
Thu Feb 5 16:42:22 CET 2015
Hi Simone,
You may also be interested in this example
http://geuz.org/pipermail/gmsh/2011/006803.html
Best,
Mikhail
On Thu, Feb 5, 2015 at 5:00 AM, <gmsh-request at ace20.montefiore.ulg.ac.be>
wrote:
> Dear all,
> 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.
> Steps to do so, as far as I can understand, are:
>
> - Declare a GModel* that will contain the surface
>
> - Add a GFace* into the GModel
>
> - Add vertices and cells to the GFace* (get them from the mesh
> created in my program). Actually define a mesh for this GFace object
>
> - Create the volume mesh
>
> Is this correct? Does anyone have any suggestion on how to write this
> portion of code?
>
> 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.
>
> Simone
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20150205/267c89d9/attachment.html>