I'm finding trouble getting to grips with clipping!
Say I have two lines crossing near their ends and I want to cut the 'loose' ends off. If I then draw around a piece of line I want trimming, select the line to be trimmed and the clipping path object, and then do Object -> Clip, everything _other_ than the bit I want trimmed disappears! Is this the way it should work?
I have the feeling that I'm missing the point regarding clipping (and the docs aren't very clear)!
Jim Ford
What clipping does is take the area covered by the topmost object and use it as the visible area for the object below. I use it to crop pictures with rounded corners. To do this I first import the picture, draw a new box over it and place it in the right spot on top of the picture. Then I select both and apply clipping. Note that clipping doesn't change the original object, it just affects is visible area.
In your case what I would do is duplicate one of the lines and then use Path->Cut Path with two different lines selected. That would cut the line just at the end. If you want to cut the other one too repeat duplicating the one just cut.
Hope it helps.
On 11/8/07, Jim Ford <jaford@...2359...> wrote:
I'm finding trouble getting to grips with clipping!
Say I have two lines crossing near their ends and I want to cut the 'loose' ends off. If I then draw around a piece of line I want trimming, select the line to be trimmed and the clipping path object, and then do Object -> Clip, everything _other_ than the bit I want trimmed disappears! Is this the way it should work?
I have the feeling that I'm missing the point regarding clipping (and the docs aren't very clear)!
Jim Ford
This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Facundo Casco wrote:
What clipping does is take the area covered by the topmost object and use it as the visible area for the object below. I use it to crop pictures with rounded corners. To do this I first import the picture, draw a new box over it and place it in the right spot on top of the picture. Then I select both and apply clipping. Note that clipping doesn't change the original object, it just affects is visible area.
In your case what I would do is duplicate one of the lines and then use Path->Cut Path with two different lines selected. That would cut the line just at the end. If you want to cut the other one too repeat duplicating the one just cut.
Hope it helps.
On 11/8/07, Jim Ford <jaford@...2359...> wrote:
I'm finding trouble getting to grips with clipping!
Say I have two lines crossing near their ends and I want to cut the 'loose' ends off. If I then draw around a piece of line I want trimming, select the line to be trimmed and the clipping path object, and then do Object -> Clip, everything _other_ than the bit I want trimmed disappears! Is this the way it should work?
I have the feeling that I'm missing the point regarding clipping (and the docs aren't very clear)!
If you want to know more about clipping, here are some useful resources to help get your head around it:
this one is a work in progress for an official tutorial, however, the clipping section is almost complete: http://wiki.inkscape.org/wiki/index.php/Scratchpad_clippingtutorial
microUgly's section on clipping and masks is also worth a look at: http://www.microugly.com/inkscape-quickguide/#work-clip
i have also done a mini-tutorial trying to explain clipping, also: http://ryanler.wordpress.com/2007/05/24/inkscape-how-the-clip-function-works...
hope this helps.
ryanlerch
Facundo Casco wrote:
What clipping does is take the area covered by the topmost object and use it as the visible area for the object below.
Thanks for the reply.
So the topmost or clipping object covers the part of object underneath that it to be retained? This seems to be pretty counterintuitive to me, and the opposite of the vector drawing program I've used previously (2D Design). As often as not you would want to remove/clip a small part of an image. The way you describe it, you would need to create a clipping object that surrounds the rest of the image in order for it to be preserved. This would often mean creating an elaborate object just to remove a small part of a line.
Another poster has suggested some tutorials that I'll investigate.
Jim Ford
hey Jim!
Actually this is not different from other programs. maybe the naming is, but clipping is actually quite common for that as well. What you want to do is Path->Difference.
Cheers!
David
On Fri, 2007-11-09 at 18:19 +0000, Jim Ford wrote:
Facundo Casco wrote:
What clipping does is take the area covered by the topmost object and use it as the visible area for the object below.
Thanks for the reply.
So the topmost or clipping object covers the part of object underneath that it to be retained? This seems to be pretty counterintuitive to me, and the opposite of the vector drawing program I've used previously (2D Design). As often as not you would want to remove/clip a small part of an image. The way you describe it, you would need to create a clipping object that surrounds the rest of the image in order for it to be preserved. This would often mean creating an elaborate object just to remove a small part of a line.
Another poster has suggested some tutorials that I'll investigate.
Jim Ford
This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
David Christian Berg wrote:
hey Jim!
Actually this is not different from other programs. maybe the naming is, but clipping is actually quite common for that as well. What you want to do is Path->Difference.
I just tried it:
I drew a straight line with the bezier tool. I then drew a box using the bezier tool, overlapping a short bit at the end of the first line. I then selected both and did Path -> Difference, expecting the box and bit of line it overlapped to disappear - but _everything_ disappeared!
Jim Ford
Jim Ford wrote:
David Christian Berg wrote:
hey Jim!
Actually this is not different from other programs. maybe the naming is, but clipping is actually quite common for that as well. What you want to do is Path->Difference.
I just tried it:
I drew a straight line with the bezier tool. I then drew a box using the bezier tool, overlapping a short bit at the end of the first line. I then selected both and did Path -> Difference, expecting the box and bit of line it overlapped to disappear - but _everything_ disappeared!
Jim Ford
This is a bug that has irked me for a long time. Difference does not seem to work with a straight line segment, but it should work if there is a curve to the segment (which probably is not what you want).
-Josh
Joshua A. Andler wrote:
This is a bug that has irked me for a long time. Difference does not seem to work with a straight line segment, but it should work if there is a curve to the segment (which probably is not what you want).
I also tried adding a node to a straight line, but it didn't work. If the line had the slightest curve it worked. I wonder if this is another bug?
Jim Ford
To add a node select both end nodes of the segment in which you want to add the new one and use the + button on the toolbar.
On 11/9/07, Jim Ford <jaford@...2359...> wrote:
Joshua A. Andler wrote:
This is a bug that has irked me for a long time. Difference does not seem to work with a straight line segment, but it should work if there is a curve to the segment (which probably is not what you want).
I also tried adding a node to a straight line, but it didn't work. If the line had the slightest curve it worked. I wonder if this is another bug?
Jim Ford
This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
On 2007-November-09 , at 20:54 , Jim Ford wrote:
David Christian Berg wrote:
hey Jim!
Actually this is not different from other programs. maybe the naming is, but clipping is actually quite common for that as well. What you want to do is Path->Difference.
I just tried it:
I drew a straight line with the bezier tool. I then drew a box using the bezier tool, overlapping a short bit at the end of the first line. I then selected both and did Path -> Difference, expecting the box and bit of line it overlapped to disappear - but _everything_ disappeared!
There are issues with boolean operations (difference, union etc) involving a straight line. It had bitten me several times and think it would be worth reporting as a bug. What would be even nicer is to collect a test file with all cases where it fails and attach it to the bug report.
JiHO --- http://jo.irisson.free.fr/
Yeap, you're right. I can think of two workarounds. Use Path->Cut path instead of Difference. Or, convert the line to a shape using Path->Stroke to path before applying Difference.
Also here's a file with examples of bool operations
On 11/9/07, Jim Ford <jaford@...2359...> wrote:
David Christian Berg wrote:
hey Jim!
Actually this is not different from other programs. maybe the naming is, but clipping is actually quite common for that as well. What you want to do is Path->Difference.
I just tried it:
I drew a straight line with the bezier tool. I then drew a box using the bezier tool, overlapping a short bit at the end of the first line. I then selected both and did Path -> Difference, expecting the box and bit of line it overlapped to disappear - but _everything_ disappeared!
Jim Ford
This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
I think the problem may be in the naming. If you want to remove something from some object you would be using Path->Difference. That would remove the part of the bottom object that overlaps with the topmost and also would delete the topmost object (so you may want to create a duplicate first).
On 11/9/07, Jim Ford <jaford@...2359...> wrote:
Facundo Casco wrote:
What clipping does is take the area covered by the topmost object and use it as the visible area for the object below.
Thanks for the reply.
So the topmost or clipping object covers the part of object underneath that it to be retained? This seems to be pretty counterintuitive to me, and the opposite of the vector drawing program I've used previously (2D Design). As often as not you would want to remove/clip a small part of an image. The way you describe it, you would need to create a clipping object that surrounds the rest of the image in order for it to be preserved. This would often mean creating an elaborate object just to remove a small part of a line.
Another poster has suggested some tutorials that I'll investigate.
Jim Ford
This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
participants (6)
-
David Christian Berg
-
Facundo Casco
-
jiho
-
Jim Ford
-
Joshua A. Andler
-
Ryan Lerch