How do I cut out the part of a path that is IN another path.

Post questions on how to use or achieve an effect in Inkscape.
NoahDoah
Posts: 5
Joined: Mon Aug 13, 2018 3:31 am

How do I cut out the part of a path that is IN another path.

Postby NoahDoah » Mon Aug 13, 2018 4:03 am

Hello,

I am just working on a logo. In development, I just filled my paths white, so they hide the unwanted stuff behind them. Now I want to prepare the logo for production and I need the white areas completely transparent obviously. I am already sitting hours in front of it, messing around with the different path operations and not getting it to work how I want.

I will first post how the logo is meant to look (with white fill):

Image

In the next picture I have made the white fill a little transparent, so you can see what's going on in the background:

Image

And the last picture with no white fill:

Image

So yeah, what I need is actually pretty simple. Getting the look of the first picture, without the white fill of the leaves, by removing the gray parts of the path in the second picture.

Hope you can help me, thanks!

User avatar
druban
Posts: 1605
Joined: Fri Nov 20, 2009 10:48 pm

Re: How do I cut out the part of a path that is IN another path.

Postby druban » Mon Aug 13, 2018 6:11 am

You have 3 petals on top, 2 in the middle and 2 on the bottom

1) select the group of three and do edit>copy
2) then do path>union
3) then immediately edit>duplicate, deselect that new path, then
4) select the two middle petals do path>union
5) select one of the duplicates on top and the middle union-ed petals and do path>difference
6) then with the result still selected do edit>duplicate
7) without deselecting the cut duplicate, shift select the other top duplicate do path>union
8) deselect everything then select the 2 bottom petals do path>union
9) select the big unioned path and the bottom two petal union and do path>difference
10) This should leave you with four pieces of petal now do edit paste in place to get the top 3 petals back

Way faster to do than to type really, good luck!! if any step needs explanation, just ask

An alternative for paths this simple is just draw new shapes on top and delete the old ones - hard to tell which method would be faster, but this will give you some practice with using the Boolean operations and who doesn't need that?
Your mind is what you think it is.

NoahDoah
Posts: 5
Joined: Mon Aug 13, 2018 3:31 am

Re: How do I cut out the part of a path that is IN another path.

Postby NoahDoah » Mon Aug 13, 2018 9:23 am

druban wrote:You have 3 petals on top, 2 in the middle and 2 on the bottom


Thank you, tried it out and strange puree came out but it's late and I will try it tomorrow.

NoahDoah
Posts: 5
Joined: Mon Aug 13, 2018 3:31 am

Re: How do I cut out the part of a path that is IN another path.

Postby NoahDoah » Wed Aug 15, 2018 9:40 pm

druban wrote:You have 3 petals on top, 2 in the middle and 2 on the bottom


Ok, phew. I followed your instructions, looked better this time but it still came puree out at the end. However, your instructions made clear for me how to efficiently use boolean operations. So, thank you a lot! I fumbled around alone now and could achieve what I wanted. The Union-operation is more powerful than I would've thought.

Just another quick question: Often when I use boolean operations, some rounded corners disappear. They are not displayed as sharp corners, but more as bevelled (?) corners. There is no way I could get those rounded corners back again. But same with sharp corners. If I want normal sharp corner, they are just being displayed bevelled again. I had to discard my changes very often because of this problem already. Do you know what this could be?

Thanks again and best regards!

Polygon
Posts: 298
Joined: Thu Dec 19, 2013 3:27 am

Re: How do I cut out the part of a path that is IN another path.

Postby Polygon » Wed Aug 15, 2018 10:42 pm

Maybe not what you expected - but keeping paths parametric has its advantages:
Image

Cheers
P.

NoahDoah
Posts: 5
Joined: Mon Aug 13, 2018 3:31 am

Re: How do I cut out the part of a path that is IN another path.

Postby NoahDoah » Thu Aug 16, 2018 3:00 am

Polygon wrote:keeping paths parametric has its advantages:


Wow, impressive. Would you mind reaching out a little about parametrics?

Polygon
Posts: 298
Joined: Thu Dec 19, 2013 3:27 am

Re: How do I cut out the part of a path that is IN another path.

Postby Polygon » Thu Aug 16, 2018 3:10 am

I meant: In the last step you can change the line width - which is not possible if you convert the paths to a color filled object.

Cheers
P.

Lazur
Posts: 4562
Joined: Tue Jun 14, 2016 10:38 am

Re: How do I cut out the part of a path that is IN another path.

Postby Lazur » Thu Aug 16, 2018 8:22 am

Polygon wrote:Image


Gif time? Gif time!

Image

User avatar
druban
Posts: 1605
Joined: Fri Nov 20, 2009 10:48 pm

Re: How do I cut out the part of a path that is IN another path.

Postby druban » Thu Aug 16, 2018 10:52 am

So to add my bit to the already thorough (and animated!) help above, when you use the stroke style to enhance your drawing as in round corners, round endcaps, etc. that element will not be taken into account when doing Booleans. To use another word you might think of it as a decorative part of the final rendering but not present in the actual structure or geometry of your drawing.
Inkscape will remember that you wanted that decoration, though, so after doing the calculation it puts it back on the result, but it can't have the same effect because the underlying geometry has changed. Sort of like you had a lot of plastic surgery and then tried to put on your old tutu.
incidentally Inkscape has a rotate objects path effect that pretty effortlessly does the drawing and even spacing of petals etc you might want to look at that
2018-08-14_213705.png
2018-08-14_213705.png (23.47 KiB) Viewed 99 times
Your mind is what you think it is.

NoahDoah
Posts: 5
Joined: Mon Aug 13, 2018 3:31 am

Re: How do I cut out the part of a path that is IN another path.

Postby NoahDoah » Thu Aug 16, 2018 7:39 pm

Lazur wrote:Gif time? Gif time!


Wow, I was amazed by vectors before, but now I am even more. Thanks for all the input, I am really astonished by what's possible and your skills.

druban wrote:So to add my bit


Thank you, I will take a look on that effect.


Return to “Help with using Inkscape”

Who is online

Users browsing this forum: No registered users and 1 guest