Inkscape.org
Beginners' Questions compound and opened path: any trick for expected fill ?
  1. #1
    GwenaëlQ. GwenaëlQ. @GwenaëlQ.

    Hello,

    I would like to make the left drawing look like the right one.

    Right drawing is in fact a group of two paths, one closed for the fill and one opened for the stroke. Is there a simplest way to achieve this effect ? 

    Thanks for listening.

  2. #2
    Paddy_CAD Paddy_CAD @Paddy_CAD
    👍

    You have found (in my opinion) the simplest method. 

  3. #3
    GwenaëlQ. GwenaëlQ. @GwenaëlQ.

    Thank you.

    That's what I feared. Not complicated with such a simple drawing but with a complex one, it can take much more time...

     

    .

  4. #4
    Paddy_CAD Paddy_CAD @Paddy_CAD
    👍👍

    OK. Challenge accepted. Here's a not-so-simple method. Use [Path > Path Effects...] [+] [Fill between many] to stretch a shape into the space between the four separate paths. You may need [Path > Reverse Path] on the base paths to join nodes in the correct order.

    [ctrl+d] will duplicate the fill shape including its links to the original base paths. Use [ctrl+c] and [ctrl+v] instead to link the pasted fill to the pasted base paths. 

  5. #5
    inklinea inklinea @inklinea⛰️

    Paddy_CAD - starting with this combined path ( the nodes are not joined )

    Is there a simple way to go to the filled shaped ? 

    I tried with a background rectangle and division - but it makes a huge number of nodes. 

    Fill Test2
  6. #6
    Tyler Durden Tyler Durden @TylerDurden

    To fill that shape, I'd just use path operations and node tool after deleting the extra bits.

  7. #7
    inklinea inklinea @inklinea⛰️
    👍

    doh -- I didn't notice the 2nd set (duplicate) little paths !!

    So, all it needed was Press N, Ctrl + A, Shift + J 

    Thanks Tyler

  8. #8
    inklinea inklinea @inklinea⛰️

    Mightyscape 1.2 https://github.com/eridur-de/mightyscape-1.2

    Has a join extension. It sometimes missed the last join, but I think it might do what you want.

     

    2023 07 09 17 56
  9. #9
    GwenaëlQ. GwenaëlQ. @GwenaëlQ.
    👍*

    Hello,

    I found another quite simple method that I wanted to share here. I didn't knew that so much comments had been added here in the meantime !!

    My method is probably using the same live path effects than the Paddy_CAD's one but simpler to execute.

    - Draw the four paths, not combining them.

    - select them all

    - Path > Fill between paths.

    Thanks to all !

Inkscape Inkscape.org Inkscape Forum Beginners' Questions compound and opened path: any trick for expected fill ?