[solved] Tangents of an Ellipse

Post questions on how to use or achieve an effect in Inkscape.
pyros
Posts: 2
Joined: Sat Sep 27, 2008 7:09 am

[solved] Tangents of an Ellipse

Postby pyros » Sat Sep 27, 2008 7:20 am

Hello,

I would like to join a triangle and an ellipse to make one cone-silouette shape, a bit like the volcano in the forum logo.
So, i draw a horizontally stretched ellipse to form the bottom bit, then draw a triangle above for the cone.

The problem is, the two bottom corners of the triangle need to meet the ellipse at a tangent, so that the join is straight and seemless.

Can anyone suggest a way of achieving this?

Code: Select all

    /\
   /--\ 
  (    )
    --

zials

Re: Tangents of an Ellipse

Postby zials » Sat Sep 27, 2008 9:22 am

You can try using the Align utility to achieve this.

1. Select both the circle and the triangle (with the :tool_selector: tool, click on one shape and then shift + click on the other)
2. Open the Align Panel (Shift + Ctrl + A or Object -> Align and Distribute)
3. Set the Align Relative to Selection from the drop down-list at the top-right corner of the Align Panel
4. Now center the two objects on the vertical (Its on the first row, third item from the left, looks like two arrows pointing at each other) and horizontal axis (second row, 3rd item from the left)
5. Now, select only the triangle, and move it upwards while holding the Ctrl key. You will have to judge with your eyes and place the triangle so it seems like it is on the tangent. Try zooming in with :tool_zoom: tool for a closer look.
6. Now, you can join both objects to make one shape by selecting both and going to Path -> Union (You might have to do "Path -> Object to Path" first, but I think inkscape will automatically do this when told to make a Union)
7. With the :tool_node: tool, select the newly formed shape and select one of the two nodes that "join" the triangle outline with the circle (you'll notice that they have the shape of a diamond). Then, look in the tool option at the top and you'll see an icon resembling a semi-circle with a square in the middle (it should say "make selected node smooth" when mouse is hovered above it). Click on the icon and then do the same to the other node on the other side of the shape. This should clear up any roughness that might have been there.

If something funky happens while smoothing the nodes, then that probably means inkscape created two nodes very close to each other while performing the union. Just delete one of them and it should stop messing up.

pyros
Posts: 2
Joined: Sat Sep 27, 2008 7:09 am

Re: Tangents of an Ellipse

Postby pyros » Tue Sep 30, 2008 7:35 am

Thanks!

That's a good tip and clear instructions. Shame there isn't an automatic way to snap to it, but that should do the trick.

Cheers :)


Return to “Help with using Inkscape”