Skip to Content.
Sympa Menu

cgal-discuss - RE: [cgal-discuss] Errors when get Facet_handle from Halfedge_around_facet_circulator

Subject: CGAL users discussion list

List archive

RE: [cgal-discuss] Errors when get Facet_handle from Halfedge_around_facet_circulator


Chronological Thread 
  • From: "samuel kim" <>
  • To: <>
  • Subject: RE: [cgal-discuss] Errors when get Facet_handle from Halfedge_around_facet_circulator
  • Date: Fri, 25 Apr 2008 18:21:45 +0200
  • Organization: Purdue

Dear Sebastien and Mathieu,

Now it works. I was so stupid. Thank you very much.

Samuel

-----Original Message-----
From: Sebastien Loriot
[mailto:]

Sent: Friday, April 25, 2008 5:44 PM
To:

Subject: Re: [cgal-discuss] Errors when get Facet_handle from
Halfedge_around_facet_circulator

maybe opposite() instead of oposite()....

On Friday 25 April 2008 05:24:09 pm samuel kim wrote:
> Hi all,
>
> I need you help to solve this problem. I want to travel half-edges of 3D
> model using Halfedge_around_facet_circulator. When traveling the Halfedge,
> I want to get Facet_handle of the facet in the next opposite direction of
> Halfedge. I wrote source code as the below, but errors are coming out
> saying "error C2039: 'oposite' : is not a member of
> CGAL::HalfedgeDS_in_place_list_halfedge<HalfedgeBase>'".
>
> Anybody knows to how to solve this problem? I am using the data structure
> from"enriched_polyhedron.h" Thank you for your all attention.
>
>
> Facet_iterator pFacet = facets_begin();
> Halfedge_around_facet_circulator pHalfedge = pFacet->facet_begin();
> Facet_handle hf_new;
> int index=0;
>
> do{
> hf_new = pHalfedge->next()->oposite()->facet(); // get Facet_handle
> from Halfedge
> hf_new->tag(1); // set tag number on the facet
> pFacet = hf_new; // take the new Facet_iterator from Facet_handle
> pHalfedge = pFacet->facet_begin(); // start the new facet
> index++;
> }while(index != 10);
>
>
> Samuel


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