Index: data.html =================================================================== --- data.html (revision 13990) +++ data.html (revision 13991) @@ -109,10 +109,11 @@

pcb_data_t: global data

-Global data affect all layers. The most trivial example is via: -it has a hole and the same copper ring on all layers. Another global -object pcb_data_t holds is an element. An element can have pads -on two copper layers and pins that affect all layers the same way as vias. +Global data affect all layers. The most trivial example is via and +padstack: it has a hole and potentially a copper ring on all +layers. Another global object pcb_data_t holds is an element. An element +can have pads on two copper layers and pins that affect all layers the +same way as vias.

The third global object is subcircuit; using its own layer list, it potentially can affect all layers of the board. The children objects of a subcircuit is @@ -127,8 +128,13 @@

Layer data is stored in struct pcb_layer_t. A layer has a list for each object type (drawing primitive type): arcs, lines, polygons, etc. +These lists are local: in a tree of subcircuits, the layer list contains only +what's strictly directly on the given layer, there's no recursion.

Relevant structs, variables and functions are in layer.[ch].

map

+ + +

tree