Advertisement


How to subtract a shape from other shape on Inkscape?


Question

Like, I have this shape:

enter image description here

Which is all contour and no fill. And I want to subtract those contours from another, let's say a colored circle with a slightly bigger ratio, such that the design will look like this in the end:

enter image description here

Which is all fill (the colored parts of the former circle) and no contours.

And yet, when I try to subtract one from the other, the result is just a circle-sized hole in the colored circle. What am I doing wrong?!

1
9
10/6/2016 3:36:00 AM

Accepted Answer

Inkscape's Path > Difference only works on the fill areas of objects (no matter whether you filled them or not).

As Paolo commented, you have to convert the stroke to a filled object.

For a single line object

  1. Select the line and convert the stroke to a fill. Path > Stroke to path or Ctrl+Alt+C.

  2. Put the line above the circle. Select the line and the circle. Subtract. Path > Difference or Ctrl+-.

For multiple line objects

  1. Select the lines and ungroup them. Object > Ungroup or Ctrl+Shift+G.
    If you didn't use a group you don't have to do this. If you used multiple nested groups you have to do this multiple times until all lines are completely ungrouped.

  2. Convert strokes to fills. Path > Stroke to path or Ctrl+Alt+C.

  3. Unite the lines. Path > Union or Ctrl++.

  4. Put the lines above the circle. Select the lines and the circle. Subtract. Path > Difference or Ctrl+-.

2019/08/20
13
8/20/2019 7:19:00 AM