Mobile app version of vmapp.org
Login or Join
Gonzalez368

: 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

@Gonzalez368

Posted in: #Inkscape

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?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Gonzalez368

2 Comments

Sorted by latest first Latest Oldest Best

 

@Cugini998

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.

10% popularity Vote Up Vote Down


 

@Reiling762

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).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme