Simulate a 3d scan on a mesh