[Boost-bugs] [Boost C++ Libraries] #7462: geometry::union_ yields degenerated results

Subject: [Boost-bugs] [Boost C++ Libraries] #7462: geometry::union_ yields degenerated results
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-10-02 22:26:25


#7462: geometry::union_ yields degenerated results
---------------------------------------+------------------------------------
 Reporter: Danvil <danvil@…> | Owner: barendgehrels
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: geometry
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: |
---------------------------------------+------------------------------------
 The following data gives wrong results with geometry::union.


 {{{
 float data1[][2] = {{0,0}, {-0.3681253195,0.9297761917},
 {2.421203136,2.034152031}, {2.789328575,1.104375958}, {0,0}};
 float data2[][2] = {{2.76143527,1.093332171}, {2.076887131,1.822299719},
 {4.263789177,3.875944376}, {4.948337555,3.146976948},
 {2.76143527,1.093332171}};

 polygon_t p1, p2;
 boost::geometry::append(p1, data1);
 boost::geometry::append(p2, data2);

 std::vector<polygon_t> output;
 boost::geometry::union_(p1, p2, output);

 }}}

 Please find attached the whole main file and program output.

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