Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] An error with the Arrangement_2 package

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] An error with the Arrangement_2 package


Chronological Thread 
  • From: Ophir Setter <>
  • To:
  • Subject: Re: [cgal-discuss] An error with the Arrangement_2 package
  • Date: Sat, 21 Mar 2009 11:30:24 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=h5ViQiYwatdFvDtQeWZkxSkSZTPnew3uUAP57RrHcy2Nn9PKRx5W1kQQGbb+/hlby8 p0c/xop3PbEUeXvISryXjW3zJ9iT1+Mv5lyS0rNL+i5PQztZ0u3nu6QCGI0wPeqyeQbM VYQMtpAgIdUhZVVrvihEG4o3N0hdtu5fEPOTQ=

You need to use the function:
Halfedge_around_vertex_circulator v.incident_halfedges ()
http://www.cgal.org/Manual/3.4/doc_html/cgal_manual/Arrangement_on_surface_2_ref/Class_Arrangement_2-Traits-Dcel---Vertex.html#Cross_link_anchor_1022

On Fri, Mar 20, 2009 at 7:30 PM, BARKI <> wrote:
Hello,

I am using the Arrangement_2 package of CGAL 3.4 release (with Visual C++ 2005
under Windows XP SP3). In a function, i am searching for the vertex associated
to a particular input point . I iterate through all the vertices of the
arrangement and found that vertex. Here i am not using the point location
strategies because i'm sure that the searched point is associated to a vertex
of the arrangement. But when i try to access the incident halfedge via the
member function halfegde:

Vertex_const_iterator vit; // The found vertex
Halfedge* h = vit->halfedge();

I have the follwing error:
Error   6       error C2248:
'CGAL::Arrangement_on_surface_2<GeomTraits_,TopTraits_>::Vertex::halfedge' :
cannot access private member declared in class
'CGAL::Arrangement_on_surface_2<GeomTraits_,TopTraits_>::Vertex'
c:\source code\my_code.h        506

In my function, i am trying to obtain the face whose outer ccb contains the
vertex i am searching. So i must find the halfedge incident to the vertex
(since the Vertex type does not offer a direct mean to obtain that facet) and
then use the face() member function of the incident halfedge to get the face i
am seraching for.

Thnaks in advance for your help.
Hichem Barki
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss




Archive powered by MHonArc 2.6.16.

Top of Page