Advertisement


Fill enclosed path in Inkscape


Question

I'm having difficulties with a really basic concept in Inkscape. How do I fill an enclosed path that has a line going into it? I've combined the original two paths to form one path, but filling it doesn't actually fill it. The only way I can seem to get it to work are hacks like adding a background object filled with the right color. Here's an example of my issue:

enter image description here

2014/05/01
1
14
5/1/2014 7:30:00 AM

Accepted Answer

Once we had combined paths we may not be able to fill an an enclosed area as expected:

enter image description here

In the combined path above the line on the lower right will also be treated as a part of a filled area, leading to the filling artifact.

To overcome this we should apply fills on non-combined paths, or we have to break apart the objects before we apply the fill:

enter image description here

If this is not possible we may use the Bucket Fill tool (Shift + F7 ). This tool will create an additional filled object within an enclosed area (see also this question):

enter image description here

2017/04/13
11
4/13/2017 12:46:00 PM