gEDA-dev: Arc drawing with libgd NEW PATCH
Peter Clifton
pcjc2 at cam.ac.uk
Wed Jan 10 13:31:22 EST 2007
Hi all,
Turns out that the previous patch I produced didn't work with arcs which
had a -ve swept angle - thanks Ales for discovering that.
I've re-done this one (and added some comments, as it isn't immediately
obvious why the code is as it is. We have libgd to thank there!
This _should_ work for any +/- start angle, and +/- sweep angle. Sweep
angles of magnitude greater than +/-360 may produce an odd effect
though, but that is really bogus data, and gschem probably won't allow
it to ever happen.
Ales - please give this patch a try! I had some time to think about how
it should be done more correctly, and this is what I came up with.
--
Peter Clifton
Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA
Tel: +44 (0)7729 980173 - (No signal in the lab!)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arc_draw_libgd_TAKE2.patch
Type: text/x-patch
Size: 2943 bytes
Desc: not available
Url : http://www.seul.org/pipermail/geda-dev/attachments/20070110/0884a94f/arc_draw_libgd_TAKE2.bin
More information about the geda-dev
mailing list