Skip to main content
replaced deprecated tag 'geometry'
Link
Ricardo Andrade
  • 6.2k
  • 5
  • 42
  • 69
Source Link
timkado
  • 171
  • 1
  • 2

Shrink polygon to a specific area by offsetting

I have a 2D polygon that I want to shrink by a specific offset (A) to match a certain area ratio (R) of the original polygon. Is there a formula or algorithm for such a problem? I am interested in a simple solution for a triangle/quad but also a solution for complex polygons.

I attached an image for explanation. The original polygon is offset by A (equal-distant for each edge). A has to be chosen so that the new polygon has a specific area. In this example it should have half the area of the initial polygon.enter image description here