-
Hi, I wanna to buffer a polygon. I tried boost::geometry::strategy::buffer::point_square and point_circle but there is no difference. What I do wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
AFAIU the number of points of a buffer is not guaranteed. |
Beta Was this translation helpful? Give feedback.
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 useboost::geometry::strategy::buffer::join_miter
instead ofjoin_round
. If there are still too many points in the result you could e.g. usesimplify()
to get rid of the points lying on straight parts.