Skip to content

How to correctly buffer convex polygon? #1019

Answered by awulkiew
Jihadist asked this question in Q&A
Discussion options

You must be logged in to vote

AFAIU the number of points of a buffer is not guaranteed. point_xxx strategies are used for buffer of a single point and multi-points so they won't help here. Join strategies are used at vertices so I think you need to use boost::geometry::strategy::buffer::join_miter instead of join_round. If there are still too many points in the result you could e.g. use simplify() to get rid of the points lying on straight parts.

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@barendgehrels
Comment options

@barendgehrels
Comment options

@vissarion
Comment options

@barendgehrels
Comment options

@vissarion
Comment options

Answer selected by Jihadist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants