1
0
mirror of git://projects.qi-hardware.com/cae-tools.git synced 2024-12-23 08:08:37 +02:00
Commit Graph

9 Commits

Author SHA1 Message Date
Werner Almesberger
385bd601a6 poly2d/p2d_attrib.c (p2d_is_cw): check that the angle isn't NaN
Been had by this a little too often ...
2015-01-19 02:59:43 -03:00
Werner Almesberger
155cfa3d44 poly2d/p2d_attrib.c (angle_3): prevent acos() domain errors
Rounding errors could push us slightly outside the [-1, 1] range, which
caused acos() to return NaN, which in turn broke p2d_is_cw, and eventually
tripped create_interior_skeleton_and_offset_polygons_with_holes_2.
2015-01-19 02:57:40 -03:00
Werner Almesberger
149fc262ff poly2d/: change license from GPLv2+ to LGPLv2.1+ 2015-01-18 20:45:44 -03:00
Werner Almesberger
7ca942d0e9 poly2d/p2d_attrib.c (angle_3): don't divide by zero ...
This broke p2d_is_cw which in turn tripped
CGAL::create_interior_skeleton_and_offset_polygons_with_holes_2
with the infamous

terminate called after throwing an instance of 'CGAL::Assertion_exception'
  what():  CGAL ERROR: assertion violation!
Expr: lParent
File: /usr/include/CGAL/arrange_offset_polygons_2.h
Line: 94
2015-01-18 20:27:26 -03:00
Werner Almesberger
05d3d50421 poly2d/p2d_attrib.c: correct line wrap in title comment (how did this get there ?) 2015-01-18 20:20:37 -03:00
Werner Almesberger
de7df0b41c poly2d/p2d_attrib.c (angle_3): put spaces around operators 2015-01-18 20:17:58 -03:00
Werner Almesberger
84f9d3c3b4 poly2d/p2d_attrib.c (p2d_no_intersect): don't test last vs. first segment
This one case slipped through. Surprisingly, it rarely produced a
complaint.
2015-01-18 09:09:43 -03:00
Werner Almesberger
cba417fc37 poly2d (p2d_is_cw, p2d_is_closed, p2d_no_intersect, p2d_vertices): use better types
There's more to the world than just "int" ...
2015-01-10 21:16:47 -03:00
Werner Almesberger
dfa85075e8 poly2d/: Yet another 2D polygon library (WIP) 2012-05-06 23:51:38 -03:00