trim

Post questions on how to use or achieve an effect in Inkscape.
User avatar
1885
Posts: 20
Joined: Fri Dec 10, 2010 4:42 am

trim

Postby 1885 » Sun Feb 27, 2011 12:32 am

I'm not sure if trim is the correct concept. But what I would like to do is cleanly cut the center of overlapping curves.

I used Control + K to combine the curves.


http://craigcoleman.com/svg/trim1.svg
Thanks
1885
Attachments
trim.svg
(2.94 KiB) Downloaded 213 times
Last edited by 1885 on Mon Feb 28, 2011 3:31 am, edited 1 time in total.

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

Re: trim

Postby druban » Sun Feb 27, 2011 12:11 pm

I used Control + K to combine the curves


Paths seem to be separate in the SVG attached. It is unclear what you want as a result, but probably since your paths are closed a boolean operation is what you are looking for, like this?
path2987.png
path2987.png (8.33 KiB) Viewed 1543 times

Above, the two long ellipses were unioned (although combine should not change the end result), the rounder ellipse was put on top, then difference was done on all.

Or, less likely, you want this (pieces have been moved to show the cuts):
path3882.png
path3882.png (5.31 KiB) Viewed 1543 times

Cut path used instead of difference.

FYI, combining paths like these that have no fill may appear to have no result, and the fill rule may need to be toggled in the fill and stroke dialog even after filling with a color.
path2989.png
path2989.png (7.31 KiB) Viewed 1543 times
Your mind is what you think it is.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: trim

Postby brynn » Sun Feb 27, 2011 12:31 pm

Hi 1885,
There are probably a few different ways to accomplish this. And there may well be a more clever way than this, which someone else will probably describe for you as well. There are so many wise and skillful Inkscape users here Image ! Here's how I would do it:

-- duplicate the top 2 ellipses
-- select one of each of the top 2 ellipses, then Path menu > Intersection
-- duplicate the resulting rectangle twice (3 total)
-- do this for each of the 3 ellipses: select one ellipse and one copy of the new rectangle, then Path menu > Difference

You actually have to give the ellipses a fill, to see the resulting rectangular "hole".

And whoops, as seems to happen from time to time, druban has beat me to the post :lol: And it appears that he has a different interpretation of your problem than I do. But hopefully one of us has the right idea :mrgreen: So I'll post anyway.

Let us know if we still don't understand :D

User avatar
1885
Posts: 20
Joined: Fri Dec 10, 2010 4:42 am

Re: trim

Postby 1885 » Mon Feb 28, 2011 6:24 am

trim2.svg
(5.08 KiB) Downloaded 188 times
trim2.png
trim2.png (48.16 KiB) Viewed 1512 times


Thank you so much for the help. This gives me a better idea of how to approach this problem.
The desired output is included above. I see how to include the graphic in the post.
What I really want to be able to do is take a single line with lines or a polygon (circle in this case) intersecting it and then trimming the
line that passes through the polygon (circle).

It would be nice to manually insert a vertices at the intersection points then remove the line between the points.
I edited this image as a bitmap using GIMP.
trim2eg.png
trim2eg.png (7.47 KiB) Viewed 1509 times


I used SolidWorks and that is referred to a trim.

Thank yo so much. Both posts set me in the correct direction.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: trim

Postby brynn » Mon Feb 28, 2011 8:53 am

It would be nice to manually insert a vertices at the intersection points then remove the line between the points.

Yes, you can do that!
Using the Node tool, double-click on the path where it intersects with one side of the circle. Then again on the other side. Click on the part you want to remove, which selects both new nodes. Then click "Delete segment between 2 non-endpoint nodes" on node tool control bar. Done!

User avatar
1885
Posts: 20
Joined: Fri Dec 10, 2010 4:42 am

Re: trim

Postby 1885 » Mon Feb 28, 2011 9:34 am

brynn wrote:
It would be nice to manually insert a vertices at the intersection points then remove the line between the points.

Yes, you can do that!
Using the Node tool, double-click on the path where it intersects with one side of the circle. Then again on the other side. Click on the part you want to remove, which selects both new nodes. Then click "Delete segment between 2 non-endpoint nodes" on node tool control bar. Done!

epico! Thank you so much.
I really am enjoying Inkscape. We are using to create designs we can cut on a cnc Laser Engraver and a Vinyl sticker cutter (Don't ask me the name of machines I just started using them,) Inkscape along with Gimp and Blender are a set of tools I use to teach Digital Graphics. I'm sytaying one step ahead of the students, but they don't mind teaching me things.

Thanks again for your help. This book and pdf seem to be a good reference:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
I've also used Youtube


Return to “Help with using Inkscape”