Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Why is my OFF file producing segmentation fault for polyhedron generation ?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Why is my OFF file producing segmentation fault for polyhedron generation ?


Chronological Thread 
  • From: Jane Tournois <>
  • To:
  • Subject: Re: [cgal-discuss] Why is my OFF file producing segmentation fault for polyhedron generation ?
  • Date: Thu, 14 Apr 2016 12:45:59 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:RFYqAx8lBQ60tv9uRHKM819IXTAuvvDOBiVQ1KB91u4cTK2v8tzYMVDF4r011RmSDdWdtqwP0bSempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lSsiP0Y/tiaibwN76XUZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwu3cYh/V0/MFJVeD2fr8zUKdDJDUgKWE8osPx5jfZSg7axHIaXy0qlQdSBQ/E91muXJ73v23msfdn3i6bJuX5QLcxVCi4/qliQwPvkjZBPDk8pjKEwvdshb5W9Ury7yd0xJTZNdmY

Hi Timothee,

I could not reproduce your seg fault.

You can try to add the following macro definition on the very first line of your cpp file :
#define CGAL_MESH_3_VERBOSE

and then post the execution log?

This could help you or us find the error.


Also, you mention an "error message". What does it say ?

Best,

Jane.

--
Jane Tournois, PhD
R&D Engineer at GeometryFactory
http://www.geometryfactory.com/




Le 14/04/2016 10:18, Timothée Nicolas a écrit :
Dear all,

I am trying to produce a 3D tetrahedral mesh from a boundary surface mesh. I
figured that the easiest way to do this was to use a .OFF file of my
boundary, which does not seem too difficult to produce, and feed it directly
to this example program

http://doc.cgal.org/latest/Mesh_3/Mesh_3_2mesh_polyhedral_domain_8cpp-example.html

Before taking on my actual boundary surface mesh, I need to understand
exactly what I am doing, so I tried replacing the file elephant.off with the
following simple .off file representing a pyramid

OFF
5 6 0

0.0 0.0 0.0
1.0 0.0 0.0
1.0 1.0 0.0
0.0 1.0 0.0
0.5 0.5 1.0
3 2 1 0
3 3 2 0
3 0 1 4
3 1 2 4
3 2 3 4
3 3 0 4

Unfortunately this produces a segmentation fault when making the mesh. I
have no idea what causes it to malfunction. Anyone has a clue ? I have also
tried with a simple tetrahedron or a cube with each face cut into two
triangles, same error message.

Best

Timothee




Archive powered by MHonArc 2.6.18.

Top of Page