Let's suppose I have the following shape:
I want to calculate its inner path by a given distance (let's say 200), what would be the best way to do it?
At the end I would like to get the gray shape (sorry for the bad sketch) :
I would start with
- translate the lines by the distance,
- increate the arcs's radius by the distance
- calculate all the intersections, then somehow (?) exclude the segments that won't be part of the new inner shape (like the bottom line in this example)
Is there any better (or simpler) way to do it?
Thanks