Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: Bezier curve arrangement error


Chronological Thread 
  • From: Gene <>
  • To:
  • Subject: [cgal-discuss] Re: Bezier curve arrangement error
  • Date: Wed, 1 Dec 2010 10:28:46 -0800 (PST)


Thanks, using version 3.7, the error no longer appears. However, this
example came from a larger data set that gives a different error
now--one which is harder to localize. Therefore, I have included the
larger dataset along with a new test program.

The error I get is:
--------
terminate called after throwing an instance of
'CGAL::Precondition_exception'
what(): CGAL ERROR: precondition violation!
Expr: ! _predP->is_valid() || comp_f(object, _predP->object) != SMALLER
File: /usr/local/include/CGAL/Multiset.h
Line: 2142
Abort
--------

The error only appears if I load the curves using the iterator version
of `insert'. When I load the curves one at a time, it USUALLY works,
but sometimes I get the following error:
--------
terminate called after throwing an instance of 'CGAL::Assertion_exception'
what(): CGAL ERROR: assertion violation!
Expr: CGAL::compare (pt_org->point_bound().t_max,
ps_org->point_bound().t_min) == SMALLER
File: /usr/local/include/CGAL/Arr_geometry_traits/Bezier_x_monotone_2.h
Line: 2564
Abort
--------

When this error appears, it is not attached to a specific point, but
it may appear at different times during loading. Obviously, it's
disturbing that it only appears sometimes and not all the time.

http://cgal-discuss.949826.n4.nabble.com/file/n3067817/test_curve2.cpp
test_curve2.cpp
http://cgal-discuss.949826.n4.nabble.com/file/n3067817/curves.dat curves.dat
http://cgal-discuss.949826.n4.nabble.com/file/n3067817/arr_print.h
arr_print.h
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Bezier-curve-arrangement-error-tp3066254p3067817.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page