3

I'd like to CNC draw an image. The image is composed of many, many shapes that overlap with each other.

Say I'd like to draw this image:

filled rectangle overlapping with filled star

Visually I can see the outline of the star, but part of the star's outline is occluded by the outline of the rectangle (because it's filled).

I'd like my CNC machine to draw the picture this way, but when I load it up it sees it like this instead:

path of star overlapping path of rectangle

What could I do to preserve the visual effect of the overlap? Essentially I'd like to select all fills, remove all paths behind those, and then get rid of the fills.

I'm having trouble understanding how the usual "break apart", "union", etc could work together to achieve this.

2
  • Welcome to GD.SE!
    – Mensch
    Commented Nov 14, 2021 at 23:38
  • You need quite a capable CNC machine. It should cut the union of the two shapes, but before cutting (and dropping the shape out of the base plate) it should also paint the wanted fill colors and the red stroke.
    – user82991
    Commented Dec 15, 2021 at 21:40

3 Answers 3

0

For CNC you probably don't want to have redundant path segments exactly on top of each other.

What you want to use is 'Path → Cut Path' with a duplicate of the rectangle (Ctrl+D), then deleting the slice of the path that should be hidden.

0

Try this.

  1. Remove the fills from both shapes, although you don't have to do this, it will allow you to see what is going on under the rectangle

  2. Select the rectangle and Copy it

  3. Select both star and rectangle and do Path > Difference. This operation will consume the rectangle. This is normal, don't panic!

  4. Do Edit > Paste in Place to get the rectangle back

This will create two separate paths that fit together exactly. If you need to combine them to one path, select both and do Path > Combine

For example

enter image description here

If you have multiple complex overlapping shapes, I posted an answer here with a possible solution that will probably work better, but I won't repeat it here.

If you need to delete redundant segments, select the segments using the Edit Paths by Nodes tool, and hit the Delete Segment button.

enter image description here

3
  • Mr. Kerr has a huge number assigned to his name. This is a good example of why. A nice clean process to accomplish the objective.
    – fred_dot_u
    Commented Nov 14, 2021 at 22:04
  • This is not a practical solution if you have more than two shapes...
    – Cerin
    Commented Jun 20, 2023 at 0:56
  • @Cerin Check the link I already provded in my answer for an easier way to do this with multiple shapes.
    – Billy Kerr
    Commented Jun 20, 2023 at 1:35
0

As I understood your question, you want to make the path below the square invisible and hide the part of the square, which reaches into the star, so you do as Billy Kerr shows in the upper animation, but instead of difference you select union.

enter image description here

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