Inkscape.org
Beginners' Questions Two types of Flatten
  1. #1
    zourid zourid @zourid

    In Inkscape 1.4 (e7c3feb1, 2024-10-09) on MacOS Intel, I start with a simple motif and use Path Effects to create a patten.

    If I flatten the pattern within Path Effects I get a path with only Stroke.

    But if I flatten the pattern using Path —> Flatten I get a path with only Fill (see attached).

    Is that intentional? Just trying to understand the different mechanism.

  2. #2
    COD COD @COD
    🏆*

    Yes - I noticed that too. Flatten in the path effects dialog simply means path>object to path. Path>Flatten has a totally different meaning. The difference is Path>Flatten will convert strokes to path first before it performs its boolean magic. This change occured in 1.4. I blew a gasket because of the change but I figured out how to work around it. 

    Edit: Once I figured out how the new Path>Flatten works in v1.4, I actually prefer it to the version in v1.3.2. You just have to be aware of the difference between the two versions.

  3. #3
    David248 David248 @David248
    🏆*

    Thanks !, I didn't try Path > flatten on tiling LPE, it works really well to flatten former patterns (I mean reverse a pattern into path, tile it and do path > flatten).

    With this solution, you have no path remnants between tile boundaries (I used to set a very small negative x- and y- gap to avoid it, it seems to be no more necessary).

    Here with a 3 x 3 tiling

  4. #4
    COD COD @COD

    I use symbol libraries quite a bit in my designs. Nested groups of symbols. Just a heads up on that. Be careful with Path>Combine in this particular case. You will end up with a mess that would take a team of NASA engineers to fix. Flatten and Fracture - no problem - but Combine is a disaster. I reported the bug but doesn't seem to have any priority to fix. 

    Be sure to do a deep ungroup of anything you intend to path>combine. If nested groups of symbols - be sure to deep ungroup and unclone them. 

     

  5. #5
    David248 David248 @David248
    *

    I'm not suprised that you encounter disasters with this knotwork (BTW : congrats, really good stuff, the idea to use symbols is a clever one) when combining paths 😊

    Are these black strokes or black filled areas with no stroke ?

  6. #6
    COD COD @COD

    Black Fill - Red stroke (1mm). Then Path>Flatten. That will result is a group of two objects. Deleted the group of red strokes. That will result in a gap between the cords of exactly 1mm in v1.4.  

    Combine will work - I just can't do it directly like I can with Flatten and Fracture. I usually have to do a combine if I intend to do path effects. 

    Symbols - my entire Inkscape universe changed when I discovered Inkscape symbol capabilites. 

    https://inkscape.org/~COD/★celtic-knotwork-construction-kit-for-inkscape

     

  7. #7
    David248 David248 @David248
    COD

    Black Fill - Red stroke (1mm). Then Path>Flatten. That will result is a group of two objects. Deleted the group of red strokes. That will result in a gap between the cords of exactly 1mm in v1.4.  

    Smart 😉