Simulating the shape of stones