I presume that, since you talk about "curvature in relativity", you are aware of the Einstein Curvature Tensor. One uses the mass distribution to calculate the mass-energy tensor, from that derives the metric tensor, then the Curvature tensor from the metric tensor.