Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Load a mesh in Gmsh format

Subject: CGAL users discussion list

List archive

[cgal-discuss] Load a mesh in Gmsh format


Chronological Thread 
  • From: Yoann LE BARS <>
  • To:
  • Subject: [cgal-discuss] Load a mesh in Gmsh format
  • Date: Thu, 8 Nov 2018 18:11:46 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=Pass
  • Ironport-phdr: 9a23:U0cFAxPYvarqHgjwqXUl6mtUPXoX/o7sNwtQ0KIMzox0Iv/6rarrMEGX3/hxlliBBdydt6obzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlKiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0yRD+s7bpkSAXwhSkZNzA37WLZhMJ+g61UvB2vqAdyw5LXbYyPKPZyYq3QcNEcSGFcXshRTStBAoakYoQNCOoOJ+BYr4/grFUIohW1GBShCf/zxDFVm3T72q070+M7HgHA2gwtBNYOv2rNoNruLqgSS/u1wLPOzTrdc/NbwDHw45XGfBAmpPGDR7NwcczJxEkrCQzJl06fppb/PzOOzOgNtXaU7/Z4WeK0l24osR1+ojuoxscylIbJnIwVylTD9SR32oo6Odq4SEtjbd6qCptfrSSaOJF5QsMjX2FkoiE6yqcJuZKjcygKzY8nxx7FZ/yGdYiI7BXjWeCMKjl7nHJoYKyziwuw/ES61+HxVde43ExJoydFiNXAq2wB2hjL5sSaTvZw/l2t1SiR2wzO8O1IP0I5mbDaJpMjxLM7i4Advl7ZHiDsnUX7lK+WeVsg+uiv8+nnZ6/ppp6YN491jAHxLqAumsuiAeslKAQBQ2+b+eGk2L3i+032XqlKg+UonqXEsp3WP9kXq62nDwNP0Ysu6wyzAyq63NkchXUHKUhKeBODj4jnIVHOJ/X4AO+/glSrijhrwfbGM6blAprTN3TMi63ufaxm60JGzgo808xf64pOCr4dOPLzRlPxtNvAAxAlPAy72eLnBMxg2YMfQmKAHrKZMLjJsVKT/eIuI+yMZJcPtzrnKvgl4eTujX4jllMHc6mpx8hfVHftFftvJwCVYGHnn8waOWYMpAs3CuLw23OYVjsGVnG7WaR0whxzIqucNs+XV4ekhrqp2Cr+FJRMfSZAB0zaQiSgTJmNR/pZMHHaGcRmiDFRDeHwGb9k7gmnsUrB85QiK+PV/iMCspe6j4px6qjZnAspszp5E5bFij3ffyRPhmoNAgQO8uVnu0UkkQWH3O1yiuZDU9pe+6ERC1poBdvn1+V/TuvKdEfBc9OOEQn0R9ynBTA3RdY23tNIaEF4SYyv


Hello everybody out there.

I am working on an application written in C++ which, among other
things, manipulates 2D triangular meshes–you can have a look to a Python
prototype on FramaGit (https://framagit.org/ylebars/UWWatch). To
manipulate meshes, I have chosen CGAL, which lead me here.

I have been able to mesh a set of points with CGAL. Now, I need to
load
previously created meshes which are stored in Gmsh format
(http://gmsh.info/). That is, not only do I know what are the nodes of
the mesh, but also its faces. I have been looking in CGAL documentation
and dozens other websites, but I have not found any hint on how to set
up faces on a mesh. The only thing almost relevant I have found is this:

https://stackoverflow.com/questions/38954435/manually-insert-mesh-into-cgal-with-points-and-cells

But it turned out I have found no way to get rid of this compilation
error:

error: ‘ex_vertex’ does not name a type

Anyway, I am quite certain some have already open existing meshes with
CGAL. Can someone point me some any documentation on how to do this?
Well, as a workaround I can translate the mesh from Gmsh file format
into OFF file format and then load it, but it means to store the mesh
two times and anyway it is not really an elegant way to deal with this
issue.

Best regards.

--
Yoann LE BARS
http://le-bars.net/yoann
*Diaspora :




Archive powered by MHonArc 2.6.18.

Top of Page