I would like to programmatically import an SVG (see top left) and process the offset of the concave outline, that are the outermost edges of the imported SVG (see top right). Finally I want to have the result like the image at the bottom.
The only part I stuck with is how to select the outermost edge loop programmatically via a script. Manually it works by 2xALT+RMB. But how to make the script know, which is the initial edge?
Is there a way to either
- Iterate over the curve data and just remove all inner elements,
- select the first outermost edge and firing 2xALT+RMB,
- preprocess the SVG to remove the inner elements or
- fill the inner holes and simplify the mesh again?