Opened 7 years ago
#12145 new Bugs
boost::geometry::remove_spikes doesn't remove spike
| Reported by: | Owned by: | Barend Gehrels | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | geometry |
| Version: | Boost 1.60.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
In the following example, the fourth point is actually a spike. remove_spikes does not remove it.
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
namespace bg = boost::geometry;
int main()
{
typedef bg::model::point<double, 2, bg::cs::cartesian> point_t;
typedef bg::model::polygon<point_t> polygon_t;
polygon_t poly{ { { 0.08039, 0.08076 },{ 0.836, 2.343 },
{ 2.24, 1.874 },{ 1.452,-0.485 },{ 1.485, -0.3882 } } };
bg::correct(poly);
bg::remove_spikes(poly);
return 0
}
Note:
See TracTickets
for help on using tickets.
