Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] Re: facet iterator in LIFO order
- Date: Thu, 14 Oct 2010 10:02:08 +0200
- Organization: GeometryFactory
Hi Vanimurarka,
There is one thing you should keep in mind: If you observe
a certain pattern/behaviour like "order of facets", if it
is not documented, you have no guarantee that a future
release does not change it. This is not a hypothetical
statement : We had such a change for the triangulations,
where you can insert a range of points. From one release
to another we internally reordered them, which broke code
of users who before exploited that we did not order.
Bottomline: only rely on the spec ( = Reference Manual)
Best regards,
andreas
On 14/10/2010 08:19, Sebastien Loriot (GeometryFactory) wrote:
vanimurarka wrote:
It seems doing for ( Facet_iterator f = model.facets_end(); f !=Have a look at boost::reverse_iterator
model.facets_begin(); ++f)
or
for ( Facet_iterator f = model.facets_end(); f !=
model.facets_begin(); --f)
instead of for ( Facet_iterator f = model.facets_begin(); f !=
model.facets_end(); ++f)
will make it LIFO?
Just something that struck me after sending the previous mail.
documented here:
http://www.boost.org/doc/libs/1_44_0/libs/iterator/doc/reverse_iterator.html
S.
- [cgal-discuss] facet iterator in LIFO order, vanimurarka, 10/13/2010
- [cgal-discuss] Re: facet iterator in LIFO order, vanimurarka, 10/13/2010
- Re: [cgal-discuss] Re: facet iterator in LIFO order, Sebastien Loriot (GeometryFactory), 10/14/2010
- Re: [cgal-discuss] Re: facet iterator in LIFO order, Andreas Fabri, 10/14/2010
- Re: [cgal-discuss] Re: facet iterator in LIFO order, Sebastien Loriot (GeometryFactory), 10/14/2010
- [cgal-discuss] Re: facet iterator in LIFO order, vanimurarka, 10/13/2010
Archive powered by MHonArc 2.6.16.