Jump to content
PMurrayDesign

Expanded strokes of rounded boxes are not straight

Recommended Posts

I was recently producing a set of icons and encountered an annoying error when expanding shapes with rounded corners. I've previously posted this on the subreddit, which you can view here – https://www.reddit.com/r/Affinity/comments/6p9fjk/designer_expanded_strokes_are_not_straight/

 

 

Essentially when you work at smaller scales and use a border radius of less than 25% (I was using 15% I think) the edges are not perfectly straight as you'd expect. This is more obvious the lower the radius value and the smaller the stroke width.

 

Examples:

Before expanding – http://imgur.com/e6JStLV

 

After expanding – http://imgur.com/f8C2plU

 

To clarify this isn't a just visual bug, the actual vector data is affected, as though the anchor points have had their handles adjusted. I'm able to replicate this in version 1.5.5 by creating a rounded shape 35px wide with a stroke of 0.4pt, corner radius to 5 and using the expand stroke command.

 

Results – http://imgur.com/a/ttNuT

 

Worryingly. this still happens when you scale the shape up first. I tried it at 350px wide with the stroke scaled with the object and the curvature is still occurring though it isn't as obvious unless you actually look for it.

 

For what it's worth I'm using a Macbook Pro (Retina, 15-inch, Mid 2015) with OSX 10.11.6.

 

Share this post


Link to post
Share on other sites

This is something we hope to improve over time. To expand a stroke we currently expand to hundreds of line segments and then try and fit curves back to the result. This can often work well but is shape and size dependant. I can't put a timeline on the improvement but it is definitely on our radar.

 

Share this post


Link to post
Share on other sites

Thanks for the response. I guess I'll have to just work at larger scales then? Obviously, it would be ideal to be able to work natively at whatever scale is required but until then I suppose I can work around the issue.

Share this post


Link to post
Share on other sites

Hi, 

Is there any updated on this bug?

I'm experiencing this issue when expanding strokes with rectangles shapes with rounded corners and also with circle shapes. It is very annoying. I've tried with small shapes and bigger ones.

I'm using AD 1.6. I think this did not happen as much with version 1.5 but I cannot verify that since I can't go back.

Share this post


Link to post
Share on other sites

1.5 had different problems with it often creating hundreds of points. 

 

The development of an optimised solution is hard and will take some time. This is more likely a 1.7 feature improvement.

 

Share this post


Link to post
Share on other sites

I am facing the same issue (albiet using different settings):

1. I created an circle of radius 1.2px

2. Added a stroke of 0.2px to it

3. Tried "Expand Stroke"

4. This: image.png.c1193ecd68711b178181fe044ccc0d4c.png

Share this post


Link to post
Share on other sites

@MEB Thanks for the pointer.

<del>I tried doing that, but it seems like the object is become smaller than the original after scaling up > changing stroke width > converting to curves > scaling down</del>

scratch that. I found that the strokes were center-aligned. I'll have to do some maths before shrinking it down :-/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×