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: Timothée Nicolas <>
  • To:
  • Subject: Re: [cgal-discuss] Why is my OFF file producing segmentation fault for polyhedron generation ?
  • Date: Thu, 14 Apr 2016 20:48:08 +0900
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:jak7QRwwPj+El8PXCy+O+j09IxM/srCxBDY+r6Qd0OoVIJqq85mqBkHD//Il1AaPBtWLra8awLGN+4nbGkU+or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6anHS+4HYoFwnlMkItf6KuSt6U0pr8jLv60qaQSjsLrQL1Wal1IhSyoFeZnegtqqwmFJwMzADUqGBDYeVcyDAgD1uSmxHh+pX4p8Y7oGwD888n7NNKBKXmY7wjH/sfFyUjK2lz5cvxtBCFQxHI/WoZSmxRkxxGBE/O4xj+G5vwqSDnrfEu5C7PNsL/SfU4WC+p8rxwYB7ukiYOcTAjo0/NjcklsKNepw6hJhFI5Y/fZ4WcL7IqYqLYes8aSGcHWMdaUChIGauzaoIOC6wKOuMO/Nq1nEcHsRbrXVrkP+jo0DId3nI=

Thank you for your answer.

So you say you were able to produce a valid out.mesh file with the .off file I suggested ?

I just checked on my Ubuntu computer, and it does the same as this afternoon at work on a Mac OS X. The error message here is

Erreur de segmentation (core dumped)

If I remember correctly, on the mac, it was something like

Segmentation fault:11

I have added the verbose line you sent me, and it does not tell me anything else...

Timothée

2016-04-14 19:45 GMT+09:00 Jane Tournois <>:
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


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss






Archive powered by MHonArc 2.6.18.

Top of Page