Jump to content
You must now use your email address to sign in [click for more info] ×

Strange rectangle corner display


Recommended Posts

The display of corners in the German Affinity Designer 1.9.2.1035 for Windows depends on the current zoom level. In the attached video, the red outlined rectangle uses sharp corners with a miter limit of 1.414, which seems to be some default (I would never enter this number myself). The following happens:

  • Depending on the zoom level, the corners are all OK (0:00), or cannot really decide whether to be mitered or sharp (0:04), or are all mitered (0:13).
  • This could be the result of problematic floating point rounding for the miter limit: 1.414 is very near sqrt(2), and sqrt(2) happens at exactly 90 degree corners. It appears that, depending on the zoom level, each corner's miter value is sometimes rounded to more than 1.414, resulting in mitered corners, and sometimes rounded to less than 1.414, resulting in sharp corners.

Should this be the case, I suggest the following things:

  • Set the default miter limit to a value that can be exactly (without round-off error) represented as binary floating point and is a bit larger than sqrt(2), e.g. 1.5. This would ensure that (1) sharp corners with 90 degree still behave as expected and (2) rounding does not depend on the least significant floating point bits.
  • Do the rounding independent of the current zoom level – the corner display should be the same no matter how far you zoom in or out.

Andreas Weidner

Link to comment
Share on other sites

Apparently, 1.414 is not Designer's miter limit default – all rectangles I created in new documents always used 1.5, which is exactly what I suggested, anyway. Wonderful. I don't have the slightest idea where the miter limit of 1.414 came from in that document...

This still leaves the matter of making the rounding zoom-independent.

Andreas Weidner

Link to comment
Share on other sites

  • Staff

Hi anweid,

I think 1.414 was used a long time ago, but has been changed to 1.5 since. I can only assume that value may have come from an older document or object.

With regards to the mitre changing at different zooms, this is something we do have logged. I will get your comments passed on.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.