0

I have an object and it should cut a curved line at two points. In the image below, I want the line to reach the object and invisible inside the object and then continue after the object. How can I do so?

I tried intersect, division etc, but it didn't work. enter image description here

  • Hi. Welcome to GDSE Can't you raise the object to the top, then the fill will cover the circle? – Billy Kerr Jul 21 at 10:22
  • @Billy Kerr I tried it.But no luck. – Science123 Jul 21 at 11:30
  • Select the object, make sure the fill is 100% opaque, and click Object > Raise to top. This should work, I tested it. – Billy Kerr Jul 21 at 11:34
  • Yes it worked this time.Thanks! – Science123 Jul 21 at 11:36
  • Would you like me to add an answer now? – Billy Kerr Jul 21 at 11:37
2

One good idea is to sink the curve behind the other shape, simply drag it downwards in the objects panel. It's tried in top right:

enter image description here

That probably was like a bad joke, if you are not going to cover your curve, you only want a gap with certain size and placement,

In the bottom it's made with Object > Mask. The mask has a hole. It's created by subtracting the green shape from the orange one.

Of course you can also remove a part of your curve. Select the curve, insert with the node tool new nodes to the crossing points with your measuring shape:

enter image description here

Be sure you have snap at crossings ON, insert the new nodes by double clicking with the node tool. Then select those new nodes, be sure that no other nodes are selected and click in the node tool option bar "Delete segment"

enter image description here

You got 2 separate curves. Their ends are formed like normal stroke ends, defined by the stroke style settings. They do not obey the form of the green shape. If that's needed, you can convert the curve to a filled path with Path > Stroke to Path and subtract the unmask shape. It's like having a mask with hole, but destructive and the curve isn't any more a simple stroke, you get 2 curve-like filled paths.

  • Thanks @user287001for your instructions.I will give a try. – Science123 Jul 21 at 11:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.