[Boost-bugs] [Boost C++ Libraries] #12347: linestring and polygon intersection wrong answer

Subject: [Boost-bugs] [Boost C++ Libraries] #12347: linestring and polygon intersection wrong answer
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-07-23 19:07:02


#12347: linestring and polygon intersection wrong answer
-------------------------------------------------+-------------------------
 Reporter: Anton Kovalev <anton.kovalev.239@…> | Owner:
     Type: Bugs | barendgehrels
Milestone: To Be Determined | Status: new
  Version: Boost 1.60.0 | Component: geometry
 Keywords: linestring, polygon, intersection | Severity: Problem
-------------------------------------------------+-------------------------
 LINESTRING(1 -1, 1 0, 1 1) and POLYGON((0 0, 0 2, 2 2, 2 0, 1 0, 0 0))
 intersection is
 LINESTRING(1 -1, 1 0, 1 1) for integer coordinate type. Test code is
 attached.

 I beleive that's because of middle point of ((1 -1), (1, 0)) segment is
 (1, 0) :(

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12347>
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:20 UTC