Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: Chris Marsh <>
  • To: <>
  • Subject: Re: [cgal-discuss] Load a mesh in Gmsh format
  • Date: Thu, 8 Nov 2018 16:31:20 -0600
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=Pass
  • Ironport-phdr: 9a23:Iz53BBWparfACkFWIO6burbGT17V8LGtZVwlr6E/grcLSJyIuqrYbBKOt8tkgFKBZ4jH8fUM07OQ7/i/HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba9wIRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KptVRTmijoINyQh/W7YhMx/jqJVrhyiqRJi3YDbfJqYO+Bicq7HZ94WWXZNU8RXWidcAo28dYwPD+8ZMOtGr4n9vVoOrQCjDgerHuzv0CRIhn/r1qA9z+shERvG3A07H94UtXTbts/1NLwSUe2u0anI1i/Mb+hV2Tvn9IfHaAksrPeRVrx+dsrRzFMgFwLDjliIqIzlOSmV1uUXvGSB4epgT/qji2o5pA1ouTeg3N0sipLTioIT1F/E6T11z5o6JdKiTE53e9mkEIFfty2COIt2R9giQ2FytCY7zL0Gt5m7cS4Xw5ok3x7Sc+GLf5aL7x75SuqcLzl1iGh7dL6ihxu+61asx+P8W8WszlpGsi5InsPPu30NzRDf98mKR/pn8kqu2juC0R3Y5PteLkAuj6XbLoYswr4umZoXtkTOBir2l1/3jK+SbEkk5/Oo5P78YrXlvJOTK5V7hhn/MqQohMO/Hfw1PhUQU2WY4+iwyrPu8EPjTLlUk/E7krPVvI7UKMkbvqK5BhVa0ocn6xaxFTem19EYkGEbI1JFYhKHjpPpN0vLIP/iF/e/mFSsnSx2x/DdJLLhGZbNImLfn7j7Zbp98VJTyBIvzdBD4JJZEq0OIP3pVU/1rdDXEx45MxeozOb6E9V9zZgTWXmPA6+cKKPdq0WE5uMpI+mWZY8aoizxK/Y/562msHkihFVIfbW1xYBFLzejD/F+KgOYZ2Dti5EPCyARrw8mRavrjlOFFjVcbnL3U6Mn7SwgE9GaCtKXTY+khPmN3TywA4ZNTmFAEFGFV3nyIdaqQfAJPQmSOM562hkNT6OhA9sq1Quvr0n/wqB8LsLJ4SQDttTo3Y4mtKXoiRgu+GksXIym2GaXQjQsxzJad3oNxKl65HdF5BKG2Kl8jeZfEIULte5SWxw5c5XVnbUjV4LCHznZd9LMc26IB828CGhpHM8qysQNJU10SY3700LzmhGyCrpQrISlQZw59qWFgir0Lsd5jWvd3bIiyVIvEJJC

Arg. I'm really sorry about that.

I've updated the SO post with a full working example w/ all header includes & a cmake script to build it. It adds 3 vertices and inserts 1 face.
Because I am using this for terrain, I use x,y,z points and use the projection trait to allow for using this 3D point in a 2D triangulation. I've kept it this way as it may be of use to you.

The example on SO uses this triangulation data structure

I hope this helps,

Cheers
Chris


Hello everybody out there!

On 2018/11/08 at 6:34 pm, Chris Marsh wrote:
> Oh no! That is my SO answer...

        Well, everyone can do a mistake, especially me. Still, thank you for
the answer on Stackoverflow and here, it does help.

> In my code I took this from, I extent the
> vertex_base class to allow for storing more information within the node.
> I forgot to remove that when I wrote that answer.
> I've updated it to correct this.

        Thank you for this. I think there is still one line specific to your
code. I cannot compile it anyway. Here is the line:

typedef face<Gt> Fb; //custom face class, use default face and vertex as
required

        According to your comment, I should be using the default face class.
The thing is, I am discovering CGAL and I have not been able to find
which one I should use.

> I would look here
> http://gmsh.info/doc/texinfo/gmsh.html#MSH-file-format-_0028version-4_0029
> and figure out how it's stored -- I'm not sure which of these formats
> you have

        Yes, indeed. Anyway, I do master the mesh formats I am dealing with.
Right now, my trouble is, I am discovering CGAL and as it is quite an
extensive library, I am still a bit lost in it.

        Once again, thank you for your answer.

        Best regards.

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

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss





Archive powered by MHonArc 2.6.18.

Top of Page