Index: matlab/AddPcbrndVia.m =================================================================== --- matlab/AddPcbrndVia.m (revision 29082) +++ matlab/AddPcbrndVia.m (revision 29083) @@ -35,11 +35,12 @@ % here is do the math for converting [x, y] to [x, y, z] with z offsets for % start and stop layer thickness. -points +start_point = [ points(1,1), points(1,2), start_z ]; +stop_point = [ points(1,1), points(1,2), stop_z ]; % 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,[0 0 -300], [0 200 300], 300); +CSX = AddCylinder(CSX,current.name,1,start_point, stop_point, dia_od); endfunction