Boost C++ Libraries: Ticket #12145: boost::geometry::remove_spikes doesn't remove spike https://svn.boost.org/trac10/ticket/12145 <p> In the following example, the fourth point is actually a spike. <em>remove_spikes</em> does not remove it. </p> <pre class="wiki">#include &lt;iostream&gt; #include &lt;boost/geometry.hpp&gt; #include &lt;boost/geometry/geometries/geometries.hpp&gt; namespace bg = boost::geometry; int main() { typedef bg::model::point&lt;double, 2, bg::cs::cartesian&gt; point_t; typedef bg::model::polygon&lt;point_t&gt; 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 } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12145 Trac 1.4.3