Skip to main content
kennn51754224
Participant
May 3, 2019
Answered

Closing the gaps between 2 shapes

  • May 3, 2019
  • 5 replies
  • 8389 views

HI All,

What is the neatest way to close the gap between 2 shapes and removing the path inbetween? I am trying to close this gap below to form a complete compound shape. I tried dragging the shape next to the path and unite but failed. Plus the paths inbetween still exists.

    This topic has been closed for replies.
    Correct answer pixxxelschubser

    In that special case:

    • At first close the path.
    • give a fill color and remove stroke color
    • use Offset path to close the gaps.
    • pathfinder unit
    • offset path (with the same value, but negative)
    • restore fill and stroke

    The result is your logo with closed gaps. Remove the other resulting elements.

    Have fun

    5 replies

    Ares Hovhannesyan
    Community Expert
    Community Expert
    May 9, 2019

    Did you try to use Shape Builders?

    KShinabery212
    Community Expert
    Community Expert
    May 5, 2019

    Are you trying to do this so you can use Live Paint or ?

    I tend to cheat and create invisible lines sometimes with no fill.

    So I have the original line art in black or color or whatever.  I make sure everything is expanded.  Then I create a copy of the expanded artwork in a new layer...  I then draw in new lines to close shapes.  I expand those as well in that layer.  Then I turn that layer completely invisible with no fills and no strokes.  Then I make it Live Paint... and bam I do whatever I want.  So then it looks like the black lines are not closed in the final piece. 

    Let's connect on LinkedIn. https://www.linkedin.com/in/kshinabery/
    pixxxelschubser
    Community Expert
    pixxxelschubserCommunity ExpertCorrect answer
    Community Expert
    May 5, 2019

    In that special case:

    • At first close the path.
    • give a fill color and remove stroke color
    • use Offset path to close the gaps.
    • pathfinder unit
    • offset path (with the same value, but negative)
    • restore fill and stroke

    The result is your logo with closed gaps. Remove the other resulting elements.

    Have fun

    Jacob Bugge
    Community Expert
    Community Expert
    May 8, 2019

    Another exquisite way, Hans-Jürgen

    Jacob Bugge
    Community Expert
    Community Expert
    May 3, 2019

    Ken,

    Presuming you wish to keep the right straight segment in its current place and stretch the left object, in addition (or alternative) to the exquisite suggestion by Megan, you may, after deselecting, Smart Guides being your friends:

    1) With the Direct Selection Tool Click the upper corner Anchor Point to also reveal the Handle pointing left, then with the Line Segment Tool ClickDrag from the Handle into the Anchor Point to create a helpline, then ClickDrag it by its leftmost end to snap to the Anchor Point and intersect the straight segment, then with the Scissors Tool Click at the intersection (or go a wee bit further) and delete the rightmost part;

    2) Depending on preference:

    2A) Copy the helpline and move it to snap to the lower end Anchor Point, then Join the two to form the overlapping shape;

    2B) After deselecting, ShiftClick both end Anchor Points of the left object, then ClickDrag the upper one to snap to the end of the helpline at the intersection, which hopefully brings the lower Anchor Point at least to reach the straight segment;

    3) Select all/both paths and Pathfinder>Unite.

    The slight difference between the two ways is between stretching of curved segments and small straight end bits.

    meganchi
    Legend
    May 3, 2019

    Can you zoom out and show a screen shot of both elements in the entirety?

    Otherwise from the minimal parts we are seeing, I would use the pen tool and draw four points to create a slightly overlapping shape that connects both of the left and right shapes, and then use the unite pathfinder option to connect all 3 shapes together.

    Monika Gause
    Community Expert
    Community Expert
    May 3, 2019

    Can you please show some context of those lines?

    Also: what did not work? Was snapping turned on?

    kennn51754224
    Participant
    May 4, 2019

    Snapping was on.

    The full object is shown below. I was trying to merge the yellow area.

    tromboniator
    Community Expert
    Community Expert
    May 4, 2019

    Peter