Index: work/fem/matlab/AddPcbrndVia.m =================================================================== --- work/fem/matlab/AddPcbrndVia.m (revision 29184) +++ work/fem/matlab/AddPcbrndVia.m (revision 29185) @@ -35,8 +35,8 @@ % here is do the math for converting [x, y] to [x, y, z] with z offsets for % start and stop layer thickness. -start_point = [ points(1,1), points(1,2), start_z ]; -stop_point = [ points(1,1), points(1,2), stop_z ]; +start_point = [ points(1,1), points(2,1), start_z ]; +stop_point = [ points(1,1), points(2,1), stop_z ]; % unlike the other public functions in pcb2csx this currently doesn't obey any % changes on 2D vs 3D copper layers.