Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] Using ranges in point set processing?
- Date: Tue, 3 May 2016 14:32:03 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:H+kjrRLFU9rOn6kLTtmcpTZWNBhigK39O0sv0rFitYgULPTxwZ3uMQTl6Ol3ixeRBMOAu6MC07Kd6PuocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC3oLvj6vpoNX6WEZhunmUWftKNhK4rAHc5IE9oLBJDeIP8CbPuWZCYO9MxGlldhq5lhf44dqsrtY4q3wD88QIrJEbFP2mN+RlFf0LRAghZms67cmuuRjYRhaU/VMdVH8Xm1xGGVvr9hb/C773vjH3v/E19iCQJ8y+GbkyVS6v5rwtRhbikiYvODM+9WzLkN1+halHpwiw4Rd4xtiHM8muKPNic/aFLpshTm1bU5MMDyE=
- Organization: GeometryFactory
A related question is if the CGAL Range concept
http://doc.cgal.org/latest/Circulator/classRange.html
is the way it should be, or if it has design flaws.
andreas
On 03/05/2016 14:26, Simon Giraudot wrote:
Hi everybody,
The CGAL Point Set Processing package provides the user with many
algorithms, most of them using the following API:
template <typename Iterator, [...]>
void algorithm (Iterator begin, Iterator end, [...] )
The first 2 arguments are iterators that indicate where to begin and
where to stop and, in my opinion, could be easily replaced by anything
following a Range concept (
http://doc.cgal.org/4.7/Circulator/classRange.html ). It seems to me
that calling these functions always comes to doing
"algorithm(range.begin(), range.end(), ...)", so having a range-based
API "algorithm (range, ...)" would be simpler and equally generic.
Is there a good reason (other than historical) why this is not how the
API of Point Set Processing works? If not, do you think it would be
reasonable to change it this way? (provided we also keep the
iterator-based version for backward compatibility)
Thanks,
- [cgal-discuss] Using ranges in point set processing?, Simon Giraudot, 05/03/2016
- Re: [cgal-discuss] Using ranges in point set processing?, Andreas Fabri, 05/03/2016
- Re: [cgal-discuss] Using ranges in point set processing?, Frédérik Paradis, 05/04/2016
- Re: [cgal-discuss] Using ranges in point set processing?, Marc Glisse, 05/04/2016
- Re: [cgal-discuss] Using ranges in point set processing?, Simon Giraudot, 05/04/2016
- Re: [cgal-discuss] Using ranges in point set processing?, Andreas Fabri, 05/03/2016
Archive powered by MHonArc 2.6.18.