Fix some IDF file curves.

pull/753/head
phkahler 2020-10-18 17:05:02 -04:00
parent 0548702043
commit b12bcc5889
1 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,6 @@ static void MakeBeziersForArcs(SBezierList *sbl, Vector center, Vector pa, Vecto
if(angle == 360.0) {
thetaa = 0;
thetab = 2*PI;
dtheta = 2*PI;
} else {
Point2d c2 = center.Project2d(u, v);
Point2d pa2 = (pa.Project2d(u, v)).Minus(c2);
@ -249,8 +248,9 @@ static void MakeBeziersForArcs(SBezierList *sbl, Vector center, Vector pa, Vecto
thetaa = atan2(pa2.y, pa2.x);
thetab = atan2(pb2.y, pb2.x);
dtheta = thetab - thetaa;
}
dtheta = angle * PI/180;
int i, n;
if(dtheta > (3*PI/2 + 0.01)) {
n = 4;