Spherical cap mesh

Hello, I would like to ask you if you could tell me how to generate a mesh representing a spherical cap in FreeFem++.

Thanks in advance.

Paolo

you can start from example https://github.com/FreeFem/FreeFem-sources/blob/master/examples/3d/sphere2.edp

Thank you very much Professor Hecht!