Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] question on splitting edges

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] question on splitting edges


Chronological Thread 
  • From: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss] question on splitting edges
  • Date: Mon, 16 Jun 2008 09:13:12 +0200


Hello Bill,

what you might do is to copy the edges you want to split
into a container and then just split them.

The behaviour of an iteration over the edges as they are stored in the
datastructure itself interlaced with operations modifying the datastructure
depends too much on how they are stored.

andreas


Bill Conan wrote:
hello Pierre,

thank you very much for your reply. but i don't want to make things
complicated. i just need to split each edge into two.

so here is my understanding: if i split an edge e into e1 and e2,

then e1 will be at the same location in the edge list as the edge e is,

and e2 will be added to the end of the list.

so if i write the code as this

enditer=edge.end();
for(edgeiter=edge.begin();edgeiter<enditer;++edgeiter)
{
split edgeiter;

// will edgeiter become null here?
}

i'll be fine (the code will not loop forever). am i right?

thank you very much.




Archive powered by MHonArc 2.6.16.

Top of Page