Inkscape.org
Beginners' Questions Path > Intersection removes both paths
  1. #1
    sansaraf sansaraf @sansaraf

    I've been trying to use the Intersection function with a more complex set of paths and struggling, so I've created a very simple test in Inkscape that's giving me the same result. When I select my two paths and then use Intersection, they both disappear (and are no longer listed in the layer). I would expect that the diagonal line would remain but be shortened to the maximum dimensions of the ellipse.

    More details:

    • Both shapes are converted to paths
    • Based on other information I've found, both paths have fills
    • This is on MacOS with an M2 chip
    • I've reset my preferences and restarted
    • This is a recent install of Inkscape 1.3. I tried reinstalling it just to be sure.
    • I don't think I've got anything special going on, but clearly I'm not an expert.

    I'd be grateful if anyone has a chance to take a look and see if there's something obvious I'm missing!

  2. #2
    David248 David248 @David248
    *

    Intersection boolean operation works on areas. Even if you set it a fill color, the straight line does not have one, unless you turn its stroke to path (then its stroke will become a fill). The disappering of both path is then a normal behavior.

    To achieve your goal, you'd better use the boolean operation cut path : the ellipse must atop.

    See manual

    Hope this helps

  3. #3
    Polygon Polygon @Polygon🌶

    Not my Mac at hand right now, but can you draw and place 2 overlapping circles, with both selected go Path->Intersection which should give a leave like shape as a result? This Path operation needs shapes and won't work with a single stroke as I guessed from you description. If you want to cut an ellipse into 2 parts for example the single stroke on top needs to be converted with Path->Stroke to Path followed by Path->Difference and can be as thin as you like.

  4. #4
    Tyler Durden Tyler Durden @TylerDurden

    As noted above, the red stroked path must be converted to a closed path by using Stroke to path. The intersection boolean only works with closed paths.

    NB: Cut Path will result in two open paths. Path>Fracture (a new boolean) will divide the circle into two closed hemi-circles.

  5. #5
    sansaraf sansaraf @sansaraf

    Thank you all for the clarification. I didn't understand the closed-path distinction and now I can figure out a way forward to achieve what I'm shooting for. Thanks!

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Path > Intersection removes both paths