Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss]Attach user data to the vertices of a Arrangement_2 during construction

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss]Attach user data to the vertices of a Arrangement_2 during construction


Chronological Thread 
  • From: Efi Fogel <>
  • To:
  • Subject: Re: [cgal-discuss]Attach user data to the vertices of a Arrangement_2 during construction
  • Date: Fri, 30 Mar 2007 12:49:37 +0200

You can use your own observer (derived from
CGAL::Arr_observer<Arrangement_2>). Look at face_extension.cpp to see
how it's done for faces.

Wang Weiwei wrote:

>Hi all,
>
>I'm using the Arrangement_2 module of CGAL.
>
>I want to attach some user information to the vertices of the arrangement.
>I've found some example code in the example folder of the CGAL lib (such as
>ex_dcel_extension.C).
>
>Unfortunately, in this example, the user data are attached to the vertices,
>halfedges and faces after the arrangement was built. What I want to know is
>how I can attach these user data to the vertices during the construction of
>the arrangement. For those vertices newly created during the intersection of
>the curves, a pre-specified default value will be ok.
>
>Thanks in advance for any help.
>
>Sorry for the previous message with the subject not correct.
>
>Max
>
>
--
____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/







Archive powered by MHonArc 2.6.16.

Top of Page