Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Change in internal structure Arrangement_2

Subject: CGAL users discussion list

List archive

[cgal-discuss] Change in internal structure Arrangement_2


Chronological Thread 
  • From: Mateus Bellomo <>
  • To:
  • Subject: [cgal-discuss] Change in internal structure Arrangement_2
  • Date: Wed, 10 Feb 2016 22:47:00 -0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:hBuxIxO2LWmRnQ9u65ol6mtUPXoX/o7sNwtQ0KIMzox0KPj+rarrMEGX3/hxlliBBdydsKIbzbGN+Pq+EUU7or+/81k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZvIaytQ8iJ35vxjLv5ocObSj4LrQT+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf9d32JiKAHbtR/94sCt4MwrqHwI6Lpyv/JHBK71dqB9Qb1DByk9KEg04tfqvF/NV1ih/HwZB0AfjhdVGEDv4RX+WZL2+n//v/ZwxTKQMMnySrUzcTun5qZvDhTvjXFUZHYC7GjLh5ko3+pgqxW7qkknzg==

Hello all,

I would like to know if CGAL deallocate and allocate the internal structures (as vertices for example) as we use some functions in Arrangement_2.

I'm asking this because I want to iterate over Arrangement_2 vertices in a specific order so I've created a vector of Vertex pointer and push back to it as I was creating the Arrangement vertices. After that I've tried to iterate over this vector and I'm getting wrong information (and sometimes segmentation fault).

So I was wondering if CGAL deallocate this vertices created in the beginning and allocate it in somewhere else.

Thanks for the help.

PS: I already know the possibility of extending the Vertex class and add an index to it but I need to iterate over this vertices in the most efficient way (O(n)).





Archive powered by MHonArc 2.6.18.

Top of Page