Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] How to remove edges from Bezier arrangement?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] How to remove edges from Bezier arrangement?


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] How to remove edges from Bezier arrangement?
  • Date: Mon, 14 Mar 2011 09:36:44 +0100

stzpz wrote:
I am trying to remove some edges from the Bezier arrangement using the
attached code ( http://cgal-discuss.949826.n4.nabble.com/file/n3353253/test1.rar test1.rar ), but it won't compile. Could anyone tell me how to solve it?

Thanks so much!

Stzpz



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/How-to-remove-edges-from-Bezier-arrangement-tp3353253p3353253.html
Sent from the cgal-discuss mailing list archive at Nabble.com.

try with this:

Arrangement_2::Edge_iterator tmp_it=iter;
++iter;
remove_edge(arr, tmp_it);

I know this is not compact but Edge_iterator inherits from a type I_Filtered_iterator where operator++(int) is defined.
Thus iter++ is not an Edge_iterator but its base class.

We will try to correct this directly in CGAL.

S.




Archive powered by MHonArc 2.6.16.

Top of Page