Index: work/fem/matlab/AddPcbrndVia.m =================================================================== --- work/fem/matlab/AddPcbrndVia.m (revision 29955) +++ work/fem/matlab/AddPcbrndVia.m (revision 29956) @@ -1,4 +1,4 @@ -function CSX = AddPcbrndVia(CSX, PCBRND, layer_start, layer_stop, points, dia_od) +function CSX = AddPcbrndVia(CSX, PCBRND, layer_start, layer_stop, points, dia_od, dia_id) % % Copyright (C) 2017 Evan Foss % @@ -21,10 +21,6 @@ current = PCBRND.layer_types(PCBRND.layers(layer_start).number); -% the following escapes my otherwise clean priority lookup scheme and I -% should appologize for that. -priority = PCBRND.prio.coppertrace; - % we need the start and stop layer info for the following reasons % if ether of them is 3D instead of 2D that must be added to the via. % we need to use the matterial from the start layer to decide the via @@ -40,7 +36,8 @@ % unlike the other public functions in pcb2csx this currently doesn't obey any % changes on 2D vs 3D copper layers. -CSX = AddCylinder(CSX, current.name, 1, start_point, stop_point, dia_od); +CSX = AddCylinder(CSX, current.name, PCBRND.prio.copperplane, start_point, stop_point, dia_od); +CSX = AddCylinder(CSX, PCBRND.void.name, PCBRND.prio.void, start_point, stop_point, dia_id); endfunction