Ability To Decide Corner Vertex Count

The basic idea is that you should be able to override the amount of vertices used for the corners of Visual Elements. Either per-element or globally (or perhaps global with local overrides). Currently, Visual Elements seem to have 4 vertices per corner when the border radius of that corner is above 0. This is okay for elements with small border radiuses, but looks bad when the border radius is larger:

This would also make elements able to look like this, which would be useful in many cases (e.g. futuristic design):

And if there was a per-corner override, this type of element could be achieved:


This could also mean less vertices for small radiuses, and more for larger ones if some “automatic” option was enabled.

2 Likes

Yeah, i’m missing this functionality too

1 Like

I will chime in and say I also need this, especially the cut edges.

1 Like

We’re moving away from tessellated borders like that. We’re already working on a new rendering technique that will make rounded corners look smooth at any resolution. We’re also working on a Vector API that will allow to draw smooth-looking paths.

4 Likes

That sounds better to be honest. The hard edges can be achieved with SVGs and the smooth with the default rendering.

1 Like

Just tried 2021.2a15 and i want to say that new anlialiased smooth shape rendering is awesome! Thanks to all the developers for their hard work!

6 Likes