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

2011-07-17 Thread Igor Lopez
2011/7/17 DJ Delorie d...@delorie.com: What is the transform between the numbers in the .pcb file and the actual representation on the board? Angle first, then stretch. There must be something more to it. Attached are two hand edited drawings where the first one has no stretching, e.g

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

2011-07-16 Thread Igor Lopez
2011/7/16 Karl Hammar k...@aspodata.se: Because of false assumptions about the inner and outer arcs, see below. Ahhaaa, I stand corrected, assumptions is never ever good and it should have been obvious when making the thickness large, e.g if as large as the short axis it would generate a inner

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

2011-07-16 Thread Igor Lopez
2011/7/16 DJ Delorie d...@delorie.com: My quick take on this: Do the math based on a zero-thickness arc, then offset the resulting distance by the arc half-thickness. I think this is more in line with how we *draw* the arcs. I have not yet investigated on how the arcs are draw nor how they

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

2011-07-16 Thread Igor Lopez
2011/7/16 DJ Delorie d...@delorie.com: It would be good if someone could tell me how the arc parameters are created and how they are used. Edit the *.pcb file manually. OK, but that means I need to understand how the drawing mechanism interprets ther numbers. Currently with the stretched

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

2011-07-15 Thread Igor Lopez
2011/7/16 Andrew Poelstra as...@sfu.ca: There is a fairly informative discussion of this problem on SO: http://stackoverflow.com/questions/2945337/how-to-detect-if-an-ellipse-intersectscollides-with-a-circle I had a look and found one algebraic solution close to the one I have proposed. The

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

2011-07-14 Thread Igor Lopez
2011/7/14 Andrew Poelstra as...@sfu.ca: On Wed, Jul 13, 2011 at 01:01:34PM -0700, Colin D Bennett wrote: On Wed, 13 Jul 2011 10:02:28 -0600 Mark Rages markra...@gmail.com wrote: Stretched arcs are a misfeature.  Can they be deprecated? Otherwise, they are just another object that cannot

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

2011-07-14 Thread Igor Lopez
I had a quick look at the routine and must say that I did not grasp the code. It is probably due to some heavy optimizations. My approach had been more in the line of: // Assumption done on ArcType in that the StartAngle attribute is the // arcs CCW rotation with zero meaning that attribute

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

2011-07-14 Thread Igor Lopez
2011/7/15 Andrew Poelstra as...@sfu.ca: On Thu, Jul 14, 2011 at 08:50:10AM +0200, Igor Lopez wrote: Check if point px,py is on rotaded elliptic arc: 1) Translate point to use ellipse center as origin, Px = px-x Py = py-y 2) Insert Px, Py in Eq1  lval equal 0 - point is exactly on arc

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

2011-07-14 Thread Igor Lopez
2011/7/15 Andrew Poelstra as...@sfu.ca: On Thu, Jul 14, 2011 at 03:48:24PM +0200, Igor Lopez wrote: I had a quick look at the routine and must say that I did not grasp the code. It is probably due to some heavy optimizations. Heavy optimizations, perhap, but also because it is wrong

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

2011-07-14 Thread Igor Lopez
2011/7/14 Karl Hammar k...@aspodata.se: Looking at pcb.pdf, page 64, section 8.8.1 Arc... Andrew Poelstra: ... If you have a full ellipse, then Width and Height are exactly what they sound like -- the full length from one side of the ellipse to the other. The file format specifies it as:

Re: gEDA-user: CR2032 with supercap, was Re: [SOT] suggestion for a SMT switch

2010-01-03 Thread Igor Lopez
Hi Jason, I already have a cap in place, I'll double check the value to account for the new load.  Thankfully, the motor will only run for a second or so when the device state changes (haptic notification). That cap is there for in-circuit programming.  I found this [1] discussion on