On 2 December 2014 at 19:02, John Beard <[email protected]> wrote:

I have not yet worked out how best to draw elliptical arcs, though you
> can always convert to a Bezier first and then draw by biarc
> approximation.
>
> Yes, that was my plan, as I already have a nice bezier interpolation I can
use (from the Haskell SVGPath package
<https://hackage.haskell.org/package/SVGPath>). I was going to use this
algorithm <http://www.spaceroots.org/documents/ellipse/elliptical-arc.pdf>
but it is described using center-point notation so I worked on
<https://github.com/kasbah/haskell-svg-arc-convert> the endpoint notation
to center-point notation first of all. I’ll get back to it soon.

Also attached is an ESD symbol, which I think turned out quite well.
>
That looks great!


> This code is still a bit fragile, but the Bezier converter should be fairly
> easy to integrate into your own scripts.
>
Yeah, most converters seem to have this problem and nothing currently
available really works for me reliably so I want to make something more
robust. I like Python but I think it's (weak) type system would make this
task more difficult and less fun for me (thought it would allow for
integrating into InkScape or Pcbnew which would be cool).
​
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to