Kreis kann nicht gezeichnet werden

Ich kann keinen ganzen Kreis mehr zeichnen. Woran liegt das?

2 curtidas

I’m aware.. working on a fix. :roll_eyes: It’s because we added a normalize angle function so the angle normalizes between 0 and 360… except the function is returning 0 for multiples of 360… which is sort of correct, but you can’t have the 2 angles of the same value for an arc, or there is no arc.

And yes… for now if you use 359.999999 it will work and be close enough (in most cases).

3 curtidas

@Scholli

You will be happy to know I have solved the issue. I have the Arc - Radius & Angles working - where 0 and 360 are now valid angles. The angles will be normalized in the calculation between 0 and 360, but the formula will remain what ever it is. For example here the formula is 1440, which normalizes to 360… that is 360 wrapped around 4 times.

The whole idea of normalizing the angles is it’s easier to visualize when an angle is >360… like 140 makes more sense than 500:

As soon as I apply the same fixes to the Elliptical Arc, and clean up a bunch of code I commented out, I will make a PR and it should be included in the next release.

4 curtidas