0

I drew a shape using Bezier tool. Then selected all parts of the shape and grouped them. enter image description here

Then I selected fill. But the shape did not get filled properly.

enter image description here

What did I do wrong?

1
  • You need to close the shape by connecting the paths --- I don't know Inkscape so I can't tell you how.
    – Scott
    Jun 25, 2023 at 6:09

1 Answer 1

3

Grouping won't work*.

The problem is that your shapes are made of multiple pieces, basically these are open paths. These won't fill properly because they aren't a cohesive shape - the fill will only apply to each piece separately, as they have open end nodes.

enter image description here

To ensure you make shapes that are closed paths, use the Bézier tool to draw a shape from start to finish, and make sure there are no open ends - the shape should form a single closed path - you can think of this like a loop. Place your last node over the first - the node handle should turn red as you mouse over it, click it, and this will create a closed path.

It's also possible to join* open path segments. Select all the pieces with the Select Tool S, and switch to the Edit Nodes tool N, click and drag to select all the nodes, and hit the Join Selected Nodes button in the control bar along the top. This is assuming of course that you have open end nodes which are close to each other.

enter image description here

*Note: Merely grouping separate pieces won't work here, nor will making combined/compound paths. The nodes have to be physically joined to form a closed path. Also this answer isn't just specific to Inkscape - all vector image editors work similarly. The details of how to join nodes/anchors will be different, but the concepts of open and closed paths are the same.

See this related answer which is for Adobe Illustrator. It's the same issue. Also Scott's answer on the same page goes into more detail.

3
  • Related: Bezier has some modes like Spiro, Bspline etc. Is there a short cut to shift between these modes?
    – kargirwar
    Jun 26, 2023 at 4:56
  • @kargirwar - It's not related. This question is about filling paths which are open versus closed. There is no shortcut for what you want as far as I know. Options for bspline or spiro paths are available the controls bar along the top when using the Bézier tool.
    – Billy Kerr
    Jun 26, 2023 at 6:43
  • Yeah, sorry. Was too lazy to ask another :-(
    – kargirwar
    Jun 26, 2023 at 9:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.