Fill in Open Paths - Known Issue?

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
Mish
Posts: 10
Joined: Sat Feb 11, 2012 12:16 pm
Location: 19.115327,72.858437

Fill in Open Paths - Known Issue?

Postby Mish » Thu Mar 08, 2012 1:57 pm

This is something I noticed while drawing in Inkscape. I have a shape which has an inner and an outer boundary. I wanted to edit the outer boundary so I broke the outer path to add more lines in between. However I noticed that drawing using :tool_pencil: messed up somehow with the fill. But the thing is it happens only with that particular node. Continuing from the lower node doesn't give me the problem. I have made a video to explain what I mean exactly. Now I cannot figure out how to embed videos over here ([youtube] or object tags don't work for some reason) so I'm going to post the URL.

http://youtu.be/nnHkgak9w9M

(If you havent heard about youtu.be then this http://mashable.com/2009/12/21/youtu-be/)

So I want to know if this is a known issue. Not that it requires some urgent attention, just saying.

(SVG in attachment)
Attachments
QA -3 Tweak +.svg
(90.65 KiB) Downloaded 221 times

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Fill in Open Paths - Known Issue?

Postby brynn » Fri Mar 09, 2012 5:49 pm

Image
Welcome to InkscapeForum!

Hhhm, that is very interesting! I'm not sure if it's a bug or not. I'll check out Launchpad in a few minutes.

I'm not sure exactly what steps you've taken, or in what order, as you've drawn this. I can stop the problem from occurring by selecting the hair object and clicking the Even-Odd Fill Rule button in Fill and Stroke dialog (roughly heart-shaped with a hole in it, top right corner of Fill tab). Then no matter which node you start to draw, the face doesn't get covered up.

What I can't figure out, is how the hair object exists as a compound path with 2 subpaths (generally concentric circles) and the center isn't filled, while the fill rule is still Non-Zero. And if you draw from the lower left node, the center remains not filled. But if you draw from the upper node, the center gets filled (as I would expect either way).

It might have something to do with the direction of the path. Did you perhaps use the Paint Bucket tool to create that path originally?

In my experiments, I can draw a doughnut with 2 concentric circles, and use the Paint Bucket tool to fill it. It is colored like a doughnut with the center not filled, but the fill rule is still non-zero. That's not what I would expect, because it creates 2 subpaths of a single compound path. If I draw the 2 paths and combine into a compound path, I have to change the fill rule to Even-Odd, to have the center not filled.

Interesting! I'll see if I can find anything at Launchpad :D

Edit
No issues reported in Launchpad, that I could find. Perhaps this should be reported? Well, I mean the issue with the Paint Bucket creating 2 subpaths of a single compound path, yet having still the non-zero fill rule.

I still don't know if the Paint Bucket tool created the subpaths in the op's case. I'll try some different search terms at Launchpad, and report what I find :D

Edit #2
No luck searching. Hopefully ~suv can help? Or anyone else?

Mish
Posts: 10
Joined: Sat Feb 11, 2012 12:16 pm
Location: 19.115327,72.858437

Re: Fill in Open Paths - Known Issue?

Postby Mish » Fri Mar 09, 2012 7:17 pm

brynn wrote:What I can't figure out, is how the hair object exists as a compound path with 2 subpaths (generally concentric circles) and the center isn't filled, while the fill rule is still Non-Zero. And if you draw from the lower left node, the center remains not filled. But if you draw from the upper node, the center gets filled (as I would expect either way).

It might have something to do with the direction of the path. Did you perhaps use the Paint Bucket tool to create that path originally?


Thank you for the warm welcom Brynn!
And yes I did create the object using the paint bucket tool, I should have mentioned this; took two closed paths arranged concentrically and filled the space in between.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Fill in Open Paths - Known Issue?

Postby brynn » Fri Mar 09, 2012 9:16 pm

Well awesome!

So you can either draw from the bottom node, or change the fill rule, and draw from either node :D

Final question is for ~suv, whether this is a bug?

Mish
Posts: 10
Joined: Sat Feb 11, 2012 12:16 pm
Location: 19.115327,72.858437

Re: Fill in Open Paths - Known Issue?

Postby Mish » Sat Mar 10, 2012 1:20 am

Thanks for the notification.


Return to “Discuss Software Issues”