Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] [CGAL-DISCUSS] A compile error when define Halfedge_handle in the structure

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] [CGAL-DISCUSS] A compile error when define Halfedge_handle in the structure


Chronological Thread 
  • From: Samuel Hornus <>
  • To:
  • Subject: Re: [cgal-discuss] [CGAL-DISCUSS] A compile error when define Halfedge_handle in the structure
  • Date: Thu, 5 Jun 2008 15:16:55 +0200

On Jun 4, 2008, at 9:46 PM, samuel kim wrote:
Hi all,

I am programming on enriched_polyhedron.h and want to use a global structure defined as follows, but it produces an error when compiling because compiler does not recognize the Halfedge_handle. The below structure was declared out of classes in the header file of “enriched_polyhedron.h” to be used as a global.

struct FEATURE_III_DATA{

int curverindex; // current vertex index

int facetindex; // the index of facet having the normals

double binradius; // bin angle radius

Halfedge_handle pHalfedgehandle;

}
The structure being defined "out of class" you must tell the compiler what a Halfedge_handle is, and do so
in your structure (if I understand your problem correctly):

typedef Enriched_polyhedron<WithYourTemplateParameters>::Halfedge_handle Halfedge_handle;
Halfedge_handle pHalfedgehandle;

--
sam



Archive powered by MHonArc 2.6.16.

Top of Page