0

So if an object is behind another one, it is cropped so the hidden part is removed.

For example the red rectangle has been cropped as I wish in this image: hidden part removed

Ideally I would like to do this for all objects in the document.

  • 1
    Why do you want to remove, by doing so you just adding more points increasing the file size. – Botond Vajna Nov 1 '20 at 6:50
  • 1
    Also you will cause renderers to show conflation artifacts. – joojaa Nov 1 '20 at 7:33
  • Hi. Welcome to GDSE. I agree with the other commenters here, this doesn't sound like a good idea for both reasons already given. Why do you want to do this? What are you going to use the graphic for? Is there some specific reason that you forgot to mention? – Billy Kerr Nov 1 '20 at 10:50
1

Before you do this, please consider carefully why you need to do it. Usually this is not required and can cause problems with vector graphics - it can increase file sizes unnecessarily, and it can also cause conflation artefacts where the shapes butt up against each other, as others have mentioned in the comments.

If you still want to do it, try this:

  1. Move one filled shape over another. Copy the top shape.

  2. Select both shapes and do Path > Difference - the top shape will punch out the shape below it.

  3. Do Edit > Paste in Place to paste back the top shape which was consumed in the Difference operation.

Example

enter image description here

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.