Mesh generation is an integral part of the finite element simulation o
f electron guns. This paper shows that curvilinear meshes are the idea
l type of mesh to use, both in terms of accuracy and speed of computat
ion, and presents a numerical method to generate quasi-curvilinear mes
hes for a wide variety of electron gun structures.