Re: [Boost-bugs] [Boost C++ Libraries] #10642: polygon_set_data<int> bug with small coordinates

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10642: polygon_set_data<int> bug with small coordinates
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-06 21:16:10


#10642: polygon_set_data<int> bug with small coordinates
----------------------------------------------+------------------------
  Reporter: "Patrick LoPresti" <lopresti@…> | Owner: asydorchuk
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: polygon
   Version: Boost 1.58.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------------------+------------------------

Comment (by asydorchuk):

 The issue is related to the integer grid snapping logic the Polygon uses
 to handle boolean ops. Basically, any edge of the polygon that has another
 vertex of a polygon located within an integer 1x1 square has a chance to
 be broken into two separate edges at that point. That is what happens in
 this case. One way of fixing it, is to scale polygon to make sure that it
 doesn't have vertices and edges in 1x1 grid proximity. The best solution
 would be to fix snapping implementation, however this requires too many
 changes to the large legacy code base. Thus, I am skipping this option,
 being a single maintainer.

 I am going to update the documentation that Polygon operations require
 sufficient proximity between polygon elements.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10642#comment:7>
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:18 UTC