1

I'm trying to make 3 circles of different sizes snapped together, but looks like Inskscape does not offer an easy way to do that.

Here is an image to explain the idea about I want to do:

enter image description here

1
  • 1
    Welcome on GD.SE, Filipizaum! In my opinion you can only snap a node to a node or another path, but not a path to a path (see also here). You can find here a workaround. You can also use Geogebra to snap the circles, export in SVG and edit in Inkscape. Commented Nov 27, 2020 at 5:28

2 Answers 2

2

That needs some geometry shuffling in the same sense as ancient mathematicians did. Instead of using a pen, ruler and circle drawing compass you should rely on snapping in Inkscape.

If you have all point snaps and snap to guides = ON (but no snap to grid nor to bounding boxes!!!) you can make given circles tangential. Let's have three circles A, B and C with radiuses Ra, Rb and Rc. Let's assume B stays where it is but A and C must be moved so that all three are tangential.

enter image description here

A special case is easy. If we move A so that points at 3 and 9 o'clock approximately meet there's automatic Quadrant point to Quadrant point snap which places A exactly (=with full Inkscape's internal accuracy)

enter image description here

That's no limitation because if needed we can easily rotate A around the center of B - only move the pivot point at first to the center of B. It snaps if you have remembered to turn the center point snap and rotation center snap ON.

The right place for C is at the crossing of the red and blue circles in the next image:

enter image description here

The red circle has radius = Rc+Rb and the radius of the blue circle is = Rc+Ra.

Making a circle to a wanted centerpoint with certain radius is easy if you can input the radius as a number. It's an ellipse with Rx = Ry = the wanted radius and it snaps when it's moved to the wanted centerpoint.

I guess numerical radius calculation+input is NOT wanted. Inkscape doesn't have CAD program style circle drawing, you need some trickery. You can place C and its copy tangentially to quadrant points of B at 12 and 3 o'clock:

enter image description here

Then drag new guides from the rulers to the centers of C and its duplicate:

enter image description here

Now you can draw the red circle with the ellipse tool. Hold Ctrl and Shift keys at the same time to make a circle which starts from the center of B. The mouse snaps to the crossing of the guides if you have remembered to set snap to guides = ON.

enter image description here

The bounding box of the red circle seems to be a little too big. Do not let it disturb. The bounding box contains also the stroke. The circle curve midline goes through the center of C. It can be seen in the next zoom in where the red is changed to a lighter color:

enter image description here

Draw the blue circle in the same way. You can use the same copies of C.

BTW. In CAD programs you can draw tangential circles straight in the fly with zero trickery. The next screenshot is from LibreCAD (= a free 2D CAD program)

enter image description here

The saved DXF file can be opened in Inkscape (tested). The circles are simple 4-node Inkscape paths, they are not dense polygons. They are like circles drawn in Inkscape and converted to paths (=Bezier curves) by applying Path > Object to Path.

1

This is a slight variation on the other answer. Obviously you need to know the radii values for this to work. Note that you can see or type in the radius values of the circles in the Tool Controls bar along the top if you want exact measurements.

  1. Do Edit > Preferences > Tools, and ensure bounding box to use is set to "Geometric Bounding Box". This will ensure the bounding box uses the paths for snapping rather than the outside of the strokes.

  2. Use Snap midpoints of bounding box to get the two larger circles to touch exactly

  3. Then as @user287001 has already said draw two additional circles with radii calculated as shown in the diagram below. Enable Snap centre of objects and make sure they are centred

  4. Enable Snap to path intersections, and the centre of the smaller circle will snap exactly to the path intersection.

enter image description here

2
  • 1
    You can use offset if you dont know the sizes of the circles.
    – joojaa
    Commented Nov 28, 2020 at 8:09
  • @joojaa yes you could do that too, and since offset is a path effect, you could dispense with drawing the extra circles completely, and just remove the offset path effects after you have done it.
    – Billy Kerr
    Commented Nov 28, 2020 at 9:59

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.