: Create the centerline from an polygon I have a polygon and want to draw the centerline (i'm not sure if it is really the centerline, correct me if this is the wrong term...). I approximated
I have a polygon and want to draw the centerline (i'm not sure if it is really the centerline, correct me if this is the wrong term...).
I approximated this for an example drawing. I have the black polygon and want as result the red line.
Is there any workflow in inkscape to do this easily?
More posts by @Gonzalez368
2 Comments
Sorted by latest first Latest Oldest Best
I have found out that this is operation is called:
Straight skeleton
And many algorithms for this have been proposed. None of the current graphics design applications implement this function but it should not be too hard to do so if one needs to.
The best I can think of, is using offsets:
Select your polygon.
Path → dynamic offset (Ctrl + J).
Move the handle and see what happens.
If all “arms” of your object have the same width, there is one handle position which will give you what you want. Otherwise, each arm will be perfectly reduced at different handle positions. In this case, you can make one offset object for each case and combine them by hand (rather tedious, I know, but better than nothing).
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.