mcontim / GeoGrids.jl

MIT License
1 stars 0 forks source link

Support expanding polygons by moving each its segment `d` towards the outer normal #3

Open disberd opened 1 month ago

disberd commented 1 month ago

Expanding polygons is probably best done expanding each segment towards the direction of its outer normal (the normal towards the OUTSIDE of the polygon) by a given length/distance d.

See this link for some reference: https://stackoverflow.com/questions/54033808/how-to-offset-polygon-edges

And this other for more complex scenarios which might be worth considering in the future: https://stackoverflow.com/questions/1109536/an-algorithm-for-inflating-deflating-offsetting-buffering-polygons

mcontim commented 3 weeks ago