Re: [Boost-bugs] [Boost C++ Libraries] #13098: geometry::touches return wrong result on two polygons

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13098: geometry::touches return wrong result on two polygons
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-10-12 11:01:20


#13098: geometry::touches return wrong result on two polygons
-------------------------------+-----------------------------
  Reporter: bruno.deligny@… | Owner: Barend Gehrels
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: geometry
   Version: Boost 1.63.0 | Severity: Problem
Resolution: | Keywords: polygon touches
-------------------------------+-----------------------------

Comment (by anonymous):

 Again with another test case

 {{{
 typedef boost::geometry::model::d2::point_xy<float> P;
 boost::geometry::model::polygon<P, false, false> polygon1, polygon2;

 boost::geometry::append(polygon1,
 boost::make_tuple(-4.483882904052734375,-4.51576709747314453125));
 boost::geometry::append(polygon1,
 boost::make_tuple(-4.483882904052734375,-0.747307300567626953125));
 boost::geometry::append(polygon1,
 boost::make_tuple(-8.14855480194091796875,-0.747307300567626953125));
 boost::geometry::append(polygon1,
 boost::make_tuple(-8.14855480194091796875,-4.51576709747314453125));

 boost::geometry::append(polygon2,
 boost::make_tuple(-4.483882904052734375,-4.51576709747314453125));
 boost::geometry::append(polygon2,
 boost::make_tuple(-8.14855480194091796875,-4.51576709747314453125));
 boost::geometry::append(polygon2,
 boost::make_tuple(-8.14855480194091796875,-0.747307300567626953125));
 boost::geometry::append(polygon2,
 boost::make_tuple(-4.483882904052734375,-0.747307300567626953125));
 boost::geometry::append(polygon2,
 boost::make_tuple(-3.029389858245849609375,-0.74730741977691650390625));
 boost::geometry::append(polygon2,
 boost::make_tuple(-14.33083057403564453125,0.830356121063232421875));
 boost::geometry::append(polygon2,
 boost::make_tuple(-14.33083057403564453125,-5.412969112396240234375));

 assert(boost::geometry::touches(polygon1, polygon2) == true);
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13098#comment:1>
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-10-12 11:07:20 UTC