Simulating a laser scanner