Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] fatal error: CGAL/Surface_mesh.h: No such file or directory

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] fatal error: CGAL/Surface_mesh.h: No such file or directory


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] fatal error: CGAL/Surface_mesh.h: No such file or directory
  • Date: Wed, 20 Jan 2016 17:06:07 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:HK90GRIkn9RL+rbMmtmcpTZWNBhigK39O0sv0rFitYgULPrxwZ3uMQTl6Ol3ixeRBMOAu6wC0rKP+P+9EUU7or+/81k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZvIaytQ8iJ35rxjrjrsMKOKyxzxxODIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46FppIZ8VvDxcK08CLBZFz87KHsd5cvxtBCFQxHcyGEbVzBcqRdCChPZ7Rz8FrP2qCr9qqI99ySdOMDqV6EaUD++6L16CVWg3DwDMCQ4932Rj8hYg6dSoRbnrBt6ld2HKLqJPeZzK/uONegRQnBMC55c
  • Organization: GeometryFactory

The CGAL version you're using is probably too old. You need 4.7.

Sebastien.

On 01/20/2016 04:38 PM, Danyang Su wrote:
Hi Jane,

Sorry for the late reply. Thanks for your suggestion and it works if I
use an triangulated surface mesh.

Now i have another question regarding the surface mesh generation.

I got the following error when compile the demo codes. The code and make
command are attached.
fatal error: CGAL/Surface_mesh.h: No such file or directory
#include <CGAL/Surface_mesh.h>

Is any compiling flags missing in the sh file?

Thanks and regards,

Danyang

On 16-01-04 11:45 PM, Jane Tournois wrote:
Hi Danyang,

your input polyhedron should be triangulated.
You can do this using the function
CGAL::Polygon_mesh_processing::triangulate_faces() [1]

I called it on your input and attach the triangulated version to this
email.

Your code works perfectly on it!

Regards,
Jane.

[1]
http://doc.cgal.org/latest/Polygon_mesh_processing/group__PkgPolygonMeshProcessing.html#ga78da163452ce0675288191bcab1dedc8



Le 03/01/2016 16:43, Danyang Su a écrit :
Hi All,

I am new to CGAL and has a question regarding 3D mesh generation from
a specific domain. The code file cgal_mesh.cc is attached with two
data files included. If I use fandisk.off data file as the domain, it
works fine. But if I use T3d_rec.off as the domain, it crashes with
error information as below.

terminate called after throwing an instance of
'CGAL::Assertion_exception'
what(): CGAL ERROR: assertion violation!
Expr: !r_tr_.is_infinite(*cell_it)
File: /usr/include/CGAL/Mesh_3/Refine_cells_3.h
Line: 385
Aborted

The latter data file T3d_rec.off is just a simple hexahedron with
similar scale as fandisk.off.

Could anyone let me know what is wrong with the code, especially the
mesh criteria.

Thanks and regards,

Danyang









Archive powered by MHonArc 2.6.18.

Top of Page