On Buffon's problem for a lattice and its deformations