geometry icon indicating copy to clipboard operation
geometry copied to clipboard

Clarify polygon orientation requirement for buffer algorithm

Open kashish2710 opened this issue 2 months ago • 1 comments

This PR adds a note in the buffer documentation (under [heading Strategies]) to clarify that the buffer algorithm expects polygons to be counter-clockwise. If a polygon is clockwise, it should be reversed using:

boost::geometry::reverse(poly);

A link to the Polygon Concept is also provided for more details.

This helps users avoid confusion when using buffer with custom polygons. Related issue: #1375

kashish2710 avatar Dec 13 '25 15:12 kashish2710

Hi @ Boost Geometry team,

This PR adds a note under the [heading Strategies] section of the buffer documentation to clarify that the buffer algorithm expects polygons to be counter-clockwise. If a polygon is clockwise, it should be reversed using:

boost::geometry::reverse(poly);

A link to the Polygon Concept is also provided for more details.

This addresses issue #1375 and should help new users avoid confusion when using the buffer function with custom polygons.

Thank you for reviewing!

kashish2710 avatar Dec 13 '25 15:12 kashish2710

Thank you for the clarification and the reference.

Since the note I added is incorrect, I will close this PR. Thanks again for pointing this out.

kashish2710 avatar Dec 14 '25 12:12 kashish2710