One way to offset the boundary edge is to calculate the signed distance from the boundary and then extract the lines at the offset distance specified by the Contour filter.
For details on how to calculate the signed distance using the Programmable filter, see below.
The above operations are a bit complicated, please refer to the State file below. plot_mach_and_cp2.pvsm (995.9 KB)