Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] alphashapes edges into file

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] alphashapes edges into file


Chronological Thread 
  • From: Manuel Caroli <>
  • To:
  • Subject: Re: [cgal-discuss] alphashapes edges into file
  • Date: Wed, 06 Aug 2008 16:14:46 +0200

Hi Andi,

edges are represented as a triple of a cell and two indices determining two vertices in this cell. Thus they don't contain any functionality on their own.

The easiest solution that comes to my mind is to get the two points from the edge:
Point p = (*it).first->vertex((*it).second)->point();
Point q = (*it).first->vertex((*it).third)->point();

and then output them in whatever format you want.

Hope this helps

Manuel



wrote:
Hello,
I have a set of points and use alphashapes to get the boundary of these
points.

as.get_alpha_shape_edges(std::back_inserter(edges),
Alpha_shape_3::SINGULAR);

But how can I write the edges into a file that I can have look on them in
grass
gis for example?


for(it = edges.begin(), it != edges.end(); ++it)
{
cout << *it << endl;
}

does not work.

Does anybody know how to do it??

Thanks

Andi




Archive powered by MHonArc 2.6.16.

Top of Page