Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] precorditions failure on joining 3 polygon_2s with 4 vertices each

Subject: CGAL users discussion list

List archive

[cgal-discuss] precorditions failure on joining 3 polygon_2s with 4 vertices each


Chronological Thread 
  • From: bobbens <>
  • To:
  • Subject: [cgal-discuss] precorditions failure on joining 3 polygon_2s with 4 vertices each
  • Date: Thu, 20 Sep 2012 02:40:55 -0700 (PDT)

Hello,


I'm not sure if I'm doing something wrong, but I am getting precondition
failures on attempting to join 4 different simple polygons with 4 vertices
each. I'm attaching the code to reproduce (must compile in debug mode) and a
visual representation of the four polygons. They are being joined as part of
a polygon set.

With CGAL 3.9 (Ubuntu 12.04) I get:

terminate called after throwing an instance of
'CGAL::Precondition_exception'
what(): CGAL ERROR: precondition violation!
Expr: cv.is_in_x_range (p)
File: /usr/include/CGAL/Arr_segment_traits_2.h
Line: 487

With CGAL 4.0 (Arch linux) I get:

terminate called after throwing an instance of
'CGAL::Precondition_exception'
what(): CGAL ERROR: precondition violation!
Expr: comp_f(object, parentP->object) != SMALLER
File: /usr/include/CGAL/Multiset.h
Line: 2128

So my main question is, am I doing something wrong? I was under the
impression that the join should work. This is part of a larger framework
that works on many other cases but seems to fail in this particular one. The
code for the minimal reproduction case is very simple as can be seen.

Thanks,


Edgar

poly_precond.cpp
<http://cgal-discuss.949826.n4.nabble.com/file/n4655881/poly_precond.cpp>
polygons.png
<http://cgal-discuss.949826.n4.nabble.com/file/n4655881/polygons.png>




--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/precorditions-failure-on-joining-3-polygon-2s-with-4-vertices-each-tp4655881.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page