Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] incident_edges?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] incident_edges?


Chronological Thread 
  • From: "Angelo Tardugno" <>
  • To:
  • Subject: Re: [cgal-discuss] incident_edges?
  • Date: Mon, 10 Mar 2008 15:27:06 +0000
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=SNvZwqk2xRClEdZjOrOX06naLngk80/PPOa+4gyaJvTLWi7mnARPgeYidvN3Cj0gigjzQkTqajII3zc0GK9nAl/CErJwPJMqQ7pyIFp7kw8wLBwAAtMTrC+c0bwhIJ+8KrekgHE5ra+5Pd/I01Y2lTdkQ6LJk64yYrJLanvOnhQ=

Soeey about not mentioning the original discussion, I thought it would have been attached automatically, my mistake. Anyway, thanks for your answer I'll try it now and maybe come back to you if I get problems.

Cheers

Angelo

On Mon, Mar 10, 2008 at 3:17 PM, Manuel Caroli <> wrote:
Dear Angelo,

first of all: it would have been nice to mention that the discussion
you're referring to dates back to October 2007 ;-)

wrote:
> I'm dealing with the same problem but I didn't get the methond Andreas has proposed.
> What's the thing about checking in a set<Vertex_handle>?
For each cell incident to your vertex v, you visit all three incident
edges. Thus you would output each edge several times (once from each
incident cell), which you probably don't want to do...

> So far I've managed to retrieve the incident cells but I'm wondering how I can visit the edges.
 > the vertex v is fixed but how can I determine the other vertices?
 > I understood that I can get the edges providing the indices of the
vertices (0,1,2,3)

Assume we consider cell c.
You get the index of v by v_ind = c->index(v).
So the three edges you get from c are the triples
       (c, v_ind, ((v_ind+i)%4) )
with i\in {1,2,3}

 > how can I get these indices from a vertex handle?
In general: use the Cell_handle::index(int) method as shown above.
>
The idea of the std::set<Vertex_handle> is to store the respective
vertex c->vertex((v_ind+i)%4) in the set and before returning an edge,
check whether the second vertex of that edge is contained in the set
(which means you have this edge already)

> Thanks for your help
Please ask again if I wasn't clear enough...

Best

Manuel
--
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