Using piecewise sinusoidal basis functions to blanket multiple wire segments