Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

In Inkscape, what would be the best way to join the two nodes highlighted in red below? One is an end of the line, the other is the leftmost point on a circle (the horizontal line goes through the center of the circle).

Join line and circle

As to why, in case there are better suggestions - I wanted to make a glass, such as:

Glass

and I wanted to make it "proper":

  • Have the edges be joined together, so no gaps exist
  • Have the whole glass be a group that can be manipulated
  • Not complicate things too much (e.g. converting object to path wold make the circle harder to manipulate, right?)

I tried converting object to path and joining the nodes, but that did not work as expected - it kind of opened the path. Is there an easier way? Not sure if I'm doing this in the spirit of how it is usually done (from design standpoint), so feel free to comment on that.

share|improve this question
    
Put smart guides on to make sure stuff "snaps" together –  SaturnsEye May 23 at 11:05
    
@SaturnsEye care to make that an answer, if you are pretty sure it solves the problem? –  Random O'Reilly May 23 at 16:41

1 Answer 1

up vote 4 down vote accepted

Align objects

To align a line to the center of an ellipse left side we can use the Object > Align and distribute tools.

  1. Align the top of the diagonal line to the vertically centered horizontal guide in the ellipse.
    Align top edges enter image description here

    enter image description here

  2. Align the left borders of the diagonal line and the ellipse.
    Align left edges enter image description here

    enter image description here

Snap to nodes or handles while drawing enter image description here + enter image description here

It may be faster if we snapped to paths, nodes or handles while drawing by switching on the snap nodes or handles tool.

  1. Snap to cusp nodes enter image description here

    This tool will snap the beginning of the path to a cusp node, which with an ellipse will be at the 4 outer rims. Snapping will be displayed while drawing with a message "Handle to quadrant point":

    enter image description here

  2. Snap to path intersections enter image description here

    On occasion we may rather want to snap on a path intersection (which could also be a temporary guiding line). Snapping will then be displayed with the message "Handle to path intersection".

    enter image description here

Whatever method we choose (we can activate multiple of snapping tools at the same time, shown each with it's specific message) our new line will start at the point we chose:

enter image description here

This point however will not remain on the node chosen on the object we snapped to until we group the object or chose Path > Union. The latter will of course make a Bezier of our circle.

share|improve this answer
    
Thanks Takkat for an elaborate answer! One thing - for the Align approach, you mentioned aligning to guide. I guess you meant the line I placed through the middle, is that correct? Is there a way to align to guide instead (cleaner than placing a line)? Also, when doing align, it aligns to the bounding box of the line, which is wider than the line itself - is there a way to align to the center or remove the empty space around the line? –  icyrock.com May 24 at 0:06
    
Guides (+ snapping) are helpful while drawing (second approach) but AFAIK there is no function to align objects to guides after we had drawn them. Regarding the bounding box: for a straight line, its upper left corner is identical to the starting handle of a line. It should therefore align straightforward. Did you try different caps in stroke properties? –  Takkat May 24 at 7:19
    
OK, thanks Takkat - I think the problem was that the bounding box is relative to the page, so if the line is rotated, it will have a bounding box that's not tight around the line. –  icyrock.com May 24 at 12:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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