Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss]To understand half edge data structure

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss]To understand half edge data structure


Chronological Thread 
  • From: Laurent Rineau <>
  • To:
  • Subject: Re: [cgal-discuss]To understand half edge data structure
  • Date: Wed, 7 May 2008 16:04:38 +0200
  • Organization: Inria, Sophia Antipolis, FRANCE

On Wednesday 07 May 2008 14:57:42 samuel kim wrote:
> Hi Mathieu and Janssens,
>
> Thank you very much for your reply, I think you are right. So I tried it
> but an error coming out.
> When I run as the below,
>
> Halfedge_around_facet_circulator pHalfedge = pFacet->facet_begin();
> pHalfedge = pHalfedge->prev()->opposite();

It seems that you do not want to use pHalfedge as a circulator at all. If I
remember well, circulators are implicitly castable to handles, so the
following code should compile and run:

// The type of pHalfedge is Halfedge_handle,
// even if it is constructed from a circulator
Halfedge_handle pHalfedge = pFacet->facet_begin();
pHalfedge = pHalfedge->prev()->opposite();

Actually, instead of using pFacet->facet_begin(), you should use
pFacet->haldedge(), which is one arbitrary incident halfedge of the facet.

--
Laurent Rineau
INRIA - Sophia Antipolis
BP 93, 2004 Route des Lucioles
06902 Sophia Antipolis Cedex FRANCE
Tel: +33 4 92 38 78 62 (Fax: +33.4.97.15.53.95)



Archive powered by MHonArc 2.6.16.

Top of Page