Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] How to extract edges of a mesh

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] How to extract edges of a mesh


Chronological Thread 
  • From: Manuel Caroli <>
  • To:
  • Subject: Re: [cgal-discuss] How to extract edges of a mesh
  • Date: Wed, 12 Aug 2009 17:39:42 +0200

Dear Morteza,

Morteza Romoozi wrote:
Hi
tanx for source code, but i could not run it.
i get som error such as ero in handle.h and
'finite_edges' : is not a member of 'CGAL::Constrained_Delaunay_triangulation_2<Gt>'
with
[
Gt=K
]
i'm useing CGAL 3.1.
Please help me again.
tanx
there is a small typo:

> [...]
/******* you can access the coordinates of edges like this
*******************************/
typedef CDT::Finite_edges_iterator FEit; typedef CDT::Edge Edge;
for
(FEit eit= cdt.finite_edges_begin(); eit!= cdt.finite_edges.end(); eit++
)
this line is supposed to go
(FEit eit= cdt.finite_edges_begin(); eit!= cdt.finite_edges_end(); eit++ )

{
Edge e= *eit;
Point s= e.first->vertex((e.second+1)%3)->point(),
t= e.first->vertex((e.second+2)%3)->point();
std::cout<<"s="<<s<<std::endl
<<"t="<<t<<std::endl;
}
/********************************************************************/
> [...]

best

Manuel



Archive powered by MHonArc 2.6.16.

Top of Page