Inkscape.org
Beginners' Questions Help with creating map for laser engraving.
  1. #1
    lukelar1283 lukelar1283 @lukelar1283

    Hello! Looking for some help. Below is the start of a map I am trying to create for a laser project. Black is the road and red is water/lakes. I am having a hard time figuring out how to make it so the lake doesnt cut through the road where the is a bridge. How do I make it so the red does not go over or under the black? 

     

    Screenshot 2023 11 06 152342
    Drawing2
  2. #2
    David248 David248 @David248
    *

    Short answer :

    • Open object panel, in layer Water, hide path3 (a duplicate ?), select path1.
    • With node tool, delete the 5 perimeter nodes of path1 : 4 for the corners, one more on top perimeter.
    • Duplicate path2 in Road Layer, move it in Water layer (for boolean operation difference, it must be atop path1.
    • Select path2 and path1 and do path > difference.

    Longer one :

    Boolean operations work on areas, if you give path1 a color fill, you can see the area outlined by path1 : you need to remove the perimeter nodes of path1 to give it a correct area. Then path1 has the correct visual aspect.

  3. #3
    lukelar1283 lukelar1283 @lukelar1283

    Thanks. That is more progress then I had before. Now a new issue came up. My cut (red lakes) is now outlining my fill (black roads). Ideally I want the red line to stop when it hits a road like a dead end. Not continue around the road. 

    Drawing6
    Screenshot 2023 11 07 081854
    Screenshot 2023 11 07 081519
  4. #4
    David248 David248 @David248
    *

    Ahh

    That's because you did not follow my steps 😁

    When doing bolean operations, you must think AREAS ("Fill"). Let's restart from your svg. Let's name path2 "the roads" and path1 "the water".

    The big difference between the roads and the water is that road has a black fill and no stroke, and water has no fill a a red stroke.

    If you give the water a green fill, you 'll see what I mean (second image, upper left). If you do a difference with the roads, you remove all areas of the roads (in fact, what's black, as roads has a black fill), you get a logical result (bottom left) : all what was black is removed from the green. With no green fill, it looks as if you outlined every roads).

    To work with the correct areas, you need to remove the five nodes spotted on first image) : then you get the upper right path, wich, once it has undergone difference (bottom right) looks ok.

    Capture D'Écran 2023 11 07 200602
    Capture D'Écran 2023 11 07 200840
Inkscape Inkscape.org Inkscape Forum Beginners' Questions Help with creating map for laser engraving.