Wrapping a grid on a displaced torus
Remeshing the surface and repelling the rims.
Scattering points on the boundary curves
Connecting the boundary points using shortest paths along the mesh surface.
Turning curves into volumes
Reshaping the volumes
The final result with a bit of subsurface scattering.