Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Bezier curve arrangement error

Subject: CGAL users discussion list

List archive

[cgal-discuss] Bezier curve arrangement error


Chronological Thread 
  • From: Gene <>
  • To:
  • Subject: [cgal-discuss] Bezier curve arrangement error
  • Date: Wed, 10 Mar 2010 10:06:09 -0800 (PST)


I'm testing the example program

examples/Arrangement_on_surface_2/Bezier_curves.cpp

using input:
--------
2
2 256 0 0 0
4 215 175 251 100 214 25 205 0
--------

I get the following exception:
--------
$ Bezier_curves test1.dat
B = {2 256 0 0 0}
B = {4 215 175 251 100 214 25 205 0}
terminate called after throwing an instance of 'CGAL::Assertion_exception'
what(): CGAL ERROR: assertion violation!
Expr: nt_traits.degree (*p_polyY) >= 0
File: /usr/include/CGAL/Arr_geometry_traits/Bezier_curve_2.h
Line: 767
Abort
--------

Note that the target point of the cubic curve is collinear with the
endpoints of the degree-1 curve. Is it significant?

Here is a similar example that does not throw an exception:
--------
2
2 256 0 0 0
4 56 144 37 94 96 21 118 0
--------
$ Bezier_curves test1.dat
B = {2 256 0 0 0}
B = {4 56 144 37 94 96 21 118 0}
The arrangement size:
V = 5, E = 4, F = 1
--------

What am I missing?

Thanks,
Gene
--
View this message in context:
http://n4.nabble.com/Bezier-curve-arrangement-error-tp1587812p1587812.html
Sent from the cgal-discuss mailing list archive at Nabble.com.


  • [cgal-discuss] Bezier curve arrangement error, Gene, 03/10/2010

Archive powered by MHonArc 2.6.16.

Top of Page