An analytic solution is derived for the magnetic field generated by current sources located in a piecewise homogeneous volume conductor. A linear discretization approach is used, whereby the surface potential is assumed to be a piecewise linear function over each tessellated surface defining the regions of differing conductivity. The magnetic field is shown to be a linear combination of vector functions which are strictly dependent on the geometry of the problem, the surface tesselation, and the observation point.