Subject: CGAL users discussion list
List archive
- From: Mahmood Naderan <>
- To: CGAL discuss <>
- Subject: VC8.0 runs differentlly from VC7.0 in my code
- Date: Tue, 22 Apr 2008 23:27:41 -0700 (PDT)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=AKw6Gk8i1H5XzaIR0inpWXoiG6HQtdBZSy/nkblbH/MJeJOWg+fjJsdqRdMReSqfnYsktKUr/cKIrcsV0oPmP4OiQCJLh+GFb55s0VPGoykhWQERggYNLodKdSdHSgn7GpDkyCz1Gu0SpT5JCn1bF8WdWswWDaBsYHOobtyDn2U=;
Hi,
I have found that this piece of my code runs without error in VC7.0 but not in VC8.0!!
// As the polygon is convex, the dilated arcs we have computed should
// intersect and form a hole that whose boundary is the deflated polygon.
// We therefore construct an arrangement of the dilated arcs.
Arrangement_2 arr;
insert_curves (arr, arcs.begin(), arcs.end());
// Collect all arcs along the boundary of the hole in the unbounded face.
typename Arrangement_2::Face_const_handle uf = arr.unbounded_face();
typename Arrangement_2::Hole_const_iterator holes_it = uf->holes_begin();
typename Arrangement_2::Ccb_halfedge_const_circulator
ccb_uf = *holes_it;
while (ccb_uf->twin()->face() == uf)
{
++ccb_uf;
CGAL_assertion (ccb_uf != *holes_it);
}
It is strange, because no matter how arr is formed, there is no CGAL_assertion in VC7.0 and the loop
runs only once, but when I run it in VC8.0, the first round of loop is done witout problem but as the loop enters for second round (which must not) CGAL_assertion generates an error. Why loop runs twice in VC8.0??!!
Mahmood Naderan
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
- VC8.0 runs differentlly from VC7.0 in my code, Mahmood Naderan, 04/23/2008
Archive powered by MHonArc 2.6.16.