>> The "max_layer" macro (PCB->Data->LayerN) is the number of copper
>> layers in the current board.

>> There are as many layer groups as there are layers.

>> The extra two layers are the two silk layers.

As many layer groups as there are copper layers, or as many as there
are layers including the non-copper layers?  The code seems to
implement the former, but that seems...odd, especially in view of the
grouping it implies.

In passing, why aren't there soldermask layers as well as silk layers?
Where does the soldermask come from, if there's no soldermask layer?
It seems to be a "fake" layer in the UI, somewhat akin to vias, but
that doesn't make conceptual sense to me in view of what soldermask is.

> and if you're wondering why some of this code is the way it is, the
> answer is legacy code that dates back at least 15 years in some
> places.

Easy to believe. :)  In particular, that 2 really shouldn't be a
hardcoded constant scattered all over the place...one of the doubtless
many things that really ought to be fixed but are still sticking around
as historical artifacts, I suppose.  (I've certainly seen enough of 'em
in other contexts....)

So layer numbers run from 0 through max_layer-1+EXTRA_LAYERS, where
EXTRA_LAYERS is currently 2 (the name is invented for this email);
layer group numbers from 0 through max_layer-1.  Right?

It looks as though the only way to change max_layer is to create or
load a new board.  Right?

/~\ The ASCII                           der Mouse
\ / Ribbon Campaign
 X  Against HTML               [EMAIL PROTECTED]
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to