A new and rigorous SPN theory for piecewise homogeneous regions