Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Precondition violation in Bezier_x_monoton_2.h using Bezier arrangement

Subject: CGAL users discussion list

List archive

[cgal-discuss] Precondition violation in Bezier_x_monoton_2.h using Bezier arrangement


Chronological Thread 
  • From: Martin Uhrin <>
  • To:
  • Subject: [cgal-discuss] Precondition violation in Bezier_x_monoton_2.h using Bezier arrangement
  • Date: Fri, 25 Apr 2014 05:37:52 -0700 (PDT)

Dear CGAL communit,

I'm trying to use an Arrangement_2 with Arr_Bezier_curve_traits_2 but I'm
getting precondition violations [1] for some of my input points. I've
attached an example input [2] with 4 Bezier curves that is compatible with
the Arrangement_on_surface_2/Bezier_curves.cpp example.

In matplotlib language the polyline I'm trying to draw is given by:

(Path.MOVETO, (2.15, 1.425)),

(Path.CURVE4, (2.13333, 1.425)),
(Path.CURVE4, (2.125, 1.43333)),
(Path.CURVE4, (2.125, 1.45)),

(Path.CURVE4, (2.125, 1.46667)),
(Path.CURVE4, (2.13333, 1.475)),
(Path.CURVE4, (2.15, 1.475)),

(Path.CURVE4, (2.16667, 1.475)),
(Path.CURVE4, (2.175, 1.46667)),
(Path.CURVE4, (2.175, 1.45)),

(Path.CURVE4, (2.175, 1.43333)),
(Path.CURVE4, (2.16667, 1.425)),
(Path.CURVE4, (2.15, 1.425)),

Any help is much appreciated,
-Martin

[1]
terminate called after throwing an instance of
'CGAL::Precondition_exception'
what(): CGAL ERROR: precondition violation!
Expr: p.compare_xy (cv.right(), cache) != LARGER
File: /usr/include/CGAL/Arr_geometry_traits/Bezier_x_monotone_2.h
Line: 1049

[2] Bezier.dat
<http://cgal-discuss.949826.n4.nabble.com/file/n4659201/Bezier.dat>



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Precondition-violation-in-Bezier-x-monoton-2-h-using-Bezier-arrangement-tp4659201.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page