One approach to calculating the surface integral is then to split the surface in many very small pieces, assume that the density is approximately constant on each piece, find the mass per unit thickness of each piece (by multiplying the density of the piece by its area), and then sum up the resulting numbers to find the total mass per unit thickness of "S".