How to make matching rounded corners on a non-square?

Post questions on how to use or achieve an effect in Inkscape.
Soileau
Posts: 1
Joined: Sat Feb 12, 2011 5:46 am

How to make matching rounded corners on a non-square?

Postby Soileau » Sat Feb 12, 2011 5:52 am

I have an obscure, but symmetrical shape that I would like to make round corners on parts of. How do I make the rounded corners the exact same on opposite sides of my obscure symmetrical shape?

I can make them rounded by pressing shift and dragging the nodes, but the edges aren't symmetrical on both sides of the object. Each corner is slightly different this way.

User avatar
flamingolady
Posts: 687
Joined: Wed Jun 10, 2009 1:40 pm

Re: How to make matching rounded corners on a non-square?

Postby flamingolady » Sat Feb 12, 2011 8:53 am

Can you post a picture of it here so we can see it?
dee

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How to make matching rounded corners on a non-square?

Postby brynn » Sat Feb 12, 2011 11:53 am

Hi Soileau,
Welcome to InkscapeForum! Image

If you did Object to Path, you could create the curve on one corner, then duplicate and flip or rotate, to create the other corners. Another way to make sure things are perfectly symmetrical, is to use a grid, and snap to grid.

However, if it can't be a path and must remain a rectangle, then I'm not sure :oops:

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: How to make matching rounded corners on a non-square?

Postby druban » Sat Feb 12, 2011 5:12 pm

There is a very simple way to do this. If it doesn't work, then there are more complicated ways to do it...

Select your object, go to path menu, down to dynamic offset, drag the handle on your object to round the corners. Note that concave parts of your object do not work very satisfactorily with this method. I hope your object is convex! Note that you might have to scale your object back down to the original size. Now it has rounded corners. In the example below the blue object is the original, the red is the dynamically offset rounded version of the same. I did not scale it down.
g3163.png
g3163.png (11.69 KiB) Viewed 3203 times
Warning! This is not a very precise method! Cutting your object in half, rounding the corners, duplicating and flipping, then joining the halves back up is a much more accurate way but not particularly fun...
Your mind is what you think it is.

llogg
Posts: 443
Joined: Tue Mar 11, 2008 7:30 am

Re: How to make matching rounded corners on a non-square?

Postby llogg » Sun Feb 13, 2011 12:41 am

Not sure what you mean by "obscure", but if it's symmetrical the following should work.

1. Draw the symmetrical path. (I did the example using a rectangular grid with snap to grid on.)
2. Select the path and do Extensions>Modify Path>Add Nodes. Use the segment length option. The shorter the segment length the more nodes. The more nodes the more acute your curve will end up being, though you can make it less acute by deleting more nodes in later steps.
3. Select a corner node that you want to round and delete it. Then select the nodes that were on either side of the deleted node and change them to symmetric nodes. Do this for all desired corners. The extension made the nodes evenly spaced so the changes should be the same on all corners. If you want a less acute arc just delete more nodes and make the next ones symmetric.

I have attached my results with this method.
roundedcorners.png
roundedcorners.png (15.86 KiB) Viewed 3184 times


One question about druban's suggestion: does anyone know why the dynamic offset doesn't snap to grids? If you could snap to grid with it you might be able to make more precise changes. Also, you can round convex or concave angles depending on the direction you drag the dynamic offset; you just can't do both at the same time.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: How to make matching rounded corners on a non-square?

Postby ~suv » Sun Feb 13, 2011 3:20 am

llogg wrote:One question about druban's suggestion: does anyone know why the dynamic offset doesn't snap to grids?
The answer is simple: not implemented [1] (patches are welcome ;) )
Yes, it would be nice to have precise control for the handles of dynamic/linked offsets:
  • move handle with cursor keys,
  • snap to grid and other snap targets,
  • numeric input
For now (as a workaround) you can use the XML Editor for the numeric input:
  1. select the linked/dynamic offset, open the XML Editor (Shift+Ctrl+X)
  2. edit the value for the parameter inkscape:radius (in pixel)
  3. click on 'Set' (or use Ctrl+Enter) and verify the change on-canvas

[1] Related feature requests:and somewhat related (to increase usability):


Return to “Help with using Inkscape”