Subject: [Boost-bugs] [Boost C++ Libraries] #10642: polygon_set_data<int> bug with small coordinates
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-10-09 18:49:43
#10642: polygon_set_data<int> bug with small coordinates
---------------------------------------------+----------------------
Reporter: "Patrick LoPresti" <lopresti@â¦> | Owner: ljsimons
Type: Bugs | Status: new
Milestone: To Be Determined | Component: polygon
Version: Boost 1.56.0 | Severity: Problem
Keywords: |
---------------------------------------------+----------------------
The attached test program creates a small polygon with a hole and adds it
to a polygon_set_data<int>. The internal representation of the polygon set
is rather messed up, as you can confirm by calling .get() or
.get_trapezoids().
This test program demonstrates the bug by comparing the area of the
polygon to the area of a polygon set containing that single polygon. The
area of the polygon is correctly computed as 32; the area of the polygon
set is incorrectly computed as 30.
Doubling all coordinates avoids the bug.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10642> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC