splitting a path?

Post questions on how to use or achieve an effect in Inkscape.
mystery
Posts: 42
Joined: Fri May 15, 2009 11:58 am

splitting a path?

Postby mystery » Mon Jun 29, 2009 12:10 pm

I've been trying to achieve this effect for a while. It's like the rim on a cup. How can I make the circle in a way that something like a straw could go through it and not directly behind it or atop it? I tried it in the coffee cup tutorial but I didn't get it. I need another example of this.

Slow Dog
Posts: 180
Joined: Wed Sep 24, 2008 7:51 pm

Re: splitting a path?

Postby Slow Dog » Mon Jun 29, 2009 10:15 pm

You've got to split your circle in two, so there's a rim behind the straw, and a rim-half in front.


I'd first draw the rim of the cup. Then the straw, laying it over (both edges of) the rim. Then, I'd duplicate the rim; there's now the original behind the straw, and the duplicate in front.

Next, draw a rectangle over the lower half of the rim. Select the rim copy and rectangle, and select object->clip->set. There's now a half-rim that obscures the straw.

If I were doing a filled cup, instead of clipping I'd to do a path->intersection, then some node editing to make the top-ellipse-half bend around the straw correctly.

mystery
Posts: 42
Joined: Fri May 15, 2009 11:58 am

Re: splitting a path?

Postby mystery » Tue Jun 30, 2009 11:08 am

Okay. I think I got it...sort of.
Could you show me the SVG for your described method. I didn't quite understand the 2 last steps.


Return to “Help with using Inkscape”