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

Re: gEDA-user: pcb GL can't render stretched arcs



On Thu, Jul 14, 2011 at 01:24:45PM +0200, Karl Hammar wrote:
> Andrew Poelstra:
> > On Wed, Jul 13, 2011 at 01:01:34PM -0700, Colin D Bennett wrote:
> > > Mark Rages <markrages@xxxxxxxxx> wrote:
> > > > Stretched arcs are a misfeature.  Can they be deprecated?
> ...
> > The reason I bring this up is that the IsPointOnArc() in search.c
> > assumes a circular arc right now. ("Distance from elliptical arc
> > segment" is quite a tricky computational problem.)
> 
> There is some (physical) dimesion awkwardnesses going on in this
> routine:
>

I am trying to avoid square units entirely and just use the
Distance() function from misc.c instead. Maybe the function
call is too expensive, but testing will tell us that.

Certainly I see no reason that squaring should be cheaper
than sqrt, which is the tradeoff made all over the code.

In addition to the unit awkwardness, I am also trying to
clear up the micro-optimizations that assume a specific
architecture and ancient compiler.

-- 
Andrew Poelstra
Email: asp11 at sfu.ca OR apoelstra at wpsoftware.net
Web:   http://www.wpsoftware.net/andrew/



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