Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Using Alpha_shape_3::filtration()

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Using Alpha_shape_3::filtration()


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Using Alpha_shape_3::filtration()
  • Date: Tue, 12 Nov 2013 16:47:47 +0100
  • Organization: GeometryFactory

On 11/12/2013 03:00 PM, hidding wrote:
Hi,

I'm trying to compute persistence diagrams from Alpha-shapes. I used the
example code from the manual on Alpha_shape_3, and then output the entire
filtration (for use with the "phat" library) using the
Alpha_shape_3::filtration() method. However I don't completely understand
how this method accesses the OutputIterator. The alpha_shape_3 header file
contains the following line:
at /usr/include/CGAL/Alpha_shape_3.h:978
978 it++ = make_object(vh);

This complicates the writing of an output iterator in two ways. Having to
define the post-fix (++) operator seems unnecessary, and even then it should
be "*it++" instead. Is this a bug? Does anyone have a working example to get
this job done?
It's a bug. It is missing the star. I have already fixed it and will be in the next release of CGAL.

In the meantime, you can add the *.

Sebastien.


I'm using version 4.2 of CGAL, shipped with Ubuntu 13.10.

Thanks, Johan




--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Using-Alpha-shape-3-filtration-tp4658389.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.18.

Top of Page