1
0
mirror of git://projects.qi-hardware.com/cae-tools.git synced 2025-02-02 05:21:06 +02:00
Werner Almesberger 53fe70950d poly2d/: try to work around spurious aborts in CGAL::create_interior_skeleton_and_offset_polygons_with_holes_2
cameo encountered spurious aborts with the following message:

  terminate called after throwing an instance of 'CGAL::Precondition_exception
  what():  CGAL ERROR: precondition violation!
  Expr: is_simple_2(first, last, traits)
  File: /usr/include/CGAL/Polygon_2/Polygon_2_algorithms_impl.h
  Line: 420

These aborts come and go even if just the coordinate origin is slightly
changed. Setting CGAL_POLYGON_NO_PRECONDITIONS in p2d_area_holes.cpp
made them go away in some cases, but cameo could still run into an
assertion violation (in CGAL).

We now check all the polygons, outer boundary and holes, being sent to
CGAL::create_interior_skeleton_and_offset_polygons_with_holes_2 for
simplicity, and stop recursing if there is any hint of a problem.

This seems to avoid trouble for now, but the issue deserves further
investigation.
2012-08-22 13:50:19 -03:00
2010-09-29 13:56:50 -03:00
Description
CAE Tools, Small tools to assist Computer-Aided Engineering
http://projects.qi-hardware.com/index.php/p/cae-tools/
341 KiB
Languages
C 64.1%
Gnuplot 8.9%
Shell 5.2%
Makefile 5.1%
Perl 5%
Other 11.7%