gotcha

Author Topic: Fill is filling up the wrong spaces!  (Read 1741 times)

October 12, 2017, 07:20:11 AM
Read 1741 times

pjunge

  • Newbie

  • Offline
  • *

  • 1
Halp!
Background: I'm newish to Inkscape (and brand new to the forum) and I've tried to find a solution to this problem, but I can't! Probably because I don't know the terminology well enough to do a good search.
Disclaimer: I'm sure this has been covered somewhere, but I'll be dog darned if I can find it! Plus I'm on a super tight deadline and super stressed and just need help!

Problem: I imported a drawing to digitize for our school play. I traced to bitmap, broke apart everything, all that fun stuff. I had to redraw a few details in the wings, because they went wonky during the break apart. Now, when I apply the fill, it fills in the outlines nice and neat, but also fills in this random little area! It's drive me mad! I've marked the culprit in angry red in the attached screenshot. The original file is also attached.

Tried: Deleting and redrawing that little section. Checking nodes for unjoined segment ends. Clicking on each individual object in the object sidebar to make sure there were no extra segments hiding somewhere. Searching all over the innerwebs for a solution to no avail.

Please help this frazzled teacher unfrazzle herself! Thank you so much!
  • 0.92.2
  • Windows 10, 64 bit

October 12, 2017, 02:46:35 PM
Reply #1

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
Issue 1: The path isn't closed. To fix,
1. switch to node tool
2. (optional) simplify the shape (Ctrl+L)
3. select the node on the line around the 'wrong' area that looks different from the others (it's at the bottom). Use the box-selection (drag the mouse around) to select it - because it's two nodes that are not connected, lying on top of each other.
4. click on 'join selected nodes' (third icon in the node tool's tool controls bar)
5. fix shape by dragging on nodes and segments between them

Issue 2: The direction of the subpath is different from the others / the fill rule doesn't fit.
Option a) - make direction correct:
a1) click on a node or a segment of the 'wrong' subpath
a2) in the menu, go to Path > Reverse path

Option b) - change fill rule:
b1) open fill+stroke dialog
b2) in the top right corner of the fill tab, click on the 'heart' shape that has a hole.

October 13, 2017, 11:14:07 AM
Reply #2

flamingolady

  • IC Mentor

  • Offline
  • ******
  • Flamingo Lady

  • 154
  • Gender
    Female

    Female
pjunge.  Welcome to the forum.  Can you attach the actual SVG vs your jpg? It's going to be just guesses unless we can see the actual svg.
I personally hate using trace bitmap for just this reason, I end up spending more time fixing things than just re-drawing it. 
I am wondering if there are nodes that need to be deleted to open that space up. 
Otherwise have you tried to do either a path/difference to get rid of that section or a clip/mask to hide it?
dee

October 13, 2017, 01:57:17 PM
Reply #3

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
The svg file is attached, right at the bottom of the OP's post.

October 14, 2017, 02:19:19 PM
Reply #4

flamingolady

  • IC Mentor

  • Offline
  • ******
  • Flamingo Lady

  • 154
  • Gender
    Female

    Female
Moini - I see a JPG, not an SVG.  I'm looking for the SVG file.

October 14, 2017, 02:22:07 PM
Reply #5

flamingolady

  • IC Mentor

  • Offline
  • ******
  • Flamingo Lady

  • 154
  • Gender
    Female

    Female
oh, I only saw the jpg.  sorry

well, the svg is write protected, so can't save it etc.  But, all you need to do is do a path>difference and it will open up the 'hole'.  From the trace bitmap, there are 2 layers making up that spot.  I went into the node tool and deleted the top one easily, and created an object a little smaller than the spot, did path> difference and you have what you need.  Am attaching the path I used.  you'll still need to clean up some of the nodes (I did that before applying the path> difference). oh wait, I was able to copy it.  (once fixed you may want to come back here and delete the svg since it can be copied...)
dee
 path diff 10-14-17.svg
*path diff 10-14-17.svg
(125.6 kB . 318x137)
(viewed 493 times)
« Last Edit: October 14, 2017, 03:05:16 PM by flamingolady »