← Back to team overview

kicad-developers team mailing list archive

Drawing the layers clearly.

 

    I've been playing around with the code, and learning a little bit how
does kicad draw everything.

I'm also quite new to KiCad, and I'm getting used to work with the tool. It
was surprising for me
that the layers are painted using GR_OR operation.

Is it implemented this way because you find it more clear to work this way?
or is it implemented
this way to simplify (/speedup) the drawing process?

For me, it would seem nicer (may be it's just what I'm used to):

  Drawing without OR/XOR/etc, just drawing, in order:

   1) tracks bottom-up for all the layers (excluding: current one, and
current overlay one)
   2) tracks of the current layer
   3) the current overlay (current overlay = nearest one to the current
layer)
   4) vias, pads, etc.

It must be a little bit more time consuming, since (in plain
implementation) we may need to
iterate all over the lists at least 3 times (1,2,3). Better implementation
could be done
with a little more of memory usage.


    If it's something that the project finds interesting, I could be doing
it. Even if there is a 50%/50% and
the code could be done in such way that doesn't become harder to maintain,
also both modes could be kept.


    Cheers,

-- 

Miguel Angel Ajo Pelayo
http://www.nbee.es
+34 636 52 25 69
skype: ajoajoajo

Follow ups