Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Linear cell complex: Segmentation fault while accessing vertex of a 2-cell
Chronological Thread
- From: Guillaume Damiand <>
- To:
- Subject: Re: [cgal-discuss] Linear cell complex: Segmentation fault while accessing vertex of a 2-cell
- Date: Thu, 25 Jun 2015 14:27:26 +0200
Hi pravav,
Without more code, it is impossible for me to suggest anything...
The problem comes indeed from fHandle, thus I need to know how this handle is initialized and which operations are made on the LCC after the initialization.
A last remark: if you are in 3D and if you want to have one dart per each vertex of a given face, a better possibility is to use:
for (LCC::Dart_of_orbit_range<1>::iterator pHandleBegin =
lcc.darts_of_orbit<1>(fHandle).begin(), pHandleEnd =
lcc.darts_of_orbit<1>(fHandle).end(); pHandleBegin !=
pHandleEnd; pHandleBegin++)
Guillaume
Le 25/06/2015 12:21, Pranav a écrit :
Hi,
I have encountered a segmentation fault while accesing the vertices of a
2-cell in linear cell complex(LCC). I have accessed them in a loop like
this:
for (LCC::One_dart_per_incident_cell_range<0, 2>::iterator pHandleBegin =
lcc.one_dart_per_incident_cell<0, 2>(fHandle).begin(), pHandleEnd =
lcc.one_dart_per_incident_cell<0, 2>(fHandle).end(); pHandleBegin !=
pHandleEnd; pHandleBegin++)
I have tried to inspect the fHandle and lcc values but I do not get any clue
other than the observation that fHandle does not seems to be NULL so error
might be coming from an invalid value in lcc...but its structure is huge. I
have attached the dump of the values of these structures returned by GDB
here
<http://cgal-discuss.949826.n4.nabble.com/file/n4660939/inspectVariables.inspectVariables>
.
Would you please suggest how to go about solving this problem?
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Linear-cell-complex-Segmentation-fault-while-accessing-vertex-of-a-2-cell-tp4660939.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
--
===================================================================
Guillaume DAMIAND
CNRS - LIRIS UMR 5205
Université Claude Bernard
Bâtiment Nautibus (710)
43 Boulevard du 11 Novembre 1918
69622 Villeurbanne Cedex (France)
-------------------------------------------------------------------
Tél: +33 (0)4.72.43.14.34 Fax: +33 (0)4.72.43.15.36
Mail:
Web: http://liris.cnrs.fr/guillaume.damiand/
===================================================================
Attachment:
smime.p7s
Description: Signature cryptographique S/MIME
- [cgal-discuss] Linear cell complex: Segmentation fault while accessing vertex of a 2-cell, Pranav, 06/25/2015
- Re: [cgal-discuss] Linear cell complex: Segmentation fault while accessing vertex of a 2-cell, Guillaume Damiand, 06/25/2015
- Re: [cgal-discuss] Linear cell complex: Segmentation fault while accessing vertex of a 2-cell, Pranav, 06/25/2015
- Re: [cgal-discuss] Linear cell complex: Segmentation fault while accessing vertex of a 2-cell, Guillaume Damiand, 06/25/2015
- Re: [cgal-discuss] Linear cell complex: Segmentation fault while accessing vertex of a 2-cell, Pranav, 06/25/2015
- Re: [cgal-discuss] Linear cell complex: Segmentation fault while accessing vertex of a 2-cell, Guillaume Damiand, 06/25/2015
Archive powered by MHonArc 2.6.18.