Subject: CGAL users discussion list
List archive
- From: Stzpz <>
- To:
- Subject: Re: [cgal-discuss] How to remove edges from Bezier arrangement?
- Date: Mon, 14 Mar 2011 17:29:43 +0800
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=rqku4ZsVZSPMXCqgTYkQ4N2t3RR1lOAg/GNfHKA70MRKhdD9CSdg13SoFRnrRQP3pz Rf4JbKKsYRlQNpbY1YgIeqtxol3zf/6tx09CJxlFr629n5iSzBtunzlwMWYNgOpNkpHG jXE4+bDrX4A/hM6ZHISK/L+BaOO1jWmnJ35yc=
Thanks!
With this new code, the first call of remove_edges() works. But a precondition violation will appear when it is called for the second time. Is there something I missed?
Here is the information provided by CGAL. The attachment is the code.
CGAL error: precondition violation!
_expression_ : (_are_equal (he2->vertex(), cv, ARR_MIN_END) && _are_equal (he3->ve
rtex(), cv, ARR_MAX_END)) || (_are_equal (he3->vertex(), cv, ARR_MIN_END) && _ar
e_equal (he2->vertex(), cv, ARR_MAX_END))
File : D:\CGAL-3.7\include\CGAL/Arrangement_2/Arrangement_on_surface_2_imp
l.h
Line : 1788
Explanation: The endpoints of the merged curve must match the end vertices.
Thanks again!
Stzpz
2011/3/14 Sebastien Loriot (GeometryFactory) <sloriot.ml@gmail.com>
stzpz wrote:try with this:
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.
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.
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
Attachment:
test1.rar
Description: application/rar
- [cgal-discuss] How to remove edges from Bezier arrangement?, stzpz, 03/14/2011
- Re: [cgal-discuss] How to remove edges from Bezier arrangement?, Sebastien Loriot (GeometryFactory), 03/14/2011
- Re: [cgal-discuss] How to remove edges from Bezier arrangement?, Stzpz, 03/14/2011
- Re: [cgal-discuss] How to remove edges from Bezier arrangement?, Stzpz, 03/23/2011
- [cgal-discuss] CGAL in Eclipse (ubuntu), Fabio Casado Ruiz, 03/23/2011
- Re: [cgal-discuss] CGAL in Eclipse (ubuntu), Ophir Setter, 03/23/2011
- Re: [cgal-discuss] CGAL in Eclipse (ubuntu), Joachim Reichel, 03/26/2011
- [cgal-discuss] CGAL in Eclipse (ubuntu), Fabio Casado Ruiz, 03/23/2011
- Re: [cgal-discuss] How to remove edges from Bezier arrangement?, Stzpz, 03/23/2011
- Re: [cgal-discuss] How to remove edges from Bezier arrangement?, Stzpz, 03/14/2011
- Re: [cgal-discuss] How to remove edges from Bezier arrangement?, Sebastien Loriot (GeometryFactory), 03/14/2011
Archive powered by MHonArc 2.6.16.