Mobile app version of vmapp.org
Login or Join
Candy945

: How can I create paths with accurate border-radii So I'm getting a little confused with radii in Inkscape. For quite a while I thought that this: was the same as this: ... But it turns

@Candy945

Posted in: #Inkscape #Mathematics #Path #Svg #Vector

So I'm getting a little confused with radii in Inkscape. For quite a while I thought that this:



was the same as this:



... But it turns out that overlaying them on top of one another reveals that they are different:



(where the red is the rectangle and the blue is the path)

Further analysis reveals that (after converting the rectangle to a path) the handles are in weird locations:



So my question is, is it possible to create accurate border radii without the use of the Rectangle tool (where the radius is the same in all angles)? Or must I always rely on it to give me truly accurate results? And also does anyone have an explanation as to why the handles are where they are?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Candy945

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cugini998

Rounding error at low pixel rates

Especially when drawing in the low pixel range there always is a considerable rounding error which then will become visible.

In the example below I drawed a circle with 4 px radius (grey), a rectangle with 4 px radius reounded corners (black), and a rectancle where the rounded corners were manually made from circles with a 4 px radius (see workaround below).

Values were carefully adjusted from the toolbar to exactly be of a radius 4.000 px). Still, we can see that the rounded rectangle is not perfect:



Draw at higher pixel rates for precision

As soon as we start working at a higher pixel rate (below the red circle has a radius of 40 pixel), the rounded corner of the rectangle will match the exact radius of 40 pixel much better:



Workaround for low pixel rates

In case we need the higher precision at low pixel rate drawings we cannot use the predefined rounded rectangle tool. We may then have to build our shapes manually, e.g. from a base circle:


Transform circle to Bezier path (Path > Object to Path):


Select all nodes to Break path at selected nodes
Select a segment and move it to the desired position.


Repeat for all segments.
Select the open nodes to Join selected endnotes with new segment


Repeat for the remainder open segments.


This will give better results at low pixel resolutions (see red line in first example above).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme