Subject: CGAL users discussion list
List archive
- From: Chris Marsh <>
- To: <>
- Subject: Re: [cgal-discuss] Load a mesh in Gmsh format
- Date: Thu, 8 Nov 2018 11:34:32 -0600
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=Pass
- Ironport-phdr: 9a23:RndJXxS95s1e0X3EjyoUpgNVatpsv+yvbD5Q0YIujvd0So/mwa6zZReN2/xhgRfzUJnB7Loc0qyK6/+mATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfbF/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlSgHLSY0/27ZisNyjKxVrhGvqQFhzYHIe4yaLuZyc7nHcN8GWWZMXMBcXDFBDIOmaIsPCvIMMPhYr4nnplsOtga1Cw62C+P10T9IhmL90Kom3OQhCwHG3RcgE8gLsHvOttX1L6cSXPuozKnT1zrDdPBW1S3h54fSax0sp+yHU7x3ccrU00YvFgXFg02RqYzjJTOV1/4Cv3KV7+p6Te6vj3AopxhqrTe13McskZPFhoQLxVDY7Sl525o1KsekR054Zt6kDoVftzuUN4tyRcMjTXtktzo9yr0DoZK7cjIKx44ixxHFZPyHcpSI7gjkVOaLLjd0nH1leLekhxay60Sgy+v8Vsez0FtMsyFLkcHMu2gQ2xDN6cWLUOVx80mv1DqVyQzf9+FJLVoqmafUN5It2qA8moYXvEjZHSL7mF/6gLKXe0gl4OSl5Obqb7P7rZGGLYB0kBvxMqE2l8y/H+s4Ng8OUnCe+eum1b3j+Vf1QKhRjvIsianZs4rWKtgBqaKhAg9V1Jgs6wqnAju7ztgVnmMLIExLdR+JlYTlJUzCLfDiAfuhjFmgjC9nx/XcMb3gBpXNIGLDkLDkfbtl90FcyBAzzdFE555OD7EOOujzWlTxtNHDEx85KBa7w/3kCNlnyowRQ3qDArWFP6PKrV+I+uUvLvGQa48aojn9L+Ep6OPvjX8ihVAdYLKp3YAMZXCjHvVmJl2ZbmD2jtcAF2cKpAs+Q/bwhF2MSz4AL0u0RL82szEnFJq9X8CEXZGomLXH3SGhH5QQaHoBEUGJCX6vdoOKXLAHZyuWZ8NgiTcZTqPyd4h0gRqhvQu/x7t8JffP4QUZs4ji3Z57/buAuws18GlfD96cyCmoRntvnitcTD8s3bs5pEVn0VerzLNxmP8eHtUFtKABaRszKZOJl78yMNv1QA+UJo7YGmbjec2vBHQKdvx0xtYPZ0hnHND71kLexCOxAPkenu7SXcBmwufnx3H0Yv1F5TPezqB41ws7WcJUNiutj/wnrlWBN8vyi0yc0p2SW+Ec0SrKrTrRyGOPuAdFSwdrUuPOVCJGaw==
Hi,
Oh no! That is my SO answer... 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.
The general gist of most of these triangulation formats is there is a list of vertices, a list of faces comprised of verticies, and then adjacency information.
It is then just a matter of book keeping to ensure the right vertex go with the right face.
and figure out how it's stored -- I'm not sure which of these formats you have
I would imagine it's similar to something like this
vertexes = [ [x1,y1,z1], [x2,y2,z2], [x3,y3,z3] ]
# a single triangle made up of vertexes 0,1, and 2 triangles = [ [0,1,2] ]
Cheers
Chris
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 :
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] Load a mesh in Gmsh format, Yoann LE BARS, 11/08/2018
- Re: [cgal-discuss] Load a mesh in Gmsh format, Chris Marsh, 11/08/2018
- Re: [cgal-discuss] Load a mesh in Gmsh format, Yoann LE BARS, 11/08/2018
- Re: [cgal-discuss] Load a mesh in Gmsh format, Chris Marsh, 11/08/2018
- Re: [cgal-discuss] Load a mesh in Gmsh format, Yoann LE BARS, 11/09/2018
- Re: [cgal-discuss] Load a mesh in Gmsh format, Chris Marsh, 11/09/2018
- Re: [cgal-discuss] Load a mesh in Gmsh format, Yoann LE BARS, 11/09/2018
- Re: [cgal-discuss] Load a mesh in Gmsh format, Chris Marsh, 11/09/2018
- Re: [cgal-discuss] Load a mesh in Gmsh format, Yoann LE BARS, 11/09/2018
- Re: [cgal-discuss] Load a mesh in Gmsh format, Yoann LE BARS, 11/09/2018
- Re: [cgal-discuss] Load a mesh in Gmsh format, Chris Marsh, 11/09/2018
- Re: [cgal-discuss] Load a mesh in Gmsh format, Yoann LE BARS, 11/09/2018
- Re: [cgal-discuss] Load a mesh in Gmsh format, Chris Marsh, 11/09/2018
- Re: [cgal-discuss] Load a mesh in Gmsh format, Yoann LE BARS, 11/09/2018
- Re: [cgal-discuss] Load a mesh in Gmsh format, Chris Marsh, 11/08/2018
- Re: [cgal-discuss] Load a mesh in Gmsh format, Yoann LE BARS, 11/08/2018
- Re: [cgal-discuss] Load a mesh in Gmsh format, Chris Marsh, 11/08/2018
Archive powered by MHonArc 2.6.18.