[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: pcb circles turn into hexagons



What I've seen other software do, is calculate the offset from the
center of the chord to the true circle, and limit that.  Which means
the number of segments is proportional to the radius, relative to
cos(x)...

we want to limit r * (1-cos(x)) < N

1-cos(x) < N/r

cos(x) > 1-N/r
x = acos (1-N/r)  (assuming N < r)

That's the half-angle, use x*2 as the segment's arc.


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user