Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

[cgal-discuss] Errors when get Facet_handle from Halfedge_around_facet_circulator


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

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




Archive powered by MHonArc 2.6.16.

Top of Page