Index: matlab/AddPcbrndVia.m =================================================================== --- matlab/AddPcbrndVia.m (revision 30022) +++ matlab/AddPcbrndVia.m (revision 30023) @@ -1,4 +1,4 @@ -function CSX = AddPcbrndVia(CSX, PCBRND, layer_start, layer_stop, points, dia_id, dia_od) +function CSX = AddPcbrndVia(CSX, PCBRND, layer_start, layer_stop, points, dia_id, dia_od, filler) % % CSX = CSX Cad data structure as defined by openems % PCBRND = the pcb-rnd data structure as defined by this library @@ -7,6 +7,7 @@ % points = the x and y location of the via % dia_id = the internal diameter of the via % dia_od = the external diameter of the via +% filler = the matterial name for the stuff used to fill the via hole % % Copyright (C) 2020 Evan Foss % @@ -45,7 +46,7 @@ % 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, PCBRND.prio.copperplane, start_point, stop_point, dia_od); -CSX = AddCylinder(CSX, PCBRND.void.name, PCBRND.prio.void, start_point, stop_point, dia_id); +CSX = AddCylinder(CSX, filler, PCBRND.prio.void, start_point, stop_point, dia_id); endfunction