c++ - Offsetting polygon using Boost Geometry API -
the boost polygon library states possible offset polygons(symmetrically ).but haven't found method in api or example of how .anyone can confirm boost geometry can it? have found question :
https://stackoverflow.com/questions/7668331/outline-of-a-polygon-in-boost seems asking similar question. please keep in mind libs polygon clipper can wonderfully point of interest in boost is fast , supports floats. help.
update: talking both boost geometry , polygons library because not sure 1 contains or lacks feature.
using boost geometry, function want called buffer. docs:
buffer
calculates buffer of geometry.
description
the free function buffer calculates buffer (a polygon being spatial point set collection within specified maximum distance geometry) of geometry.
http://www.boost.org/doc/libs/1_49_0/libs/geometry/doc/html/geometry/reference/algorithms.html
Comments
Post a Comment