id summary reporter owner description type status milestone component version severity resolution keywords cc 10640 boost geometry buffer algorithm and counterclockwise polygons dopamine@… Barend Gehrels " the buffer algorithm does not seem to work (the result multipolygon is always empty) if the input model::polygons are defines as counterclockwise. test code (adapted from the buffer documentation): {{{ #include #include #include int main() { typedef double coordinate_type; typedef boost::geometry::model::d2::point_xy point; //counterclockwise typedef boost::geometry::model::polygon polygon; const double buffer_distance = 1.0; const int points_per_circle = 36; boost::geometry::strategy::buffer::distance_symmetric 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 result; boost::geometry::model::multi_polygon 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<<""result size = ""<