Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: facet iterator in LIFO order

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: facet iterator in LIFO order


Chronological Thread 
  • 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 !=
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.
Have a look at boost::reverse_iterator

documented here:
http://www.boost.org/doc/libs/1_44_0/libs/iterator/doc/reverse_iterator.html


S.





Archive powered by MHonArc 2.6.16.

Top of Page