Boost C++ Libraries: Ticket #10640: boost geometry buffer algorithm and counterclockwise polygons https://svn.boost.org/trac10/ticket/10640 <p> the buffer algorithm does not seem to work (the result multipolygon is always empty) if the input model::polygons are defines as counterclockwise. </p> <p> test code (adapted from the buffer documentation): </p> <pre class="wiki">#include &lt;boost/geometry.hpp&gt; #include &lt;boost/geometry/geometries/point_xy.hpp&gt; #include &lt;boost/geometry/geometries/geometries.hpp&gt; int main() { typedef double coordinate_type; typedef boost::geometry::model::d2::point_xy&lt;coordinate_type&gt; point; //counterclockwise typedef boost::geometry::model::polygon&lt;point,false&gt; polygon; const double buffer_distance = 1.0; const int points_per_circle = 36; boost::geometry::strategy::buffer::distance_symmetric&lt;coordinate_type&gt; distance_strategy(buffer_distance); boost::geometry::strategy::buffer::join_round join_strategy(points_per_circle); boost::geometry::strategy::buffer::end_round end_strategy(points_per_circle); boost::geometry::strategy::buffer::point_circle circle_strategy(points_per_circle); boost::geometry::strategy::buffer::side_straight side_strategy; boost::geometry::model::multi_polygon&lt;polygon&gt; result; boost::geometry::model::multi_polygon&lt;polygon&gt; mpol; //points reversed to get a positive area() boost::geometry::read_wkt("MULTIPOLYGON(((0 1,5 3,2 5,0 1)),((1 1,5 0,5 2,1 1)))", mpol); boost::geometry::buffer(mpol.front(), result, distance_strategy, side_strategy, join_strategy, end_strategy, circle_strategy); //always zero std::cerr&lt;&lt;"result size = "&lt;&lt;result.size()&lt;&lt;std::endl; return 0; } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10640 Trac 1.4.3 awulkiew Tue, 24 Mar 2015 01:24:41 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/10640#comment:1 https://svn.boost.org/trac10/ticket/10640#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.58.0</span> </li> </ul> Ticket bruno.nascimento@… Fri, 22 May 2015 11:32:18 GMT <link>https://svn.boost.org/trac10/ticket/10640#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10640#comment:2</guid> <description> <p> what if they are clock wise? </p> </description> <category>Ticket</category> </item> </channel> </rss>