Subject: CGAL users discussion list
List archive
- From: Efi Fogel <>
- To:
- Subject: Re: [cgal-discuss] Extending Arrangement_2 and storing Face handles
- Date: Tue, 20 Mar 2012 18:21:16 +0200
Why not extend only the halfedge type with a double? This double is associated with the incident face and the target vertex.
On Tue, Mar 20, 2012 at 5:23 PM, Winnie Hellmann <> wrote:
> I'm currently trying to extend the DCEL of Arrangement_2: each vertex needsI had a similar problem with triangulations where the only solution was
> to store a value
to write my own vertex type. Unfortunately, the vertex types of
arrangements can not access the DCEL, such that this approach would not
work. Maybe you can try to write your own DCEL class in which you pass
the face type as a template parameter to the vertex type.
I don't know what the data is for, but this approach definitely has the
> std::vector< std::pair<Face_const_handle, double> > data;
disadvantage that you might need to update all vertices as soon as a
face has changed. This makes inserting in your arrangement very
expensive. You could instead use a map to store the values.
Best regards,
Winnie
--
PGP key: http://www.winniehell.de/0xA8FE4F09.pub.asc
- [cgal-discuss] Extending Arrangement_2 and storing Face handles, D Weterings, 03/19/2012
- Re: [cgal-discuss] Extending Arrangement_2 and storing Face handles, Winnie Hellmann, 03/20/2012
- Re: [cgal-discuss] Extending Arrangement_2 and storing Face handles, Efi Fogel, 03/20/2012
- [cgal-discuss] Re: Extending Arrangement_2 and storing Face handles, D Weterings, 03/20/2012
- Re: [cgal-discuss] Extending Arrangement_2 and storing Face handles, Winnie Hellmann, 03/20/2012
Archive powered by MHonArc 2.6.16.