How do I create the .sur file for nearest-projection?

Related: How can I create a CalculiX mesh and configuration?