[Boost-bugs] [Boost C++ Libraries] #13014: buffer returns invalid geometries when used with asymmetric distances on the same side

Subject: [Boost-bugs] [Boost C++ Libraries] #13014: buffer returns invalid geometries when used with asymmetric distances on the same side
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-05-08 09:20:46


#13014: buffer returns invalid geometries when used with asymmetric distances on
the same side
------------------------------+---------------------------
 Reporter: andre.meyer@… | Owner: barendgehrels
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: geometry
  Version: Boost 1.62.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------
 Using buffer with distances (2/-1) or (-1/2) should generate a polygon
 that lies beside the original linestring.

 But, since the direction is only determined for both sides (in
 buffer_inserter, checking negative() for the distance strategy, which
 returns only true if both sides are negative), the inner of both sides is
 calculated wrong.

 Maybe buffer_inserter could check nageative() for each side separately,
 and only reverse one side before stitching both sides together?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/13014>
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-05-08 09:23:56 UTC