Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] 3D mesh generation and gcc version/optimisation level

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] 3D mesh generation and gcc version/optimisation level


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] 3D mesh generation and gcc version/optimisation level
  • Date: Wed, 08 Feb 2012 11:43:31 +0100
  • Organization: GeometryFactory

Le mardi 07 février 2012 12:22:52 Garth Wells a écrit :
> I've been running into some issues with mesh generation in 3D. I'm creating
> meshes of rather simple polyhedra (tetrahedra, cubes), but have been finding
> that the generation randomly fails at times. I'm also seeing a dependency
> on the gcc version and optimisation level. The code at the end of this
> message, taken from
>
>
> http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Mesh_3/Chapter_main.h
> tml#Subsection_50.3.5
>
> runs without error with g++ 4.6.1, but with g++ 4.4.6 and the -O2 or -O3
> flag I get the error
>
> terminate called after throwing an instance of
> 'CGAL::Precondition_exception'
> what(): CGAL ERROR: precondition violation!
> Expr: index != Subdomain_index()
> File: /usr/include/CGAL/Mesh_3/Mesh_complex_3_in_triangulation_3_base.h
> Line: 160
> Aborted
>
> I've tested with CGAL 3.8 and 3.9. The code is compiled using
>
> g++ -O2 -frounding-math test.cpp -lCGAL -lboost_thread -lmpfr -lgmp
>
> Any help with this would be greatly appreciated.

Can you please add:

#define CGAL_MESH_3_VERBOSE 1

as the first line of your cpp file, recompile, and give us the output of the
run, when it fails?

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/




Archive powered by MHonArc 2.6.16.

Top of Page