Advertisement


Outset small rectangle path in Inkscape without round distortion?


Question

This post: InkscapeForum.com • View topic - problem with path outset seems to suggest that "squared joins" are to blame, but here is an example showing the problem regardless:

Draw a straight line (using the Pen tool) with two nodes; make it some 22 units long, and set its stroke width to 2 px:

Inkscape-0.png

Then, do Path/Stroke to Path; set the fill of the new shape to None, and the stroke to black, 1 px:

Inkscape-1.png

This should now be a rectangular path (with nodes), not a rectangle object.

Finally, duplicate this path, and with the duplicate selected, call Path / Outset; the result is this:

Inkscape-2.png

As you can see, the outset is not rectangular anymore, but it has some weird roundings (I've selected it with the node tool so its nodes are visible - those are weirdly positioned to begin with). You can also see I've used "sqared join" stroke style all the time.

So, what can I do, to get an inset/outset in a case like this, such that if the input is made of straight lines (rectangular) - the output is made of straight lines (rectangular) as well?

2015/03/04
1
5
3/4/2015 3:42:00 PM

The inset/outset steps changes by 2.0 px (Inkscape preference default value) which is perfect while working for larger objects (not for the above example). When the same settings is used for small paths the outset & inset becomes distorted. To avoid this problem try decreasing the value in preferences-Steps-inset/outset by

Here's the same rectangle with outset applied,with inset/outset setting changed to 0.2px.

1.png

2015/03/04
4
3/4/2015 6:33:00 PM