4

This is what I am trying to do:

enter image description here

So essentially, there's a path (the filled one) that repeats another path (the outlined one) perfectly on some, but not all, range. This example I did by creating a "fill" with exclusion method, and then editing the resulting fill, but I thought that maybe there's a method that would accomplish what I need quicker and simpler? I was thinking, perhaps some "snapping" technique that that snaps a path against path instead of a node against node? Or maybe a method that copies a section of one path into another?

Thanks in advance.

1

3 Answers 3

4

Duplicate your full sized shape and edit the duplicate to to cover smaller area. Remove unwanted stroke and add possibly wanted fill.

In your example case the edited duplicate has a fill, but hasn't a stroke.

Editing:

For example add 2 new nodes where you want the exact match to stop. You can at these points split the path, delete the unwanted portion, draw a new and join the parts.

As well you can edit the path with the node tool, no need to delete a part. The added nodes are your guards who keep all edits out of the exact match area.

An example:

enter image description here

  1. Original shape

  2. A duplicate (Ctrl+D) was made, colored differently and edited with the node tool

GN = inserted guard nodes (actually only one was inserted, the other was already in a good place in the original shape)

  1. The edited shape got a fill, its stroke was removed and the shape was sent to the bottom

Other possiblities:

You may have a bigger shape which has just the wanted edge and you may want to use that edge as the separation line. An example:

enter image description here

  1. The black shape is wanted as whole and the orange shape is used for separation.

  2. Both shapes are duplicated and an intersection is created

  3. The remnants are removed, the intersection is sent to back and colored

I do not recommend to use clipping instead of intersection. It's easy to think that intersection shouldn't be used, because it's destructive. Clipping with a mask (Object > Clip > Set) creates the same looking result, but the clip can be released and the shapes are restored - this is the common thinking.

In Inkscape it's not true. The result really looks the same, but when one releases the clip, the shapes come back differently:

enter image description here

The orange shape (=the clipping mask) has lost its form.

NOTE: I do not know if this is a bug in the software or my system malfunction or do I have wrong software version for my system. I use Inkscape 0.92.2 portable in a 64bit system which can be a wrong selection.

3

There are probably several ways you could attempt this. Here is another.

  • Copy the path
  • Paste in Place
  • Give it a new fill
  • Use the Bezier tool to draw another closed shape.
  • Select both shapes
  • Click Path > Difference

enter image description here

2
  • 1
    Instead of Copy / Paste in Place, you could simply Duplicate (Ctrl+D). Jan 19, 2018 at 17:09
  • @RudyVelthuis - certainly, that's one less step!
    – Billy Kerr
    Jan 19, 2018 at 18:07
1

The fastest way, imho:

sample gif animated

  • select the object
  • duplicate
  • colorize
  • remove border
  • view nodes
  • pick some nodes and move them inside

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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