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: Yoann LE BARS <>
  • To:
  • Subject: Re: [cgal-discuss] Load a mesh in Gmsh format
  • Date: Fri, 9 Nov 2018 01:05:40 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=Pass
  • Ironport-phdr: 9a23:P/GEhRwclbdYHsvXCy+O+j09IxM/srCxBDY+r6Qd1O8TIJqq85mqBkHD//Il1AaPAd2Eraocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94HRbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDwULs6Wymt771zRRH1likHOT43/mLZhMN+g61Uog6uqRNkzo7IY4yYLuZycr/TcN4YQ2dKQ8ZfVzZGAoO5d4YADe0BMvxer4n7ulAAqxSwDhSxCe7z1jFGm2L90Ko60uQmCw7G2gogEskKsHvKtdn6L70dUfquzKXSyzXMce9W1C775YPVfB4hpvSMUqhxccrX0UQvEx3KgkyLpoP/JTOVzf4Bs26F4Op8U++klm0pqxlprzSx28shiJPFip8Wx1za7yl0w4Y4KcelREJnZdOoCJ9duzyAO4drQ84uXntktDs6x7AEo5K3YSsHxZohyhXCcfKIaZKI7QjmVOuJITd3mnZleLWniha360egy+n8Vsiy0FlWqipFlcTMuW0X2xPP7ciHT+Nx/kan2TmRywDe8v9ILV02mKbBNpIswaA8moAQvEnDBCP6hVn6gauOekUh4Oeo6uDnYrv8pp+bMo95kgH/MqM0lcy5B+Q1KQwOUHaC9eunzrLj51b5TK9MjvIojqnVqIraKtgDpq6lHw9V1Z4u5AqwDzi81NQUhGQILFNeeB2bkojpIErOLevjDfa/hlSsiC1ky+rHPr3nGJXNL2LMnK3vfbZnuAZgz184wtlbop5VEbocO+nbW0nrtdWeAAVqHRazxrPWD9x70Ms6dCqlK5WiePfDtlaO4MorLqyGbZUO/jDwN652tLbVkXYllApFLuGS1pwNZSXgR6U0EwCieXPpx+w5PyIPtws6QvbtjQTZAzpeIny7Rbl64DwnWtr/UdXzA7u1ibnE5x+VW4VMbzkdWFSBVH3hbZ7CXfoQOnrLf51R1wccXL3kcLcPkBGjsAijlOhiJ+vQ+ysTsZX+2J5+4OiBzBw=


Hello everybody out there!

On 2018/11/08 at 11:31 pm, Chris Marsh wrote:
> 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.

Far more than I could have expected, thank you. I have used it to
check
my own CMake script, it turned out there was several mistakes.

Now, as there are thousands of vertices and thousands of faces in the
meshes I am using, I cannot create a new variable for each. I need to
stock them in vectors, and cannot use “auto”. Therefore, I am looking
for the appropriate type. It turned out
“CGAL::Triangulation_data_structure_2::Vertex_handle” is not
appropriate, as it does not provide “set_point”:

/home/yoann/program/UWWatch-test/src/gmsh.cpp:131:27: error:
‘__gnu_cxx::__alloc_traits<std::allocator<CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_vertex_base_2<CGAL::Projection_traits_xy_3<CGAL::Epick>,
CGAL::Triangulation_ds_vertex_base_2<CGAL::Triangulation_data_structure_2<CGAL::Triangulation_vertex_base_2<CGAL::Projection_traits_xy_3<CGAL::Epick>
>,
CGAL::Constrained_triangulation_face_base_2<CGAL::Projection_traits_xy_3<CGAL::Epick>
> > > >, CGAL::Default, CGAL::Default, CGAL::Default>, false> >,
CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_vertex_base_2<CGAL::Projection_traits_xy_3<CGAL::Epick>,
CGAL::Triangulation_ds_vertex_base_2<CGAL::Triangulation_data_structure_2<CGAL::Triangulation_vertex_base_2<CGAL::Projection_traits_xy_3<CGAL::Epick>
>,
CGAL::Constrained_triangulation_face_base_2<CGAL::Projection_traits_xy_3<CGAL::Epick>
> > > >, CGAL::Default, CGAL::Default, CGAL::Default>, false>
>::value_type’ {aka ‘class
CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_vertex_base_2<CGAL::Projection_traits_xy_3<CGAL::Epick>,
CGAL::Triangulation_ds_vertex_base_2<CGAL::Triangulation_data_structure_2<CGAL::Triangulation_vertex_base_2<CGAL::Projection_traits_xy_3<CGAL::Epick>
>,
CGAL::Constrained_triangulation_face_base_2<CGAL::Projection_traits_xy_3<CGAL::Epick>
> > > >, CGAL::Default, CGAL::Default, CGAL::Default>, false>’} has no
member named ‘set_point’

> 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.

So far, I am using purely 2D points (no “z” coordinate) for a 2D
triangulation. I may be using 3D meshes later, but not now.

> I hope this helps,
Well, I have spent a couple of days trying to sort this out by myself
and failed. Now, I am making some progress, so it clearly helps.

Best regards.

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




Archive powered by MHonArc 2.6.18.

Top of Page