Inkscape Community

Help Using Inkscape => Inkscape Beginners' Questions => Topic started by: 4vanger on February 23, 2018, 08:33:44 PM

Title: Path:intersect doesn't do what is expected
Post by: 4vanger on February 23, 2018, 08:33:44 PM
I'm having some weird problem when trying to apply a path->intersection to my pathes. It works as expected when I have 2 simple objects like rectangles or circles but when I try to cut a path that consist of lines - it behaves not as expected.
So I have
(https://i.gyazo.com/3b12f9a57bf20d1183084358b6969c78.png)
And when I select them both and do Path -> Intersect I expect result to be
(https://i.gyazo.com/adb133372c9115af5597378559fd49d8.png)
But instead it results to having an empty page.
Object->Clip->Set does what I want but then outline is showing the whole thing - I'm not sure how laser cutter will cut the clip so just want to generate the new path which is a subset of original path.
Attaching my SVG file.
Title: Re: Path:intersect doesn't do what is expected
Post by: brynn on February 24, 2018, 03:46:30 AM
Welcome to the forum!

Most of the path operations work on the area inside paths, rather than on the paths themselves.  Since the 2-node path has no area, the math formula which makes the intersection work doesn't give the expected result.

Also, most of the path operations can only work with 2 objects.  Union can be done with more than one selected object.  And sometimes intersection can (for the proper kind of paths).  But I think all the rest can only work with 2 selected objects -- Unless!  We have some extensions now which will perform multiple booleans in one step, for Cut Path, Division and Difference.

Anyway, in this case, I would suggest performing the intersection on only the outer rectangle.  Then the single path remains where it is, and the cutter will recognize everything as paths.

I'm also not sure how a cutter would recognize a clipping path.  Might be interesting to experiment, although I don't have any cutter.
Title: Re: Path:intersect doesn't do what is expected
Post by: Moini on February 24, 2018, 07:48:51 AM
Just do Path -> Cut path instead, then remove the parts you do not need (it will cut the object below into pieces)
Title: Re: Path:intersect doesn't do what is expected
Post by: 4vanger on February 25, 2018, 11:53:16 AM
Yeah, I thought about smth line doing a Cut and then do the Pat->difference again with a copy of the shape
Title: Re: Path:intersect doesn't do what is expected
Post by: brynn on February 27, 2018, 08:08:16 AM
In many cases it's a matter of personal preference, as to which way you decide to accomplish a particular goal.