Subject: CGAL users discussion list
List archive
- 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)
- [cgal-discuss]To understand half edge data structure (VERY IMPORTANT), (continued)
- [cgal-discuss]To understand half edge data structure (VERY IMPORTANT), samuel kim, 05/07/2008
- Re: [cgal-discuss]To understand half edge data structure (VERY IMPORTANT), Bart Janssens, 05/07/2008
- Re: [cgal-discuss]To understand half edge data structure (VERY IMPORTANT), Mathieu Brédif, 05/07/2008
- RE: [cgal-discuss]To understand half edge data structure, samuel kim, 05/07/2008
- Message not available
- Re: [cgal-discuss]To understand half edge data structure, Mathieu Brédif, 05/07/2008
- RE: [cgal-discuss]To understand half edge data structure, samuel kim, 05/07/2008
- Re: [cgal-discuss]To understand half edge data structure, Monique . Teillaud, 05/07/2008
- RE: [cgal-discuss]To understand half edge data structure, samuel kim, 05/07/2008
- RE: [cgal-discuss]To understand half edge data structure, samuel kim, 05/07/2008
- RE: [cgal-discuss]To understand half edge data structure, samuel kim, 05/07/2008
- Re: [cgal-discuss]To understand half edge data structure, Mathieu Brédif, 05/07/2008
- Message not available
- RE: [cgal-discuss]To understand half edge data structure, samuel kim, 05/07/2008
- [cgal-discuss]To understand half edge data structure (VERY IMPORTANT), samuel kim, 05/07/2008
- Re: [cgal-discuss]To understand half edge data structure, Laurent Rineau, 05/07/2008
Archive powered by MHonArc 2.6.16.