Skip to Content.
Sympa Menu

cgal-discuss - Arrangement_2: assertion violation in Arr_traits_2/Bezier_bounding_rational_traits.h

Subject: CGAL users discussion list

List archive

Arrangement_2: assertion violation in Arr_traits_2/Bezier_bounding_rational_traits.h


Chronological Thread 
  • From: David Keller <>
  • To:
  • Subject: Arrangement_2: assertion violation in Arr_traits_2/Bezier_bounding_rational_traits.h
  • Date: Thu, 13 Sep 2007 10:53:11 +0200

Hello,

I'm encountering problems with the Arrangement_2 package for Bezier-curves. From the documentation it seems the failure has not to be expected (please give me a hint if I missed something). So I think it would be a good decision to either fix it or give a more detailed report for which input the code is supposed to work.

There are two scenarios for which errors occur. Both can be reproduced by calling the example application in example/Arrangement_2/Bezier_curves.cpp.

TEST CASE 1:
-------------------

Input:

3
3 0 0 1 1 13/9 1
3 13/9 1 2 1 2 -7/8
3 2 -7/8 2 -2 0 3

Output:

B = {3 0 0 1 1 13/9 1}
B = {3 13/9 1 2 1 2 -7/8}
B = {3 2 -7/8 2 -2 0 3}
CGAL error: assertion violation!
Expr: intersection_pairs.size() == 1
File: /opt/CGAL-3.3.1/include/CGAL/Arr_traits_2/Bezier_bounding_rational_traits.h
Line: 247
Explanation:
terminate called after throwing an instance of 'CGAL::Assertion_exception'
what(): CGAL ERROR: assertion violation!
Expr: intersection_pairs.size() == 1
File: /opt/CGAL-3.3.1/include/CGAL/Arr_traits_2/Bezier_bounding_rational_traits.h
Line: 247
Aborted

TEST CASE 2:
-------------------

Input:

2
3 0 0 8 2 0 4
3 4 0 0 2 4 4

Output:

B = {3 0 0 8 2 0 4}
B = {3 4 0 0 2 4 4}
CGAL error: assertion violation!
Expr: CGAL::compare(right[0].x(), right[1].x()) != EQUAL
File: /opt/CGAL-3.3.1/include/CGAL/Arr_traits_2/Bezier_bounding_rational_traits.h
Line: 378
Explanation:
terminate called after throwing an instance of 'CGAL::Assertion_exception'
what(): CGAL ERROR: assertion violation!
Expr: CGAL::compare(right[0].x(), right[1].x()) != EQUAL
File: /opt/CGAL-3.3.1/include/CGAL/Arr_traits_2/Bezier_bounding_rational_traits.h
Line: 378
Aborted


Thanks and kind regards,
David Keller



Archive powered by MHonArc 2.6.16.

Top of Page