or why this function is differentiable?
The function does something very simple - it picks random points uniformly distributed on a mesh. This idea could be used in many papers. Why would the procedure be expected to have a particular paper?
The function is only differentiable, and can only be differentiable, in the simplest sense. Specifically, an output point varies smoothly when you move the vertices of its face, while fixing its barycentric coordinates, and this gives a derivative of each output point with respect to relevant vertices of the input mesh. Nothing more complicated than that. (In particular, if you use the function to do a Monte-Carlo integration to evaluate some integral over the mesh, which is a valid thing to do, you can't expect the gradient to work.)
Most helpful comment
The function does something very simple - it picks random points uniformly distributed on a mesh. This idea could be used in many papers. Why would the procedure be expected to have a particular paper?
The function is only differentiable, and can only be differentiable, in the simplest sense. Specifically, an output point varies smoothly when you move the vertices of its face, while fixing its barycentric coordinates, and this gives a derivative of each output point with respect to relevant vertices of the input mesh. Nothing more complicated than that. (In particular, if you use the function to do a Monte-Carlo integration to evaluate some integral over the mesh, which is a valid thing to do, you can't expect the gradient to work.)