I am working with planar geometric shapes, essentially a large collection of polygons, whose coordinates are stored as numerical arrays. I need to develop a generic algorithm that LINEARLY resizes a polygon (or basically any closed geometric shape) -- i.e. NOT scale it by a factor, but rather linearly enlarge (or shrink) the features by a given amount.
For example, assume a hollow rectangular polygon with "line width" of 1 cm that needs to be linearly resized by 0.1 cm. The end result would be a rectangular polygon with line width 1.2 cm.
Is there an existing python package that performs such resizing operation? Thank you for any suggestions!